1
0
Fork 0

f2fs: set page private for inmemory pages for truncation

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>
wifi-calibration
Jaegeuk Kim 2014-12-05 11:58:02 -08:00
parent 9d1015dd4c
commit 0722b1011a
1 changed files with 2 additions and 0 deletions

View File

@ -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 */