ceph: fix race between page writeback and truncate
authorYan, Zheng <zheng.z.yan@intel.com>
Fri, 31 May 2013 08:48:29 +0000 (16:48 +0800)
committerSage Weil <sage@inktank.com>
Wed, 3 Jul 2013 22:32:47 +0000 (15:32 -0700)
commitfc2744aa12da7182509b1059aa3ab53754d0c83a
tree3a601a5e8a6bb5fe60141c21e07d99ebb8472d6a
parent3803da4963db01da6a983ab589ebe2e6ccb97ba9
ceph: fix race between page writeback and truncate

The client can receive truncate request from MDS at any time.
So the page writeback code need to get i_size, truncate_seq and
truncate_size atomically

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