OSDN Git Service

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>
Thu, 8 Feb 2018 02:05:57 +0000 (18:05 -0800)
commit999f806a7c9e29e74019e6c2566be04d54c956ea
treee97eaacac3f4b5065818fc99fbdbb7339f2e00e7
parent84960fca96c4330d79d384fe21357f26537357de
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