]> git.baikalelectronics.ru Git - kernel.git/commit
f2fs: add an ioctl() to explicitly trigger fsck later
authorJaegeuk Kim <jaegeuk@kernel.org>
Wed, 28 Nov 2018 21:26:03 +0000 (13:26 -0800)
committerJaegeuk Kim <jaegeuk@kernel.org>
Fri, 14 Dec 2018 14:38:02 +0000 (06:38 -0800)
commit5e79da713cc0313560feb508d82340141997e193
treef8c2139010c431fa412b368de149070655fad08a
parent7210e763f48c532d9c2002792d76c6c711e081e1
f2fs: add an ioctl() to explicitly trigger fsck later

This adds an option in ioctl(F2FS_IOC_SHUTDOWN) in order to trigger fsck by
setting a NEED_FSCK flag.

Generally, shutdown is used for the test to validate filesystem consistency, and
setting NEED_FSCK flag can be used for Android to trigger fsck.f2fs at boot time
explicitly so that we could measure the elapsed time as well as force filesystem
check.

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