From: Jaegeuk Kim Date: Fri, 5 Dec 2014 19:58:02 +0000 (-0800) Subject: f2fs: set page private for inmemory pages for truncation X-Git-Url: http://git.cdn.openwrt.org/?a=commitdiff_plain;h=0722b1011a5f6b03b73334ecd80e121a95e8d4e0;p=openwrt%2Fstaging%2Fblogic.git 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 --- diff --git a/fs/f2fs/segment.c b/fs/f2fs/segment.c index c79d67e5045f..3ebcf96bc5f3 100644 --- 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 */