ceph: use i_size_{read,write} to get/set i_size
authorYan, Zheng <zyan@redhat.com>
Wed, 30 Dec 2015 03:32:46 +0000 (11:32 +0800)
committerIlya Dryomov <idryomov@gmail.com>
Thu, 21 Jan 2016 18:36:08 +0000 (19:36 +0100)
commit99c88e6900fb05d267ae9f6d5e15dc7192ba6f8d
tree025263471172932f2c0b332979cf56c60ae836db
parent5be0389dac662995eade757ec678931f0be23d33
ceph: use i_size_{read,write} to get/set i_size

Cap message from MDS can update i_size. In that case, we don't
hold i_mutex. So it's unsafe to directly access inode->i_size
while holding i_mutex.

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