diff options
author | Chao Yu <yuchao0@huawei.com> | 2017-10-28 16:52:30 +0800 |
---|---|---|
committer | Jaegeuk Kim <jaegeuk@kernel.org> | 2017-11-05 16:41:54 -0800 |
commit | 01eccef7930f137bed9501bf0923931f45909b94 (patch) | |
tree | c4f020222dd9e6b1949c4d2215af74f75d3e8f40 /fs/f2fs/node.c | |
parent | b32d73abc6f0a63503f68a7227b1d46aff1f46af (diff) | |
download | linux-01eccef7930f137bed9501bf0923931f45909b94.tar.bz2 |
f2fs: support get_page error injection
This patch adds to support get_page error injection to simulate
out-of-memory test scenario.
Signed-off-by: Chao Yu <yuchao0@huawei.com>
Signed-off-by: Jaegeuk Kim <jaegeuk@kernel.org>
Diffstat (limited to 'fs/f2fs/node.c')
-rw-r--r-- | fs/f2fs/node.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/fs/f2fs/node.c b/fs/f2fs/node.c index f44d83705245..819671febd6d 100644 --- a/fs/f2fs/node.c +++ b/fs/f2fs/node.c @@ -1218,7 +1218,8 @@ static void flush_inline_data(struct f2fs_sb_info *sbi, nid_t ino) if (!inode) return; - page = pagecache_get_page(inode->i_mapping, 0, FGP_LOCK|FGP_NOWAIT, 0); + page = f2fs_pagecache_get_page(inode->i_mapping, 0, + FGP_LOCK|FGP_NOWAIT, 0); if (!page) goto iput_out; |