]> git.baikalelectronics.ru Git - kernel.git/commit
ceph: fix ceph_writepages_start()
authorYan, Zheng <zyan@redhat.com>
Wed, 17 Jun 2015 19:10:58 +0000 (03:10 +0800)
committerIlya Dryomov <idryomov@gmail.com>
Thu, 25 Jun 2015 15:30:53 +0000 (18:30 +0300)
commit05f0f5899476ef489d73371fdf31c2f4a2cfa90e
tree43464087b52c41e58396f7805783bd9e627d2bfb
parentcad62a07cee158c32d8fa823596bf05a58bbe897
ceph: fix ceph_writepages_start()

Before a page get locked, someone else can write data to the page
and increase the i_size. So we should re-check the i_size after
pages are locked.

Signed-off-by: Yan, Zheng <zyan@redhat.com>
fs/ceph/addr.c