aboutsummaryrefslogtreecommitdiffstats
path: root/fs/logfs/logfs.h
diff options
context:
space:
mode:
authorJoern Engel <joern@logfs.org>2010-03-04 15:36:19 -0500
committerJoern Engel <joern@logfs.org>2010-03-04 15:36:19 -0500
commitc6d3830140f1d56b07d8ab56a6e14ca3c492a39a (patch)
tree8dd9923b4217f6f7dc2735356d112fdcfa277852 /fs/logfs/logfs.h
parent9421502b4fc894cc477be8fc49776830e37ca157 (diff)
[LogFS] Only write journal if dirty
This prevents unnecessary journal writes. More importantly it prevents an oops due to a journal write on failed mount.
Diffstat (limited to 'fs/logfs/logfs.h')
-rw-r--r--fs/logfs/logfs.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/fs/logfs/logfs.h b/fs/logfs/logfs.h
index 72592114a28f..129779431373 100644
--- a/fs/logfs/logfs.h
+++ b/fs/logfs/logfs.h
@@ -82,7 +82,7 @@
82 82
83/* Read-only filesystem */ 83/* Read-only filesystem */
84#define LOGFS_SB_FLAG_RO 0x0001 84#define LOGFS_SB_FLAG_RO 0x0001
85#define LOGFS_SB_FLAG_SEG_ALIAS 0x0002 85#define LOGFS_SB_FLAG_DIRTY 0x0002
86#define LOGFS_SB_FLAG_OBJ_ALIAS 0x0004 86#define LOGFS_SB_FLAG_OBJ_ALIAS 0x0004
87#define LOGFS_SB_FLAG_SHUTDOWN 0x0008 87#define LOGFS_SB_FLAG_SHUTDOWN 0x0008
88 88
@@ -526,7 +526,7 @@ void logfs_delete_inode(struct inode *inode);
526void logfs_clear_inode(struct inode *inode); 526void logfs_clear_inode(struct inode *inode);
527 527
528/* journal.c */ 528/* journal.c */
529void logfs_write_anchor(struct inode *inode); 529void logfs_write_anchor(struct super_block *sb);
530int logfs_init_journal(struct super_block *sb); 530int logfs_init_journal(struct super_block *sb);
531void logfs_cleanup_journal(struct super_block *sb); 531void logfs_cleanup_journal(struct super_block *sb);
532int write_alias_journal(struct super_block *sb, u64 ino, u64 bix, 532int write_alias_journal(struct super_block *sb, u64 ino, u64 bix,