f2fs: split find_data_page according to specific purposes
authorJaegeuk Kim <jaegeuk@kernel.org>
Fri, 1 May 2015 00:00:33 +0000 (17:00 -0700)
committerJaegeuk Kim <jaegeuk@kernel.org>
Thu, 28 May 2015 22:41:37 +0000 (15:41 -0700)
commit43f3eae1d3b1de6a4f7e39ef9c363ec6f8b9c8d4
tree32f273bfd14351cf7350a79d080483db76a7cf31
parent2fb2c954968bedddfeb3895969fbdf2ae0679ed3
f2fs: split find_data_page according to specific purposes

This patch splits find_data_page as follows.

1. f2fs_gc
 - use get_read_data_page() with read only

2. find_in_level
 - use find_data_page without locked page

3. truncate_partial_page
 - In the case cache_only mode, just drop cached page.
 - Ohterwise, use get_lock_data_page() and guarantee to truncate

Signed-off-by: Jaegeuk Kim <jaegeuk@kernel.org>
fs/f2fs/data.c
fs/f2fs/dir.c
fs/f2fs/f2fs.h
fs/f2fs/file.c
fs/f2fs/gc.c