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:
9d1015d
)
f2fs: set page private for inmemory pages for truncation
author
Jaegeuk Kim
<jaegeuk@kernel.org>
Fri, 5 Dec 2014 19:58:02 +0000
(11:58 -0800)
committer
Jaegeuk Kim
<jaegeuk@kernel.org>
Mon, 8 Dec 2014 18:35:14 +0000
(10:35 -0800)
The inmemory pages should be handled by invalidate_page since it needs to be
released int the truncation path.
Signed-off-by: Jaegeuk Kim <jaegeuk@kernel.org>
fs/f2fs/segment.c
patch
|
blob
|
blame
|
history
diff --git
a/fs/f2fs/segment.c
b/fs/f2fs/segment.c
index c79d67e5045f4559c31ae858b5641297f8153c2a..3ebcf96bc5f354f31d7252c48338728dc7f6dc53 100644
(file)
--- a/
fs/f2fs/segment.c
+++ b/
fs/f2fs/segment.c
@@
-180,6
+180,8
@@
void register_inmem_page(struct inode *inode, struct page *page)
struct inmem_pages *new;
int err;
+ SetPagePrivate(page);
+
new = f2fs_kmem_cache_alloc(inmem_entry_slab, GFP_NOFS);
/* add atomic page indices to the list */