f2fs: support F2FS_IOC_PRECACHE_EXTENTS
authorChao Yu <yuchao0@huawei.com>
Thu, 11 Jan 2018 06:42:30 +0000 (14:42 +0800)
committerJaegeuk Kim <jaegeuk@kernel.org>
Sat, 27 Jan 2018 21:30:17 +0000 (13:30 -0800)
commit0f914cab8ce32697831002cca9481bacac43fbd9
treec4bd8be56c8af063c03ce1b28b041438a6d48908
parented1311e58555356e4e3b9b33693c81f642745252
f2fs: support F2FS_IOC_PRECACHE_EXTENTS

This patch introduces a new ioctl F2FS_IOC_PRECACHE_EXTENTS to precache
extent info like ext4, in order to gain better performance during
triggering AIO by eliminating synchronous waiting of mapping info.

Referred commit: 7869a4a6c5ca ("ext4: add support for extent pre-caching")

In addition, with newly added extent precache abilitiy, this patch add
to support FIEMAP_FLAG_CACHE in ->fiemap.

Signed-off-by: Chao Yu <yuchao0@huawei.com>
Signed-off-by: Jaegeuk Kim <jaegeuk@kernel.org>
fs/f2fs/data.c
fs/f2fs/f2fs.h
fs/f2fs/file.c