]> git.baikalelectronics.ru Git - kernel.git/commit
f2fs: support fs shutdown
authorJaegeuk Kim <jaegeuk@kernel.org>
Fri, 9 Jan 2015 03:15:53 +0000 (19:15 -0800)
committerJaegeuk Kim <jaegeuk@kernel.org>
Fri, 10 Apr 2015 22:07:57 +0000 (15:07 -0700)
commitab0a4019eccbd5ac96b232e062ae032e8b3c6d7f
tree786074cc5ef7729f9ceaf0f7dd48e9c94b7a0149
parent3ba91d9b51578369d8bb8e05c6a9139a187d752c
f2fs: support fs shutdown

This patch introduces a generic ioctl for fs shutdown, which was used by xfs.

If this shutdown is triggered, filesystem stops any further IOs according to the
following options.

1. FS_GOING_DOWN_FULLSYNC
 : this will flush all the data and dentry blocks, and do checkpoint before
   shutdown.

2. FS_GOING_DOWN_METASYNC
 : this will do checkpoint before shutdown.

3. FS_GOING_DOWN_NOSYNC
 : this will trigger shutdown as is.

Signed-off-by: Jaegeuk Kim <jaegeuk@kernel.org>
fs/f2fs/f2fs.h
fs/f2fs/file.c