aboutsummaryrefslogtreecommitdiffstats
path: root/fs
diff options
context:
space:
mode:
authorYan, Zheng <zheng.z.yan@intel.com>2014-06-07 17:08:56 -0400
committerYan, Zheng <zheng.z.yan@intel.com>2014-06-07 17:09:28 -0400
commit4e217b5dc87042b0fa52b11f491c4ded1863823a (patch)
treebbec868739f901d06ac4bb1dfc041211b570fa03 /fs
parentb8e69066d8afa8d2670dc697252ff0e5907aafad (diff)
ceph: use truncate_pagecache() instead of truncate_inode_pages()
Signed-off-by: Yan, Zheng <zheng.z.yan@intel.com>
Diffstat (limited to 'fs')
-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)
1546 orig_gen = ci->i_rdcache_gen; 1546 orig_gen = ci->i_rdcache_gen;
1547 spin_unlock(&ci->i_ceph_lock); 1547 spin_unlock(&ci->i_ceph_lock);
1548 1548
1549 truncate_inode_pages(inode->i_mapping, 0); 1549 truncate_pagecache(inode, 0);
1550 1550
1551 spin_lock(&ci->i_ceph_lock); 1551 spin_lock(&ci->i_ceph_lock);
1552 if (orig_gen == ci->i_rdcache_gen && 1552 if (orig_gen == ci->i_rdcache_gen &&
@@ -1649,7 +1649,7 @@ retry:
1649 ci->i_truncate_pending, to); 1649 ci->i_truncate_pending, to);
1650 spin_unlock(&ci->i_ceph_lock); 1650 spin_unlock(&ci->i_ceph_lock);
1651 1651
1652 truncate_inode_pages(inode->i_mapping, to); 1652 truncate_pagecache(inode, to);
1653 1653
1654 spin_lock(&ci->i_ceph_lock); 1654 spin_lock(&ci->i_ceph_lock);
1655 if (to == ci->i_truncate_size) { 1655 if (to == ci->i_truncate_size) {