summaryrefslogtreecommitdiffstats
path: root/fs/ceph
diff options
context:
space:
mode:
authorYan, Zheng <zheng.z.yan@intel.com>2014-06-07 23:08:56 +0200
committerYan, Zheng <zheng.z.yan@intel.com>2014-06-07 23:09:28 +0200
commit4e217b5dc87042b0fa52b11f491c4ded1863823a (patch)
treebbec868739f901d06ac4bb1dfc041211b570fa03 /fs/ceph
parentceph: include time stamp in every MDS request (diff)
downloadlinux-4e217b5dc87042b0fa52b11f491c4ded1863823a.tar.xz
linux-4e217b5dc87042b0fa52b11f491c4ded1863823a.zip
ceph: use truncate_pagecache() instead of truncate_inode_pages()
Signed-off-by: Yan, Zheng <zheng.z.yan@intel.com>
Diffstat (limited to 'fs/ceph')
-rw-r--r--fs/ceph/inode.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/fs/ceph/inode.c b/fs/ceph/inode.c
index 8b3da8adbbe3..0901f38547fe 100644
--- a/fs/ceph/inode.c
+++ b/fs/ceph/inode.c
@@ -1546,7 +1546,7 @@ static void ceph_invalidate_work(struct work_struct *work)
orig_gen = ci->i_rdcache_gen;
spin_unlock(&ci->i_ceph_lock);
- truncate_inode_pages(inode->i_mapping, 0);
+ truncate_pagecache(inode, 0);
spin_lock(&ci->i_ceph_lock);
if (orig_gen == ci->i_rdcache_gen &&
@@ -1649,7 +1649,7 @@ retry:
ci->i_truncate_pending, to);
spin_unlock(&ci->i_ceph_lock);
- truncate_inode_pages(inode->i_mapping, to);
+ truncate_pagecache(inode, to);
spin_lock(&ci->i_ceph_lock);
if (to == ci->i_truncate_size) {