summaryrefslogtreecommitdiffstats
path: root/fs/f2fs/f2fs.h
diff options
context:
space:
mode:
authorJaegeuk Kim <jaegeuk@kernel.org>2018-05-25 18:02:58 -0700
committerJaegeuk Kim <jaegeuk@kernel.org>2018-05-29 12:04:08 -0700
commitd6290814b018aa9a81163b4c806935b315041833 (patch)
treeaa4a5b75437e501032d8e8fbc6409f7cb0a9929a /fs/f2fs/f2fs.h
parent9a997188ff7ab2110c6fefa85977d1aa8005ae77 (diff)
downloadlinux-stable-d6290814b018aa9a81163b4c806935b315041833.tar.gz
linux-stable-d6290814b018aa9a81163b4c806935b315041833.tar.bz2
linux-stable-d6290814b018aa9a81163b4c806935b315041833.zip
f2fs: add fsync_mode=nobarrier for non-atomic files
For non-atomic files, this patch adds an option to give nobarrier which doesn't issue flush commands to the device. Reviewed-by: Chao Yu <yuchao0@huawei.com> Signed-off-by: Jaegeuk Kim <jaegeuk@kernel.org>
Diffstat (limited to 'fs/f2fs/f2fs.h')
-rw-r--r--fs/f2fs/f2fs.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/fs/f2fs/f2fs.h b/fs/f2fs/f2fs.h
index cbfe50d32d04..e852ac9472c6 100644
--- a/fs/f2fs/f2fs.h
+++ b/fs/f2fs/f2fs.h
@@ -1082,6 +1082,7 @@ enum {
enum fsync_mode {
FSYNC_MODE_POSIX, /* fsync follows posix semantics */
FSYNC_MODE_STRICT, /* fsync behaves in line with ext4 */
+ FSYNC_MODE_NOBARRIER, /* fsync behaves nobarrier based on posix */
};
#ifdef CONFIG_F2FS_FS_ENCRYPTION