ceph: refactor ceph_write_begin, fix ceph_page_mkwrite
authorYehuda Sadeh <yehuda@hq.newdream.net>
Tue, 9 Feb 2010 19:02:51 +0000 (11:02 -0800)
committerSage Weil <sage@newdream.net>
Thu, 11 Feb 2010 19:48:50 +0000 (11:48 -0800)
commit4af6b2257ee0eb8f4bf3b1dc8acb643c0e8a887f
tree6193e59ebd7806d286e16e091a5acf98bceae424
parent972f0d3ab1a15cb5d790dd8c53903066084b28f2
ceph: refactor ceph_write_begin, fix ceph_page_mkwrite

Originally ceph_page_mkwrite called ceph_write_begin, hoping that
the returned locked page would be the page that it was requested
to mkwrite. Factored out relevant part of ceph_page_mkwrite and
we lock the right page anyway.

Signed-off-by: Yehuda Sadeh <yehuda@hq.newdream.net>
Signed-off-by: Sage Weil <sage@newdream.net>
fs/ceph/addr.c