ceph: Fix __ceph_do_pending_vmtruncate
authorYan, Zheng <zheng.z.yan@intel.com>
Mon, 19 Nov 2012 02:49:08 +0000 (10:49 +0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 17 Jan 2013 16:51:21 +0000 (08:51 -0800)
commitfbc8158351e8d34c499b61c422f3614dad6dc910
tree23bf9a259f1d4d645503bcf83fab4cce7cf3cdda
parentba647fd5c7ffc1a6433c8c90eedadf76a3df82fa
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>
(cherry picked from commit a85f50b6ef93fbbb2ae932ce9b2376509d172796)
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
fs/ceph/inode.c