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>
Mon, 22 Jan 2018 22:56:45 +0000 (14:56 -0800)
commitc4020b2da4c9e84d63e30ce5a85dc287507f0e60
treeb32e846a75532c80a9ed1fa7b921f60669131cfb
parent1ad71a27124caf0b68ddd3c92be01aa2b2a72b2a
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