projects
/
GitHub
/
LineageOS
/
G12
/
android_kernel_amlogic_linux-4.9.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
3c6f6b7
)
ceph: invalidate pages even if truncate is pending
author
Sage Weil
<sage@newdream.net>
Tue, 9 Feb 2010 23:44:16 +0000
(15:44 -0800)
committer
Sage Weil
<sage@newdream.net>
Thu, 11 Feb 2010 19:48:54 +0000
(11:48 -0800)
There is no reason not to invalidate pages when a truncate is pending.
Both throw out page cache pages.
Signed-off-by: Sage Weil <sage@newdream.net>
fs/ceph/caps.c
patch
|
blob
|
blame
|
history
diff --git
a/fs/ceph/caps.c
b/fs/ceph/caps.c
index 68ee78109224bd2abde79f267ad7a33d8f3df969..20b28dc0c97c7c7bf5cbe8e94bc958fce69077c7 100644
(file)
--- a/
fs/ceph/caps.c
+++ b/
fs/ceph/caps.c
@@
-1444,7
+1444,6
@@
retry_locked:
ci->i_rdcache_gen && /* may have cached pages */
(file_wanted == 0 || /* no open files */
(revoking & CEPH_CAP_FILE_CACHE)) && /* or revoking cache */
- !ci->i_truncate_pending &&
!tried_invalidate) {
u32 invalidating_gen = ci->i_rdcache_gen;
int ret;