ceph: disable fscache when inode is opened for write
authorYan, Zheng <zyan@redhat.com>
Wed, 18 May 2016 07:25:03 +0000 (15:25 +0800)
committerIlya Dryomov <idryomov@gmail.com>
Wed, 1 Jun 2016 08:31:07 +0000 (10:31 +0200)
commit46b59b2be05a71d80d76883d2f495f182d768f47
tree0d9ae8027c93619327abd0eb541be02163b53ac7
parent1464975816c79a7cd28dc314384f060a122a9d55
ceph: disable fscache when inode is opened for write

All other filesystems do not add dirty pages to fscache. They all
disable fscache when inode is opened for write. Only ceph adds
dirty pages to fscache, but the code is buggy.

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