aboutsummaryrefslogtreecommitdiffstats
path: root/fs/ext4/fast_commit.h
diff options
context:
space:
mode:
authorHarshad Shirwadkar <[email protected]>2020-11-06 03:59:07 +0000
committerTheodore Ts'o <[email protected]>2020-11-07 04:01:05 +0000
commit556e0319fbb8eee3fa19fdcc27c8bcb4af1c7211 (patch)
tree67ca0964cf42dd65efd1fab7c5ed95981a0eee39 /fs/ext4/fast_commit.h
parentext4: fix inode dirty check in case of fast commits (diff)
downloadkernel-556e0319fbb8eee3fa19fdcc27c8bcb4af1c7211.tar.gz
kernel-556e0319fbb8eee3fa19fdcc27c8bcb4af1c7211.zip
ext4: disable fast commit with data journalling
Fast commits don't work with data journalling. This patch disables the fast commit support when data journalling is turned on. Suggested-by: Jan Kara <[email protected]> Signed-off-by: Harshad Shirwadkar <[email protected]> Reviewed-by: Jan Kara <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Theodore Ts'o <[email protected]>
Diffstat (limited to 'fs/ext4/fast_commit.h')
-rw-r--r--fs/ext4/fast_commit.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/fs/ext4/fast_commit.h b/fs/ext4/fast_commit.h
index 1d96e0ac8138..3a6e5a1fa1b8 100644
--- a/fs/ext4/fast_commit.h
+++ b/fs/ext4/fast_commit.h
@@ -102,6 +102,7 @@ enum {
EXT4_FC_REASON_RESIZE,
EXT4_FC_REASON_RENAME_DIR,
EXT4_FC_REASON_FALLOC_RANGE,
+ EXT4_FC_REASON_INODE_JOURNAL_DATA,
EXT4_FC_COMMIT_FAILED,
EXT4_FC_REASON_MAX
};