diff options
author | Jaegeuk Kim <jaegeuk.kim@samsung.com> | 2013-03-14 09:24:32 +0900 |
---|---|---|
committer | Jaegeuk Kim <jaegeuk.kim@samsung.com> | 2013-03-20 18:30:13 +0900 |
commit | c3850aa1cb25872fddacd7abd8dfb021411e92ee (patch) | |
tree | bca15120146f17ce472eb64718579f4d7ce8eaa0 /fs/f2fs/data.c | |
parent | 48cb76c7be7056810cdcdcdcd8d90d3fdc4e250f (diff) | |
download | op-kernel-dev-c3850aa1cb25872fddacd7abd8dfb021411e92ee.zip op-kernel-dev-c3850aa1cb25872fddacd7abd8dfb021411e92ee.tar.gz |
f2fs: fix return value of releasepage for node and data
If the return value of releasepage is equal to zero, the page cannot be reclaimed.
Instead, we should return 1 in order to reclaim clean pages.
Reviewed-by: Namjae Jeon <namjae.jeon@samsung.com>
Signed-off-by: Jaegeuk Kim <jaegeuk.kim@samsung.com>
Diffstat (limited to 'fs/f2fs/data.c')
-rw-r--r-- | fs/f2fs/data.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/f2fs/data.c b/fs/f2fs/data.c index c8e20b6..ea8be6f 100644 --- a/fs/f2fs/data.c +++ b/fs/f2fs/data.c @@ -683,7 +683,7 @@ static void f2fs_invalidate_data_page(struct page *page, unsigned long offset) static int f2fs_release_data_page(struct page *page, gfp_t wait) { ClearPagePrivate(page); - return 0; + return 1; } static int f2fs_set_data_page_dirty(struct page *page) |