OSDN Git Service
(root)
/
uclinux-h8
/
linux.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
b8e6906
)
ceph: use truncate_pagecache() instead of truncate_inode_pages()
author
Yan, Zheng
<zheng.z.yan@intel.com>
Sat, 7 Jun 2014 21:08:56 +0000
(
05:08
+0800)
committer
Yan, Zheng
<zheng.z.yan@intel.com>
Sat, 7 Jun 2014 21:09:28 +0000
(
05:09
+0800)
Signed-off-by: Yan, Zheng <zheng.z.yan@intel.com>
fs/ceph/inode.c
patch
|
blob
|
history
diff --git
a/fs/ceph/inode.c
b/fs/ceph/inode.c
index
8b3da8a
..
0901f38
100644
(file)
--- 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) {