diff options
author | Jaegeuk Kim <jaegeuk@kernel.org> | 2014-12-05 14:58:02 -0500 |
---|---|---|
committer | Jaegeuk Kim <jaegeuk@kernel.org> | 2014-12-08 13:35:14 -0500 |
commit | 0722b1011a5f6b03b73334ecd80e121a95e8d4e0 (patch) | |
tree | fa157f6bcd5cd0f2772f079dbdf78003afde3b54 /fs/f2fs | |
parent | 9d1015dd4c6ba602272f80487bb9c922a9a71cc1 (diff) |
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>
Diffstat (limited to 'fs/f2fs')
-rw-r--r-- | fs/f2fs/segment.c | 2 |
1 files changed, 2 insertions, 0 deletions
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) | |||
180 | struct inmem_pages *new; | 180 | struct inmem_pages *new; |
181 | int err; | 181 | int err; |
182 | 182 | ||
183 | SetPagePrivate(page); | ||
184 | |||
183 | new = f2fs_kmem_cache_alloc(inmem_entry_slab, GFP_NOFS); | 185 | new = f2fs_kmem_cache_alloc(inmem_entry_slab, GFP_NOFS); |
184 | 186 | ||
185 | /* add atomic page indices to the list */ | 187 | /* add atomic page indices to the list */ |