commit | 99c88e6900fb05d267ae9f6d5e15dc7192ba6f8d | [log] [tgz] |
---|---|---|
author | Yan, Zheng <zyan@redhat.com> | Wed Dec 30 11:32:46 2015 +0800 |
committer | Ilya Dryomov <idryomov@gmail.com> | Thu Jan 21 19:36:08 2016 +0100 |
tree | 025263471172932f2c0b332979cf56c60ae836db | |
parent | 5be0389dac662995eade757ec678931f0be23d33 [diff] |
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>