ceph: Fix __ceph_do_pending_vmtruncate
authorYan, Zheng <zheng.z.yan@intel.com>
Mon, 19 Nov 2012 02:49:08 +0000 (10:49 +0800)
committerAlex Elder <elder@inktank.com>
Thu, 13 Dec 2012 14:13:08 +0000 (08:13 -0600)
commita85f50b6ef93fbbb2ae932ce9b2376509d172796
treeeaf774cd7757f1187a8e8201e28fdf8f2e183170
parent0685235ffd9dbdb9ccbda587f8a3c83ad1d5a921
ceph: Fix __ceph_do_pending_vmtruncate

we should set i_truncate_pending to 0 after page cache is truncated
to i_truncate_size

Signed-off-by: Yan, Zheng <zheng.z.yan@intel.com>
Signed-off-by: Sage Weil <sage@inktank.com>
fs/ceph/inode.c