diff options
author | Yan, Zheng <zyan@redhat.com> | 2016-05-18 09:25:03 +0200 |
---|---|---|
committer | Ilya Dryomov <idryomov@gmail.com> | 2016-06-01 10:31:07 +0200 |
commit | 46b59b2be05a71d80d76883d2f495f182d768f47 (patch) | |
tree | 0d9ae8027c93619327abd0eb541be02163b53ac7 /fs/ceph/addr.c | |
parent | ceph: avoid unnecessary fscache invalidation/revlidation (diff) | |
download | linux-46b59b2be05a71d80d76883d2f495f182d768f47.tar.xz linux-46b59b2be05a71d80d76883d2f495f182d768f47.zip |
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>
Diffstat (limited to 'fs/ceph/addr.c')
-rw-r--r-- | fs/ceph/addr.c | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/fs/ceph/addr.c b/fs/ceph/addr.c index 4ff62fc98fb5..26a9d10d75e9 100644 --- a/fs/ceph/addr.c +++ b/fs/ceph/addr.c @@ -537,8 +537,6 @@ static int writepage_nounlock(struct page *page, struct writeback_control *wbc) CONGESTION_ON_THRESH(fsc->mount_options->congestion_kb)) set_bdi_congested(&fsc->backing_dev_info, BLK_RW_ASYNC); - ceph_readpage_to_fscache(inode, page); - set_page_writeback(page); err = ceph_osdc_writepages(osdc, ceph_vino(inode), &ci->i_layout, snapc, |