projects
/
unionfs-2.6.39.y.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
b002fc4
)
Unionfs: call truncate_inode_pages+end_writeback in ->evict_inode
author
Erez Zadok
<ezk@cs.sunysb.edu>
Tue, 2 Nov 2010 22:47:42 +0000
(18:47 -0400)
committer
Erez Zadok
<ezk@cs.sunysb.edu>
Fri, 12 Aug 2011 02:39:23 +0000
(22:39 -0400)
Signed-off-by: Erez Zadok <ezk@cs.sunysb.edu>
fs/unionfs/super.c
patch
|
blob
|
history
diff --git
a/fs/unionfs/super.c
b/fs/unionfs/super.c
index b8cabeccdb2873cf8625a99025452a6eea972de6..45bb9bf939089a8e70cd6edf2f2874b8a2fff949 100644
(file)
--- a/
fs/unionfs/super.c
+++ b/
fs/unionfs/super.c
@@
-834,6
+834,9
@@
static void unionfs_evict_inode(struct inode *inode)
struct list_head *pos, *n;
struct unionfs_dir_state *rdstate;
+ truncate_inode_pages(&inode->i_data, 0);
+ end_writeback(inode);
+
list_for_each_safe(pos, n, &UNIONFS_I(inode)->readdircache) {
rdstate = list_entry(pos, struct unionfs_dir_state, cache);
list_del(&rdstate->cache);