diff options
author | Joern Engel <joern@logfs.org> | 2010-03-04 15:36:19 -0500 |
---|---|---|
committer | Joern Engel <joern@logfs.org> | 2010-03-04 15:36:19 -0500 |
commit | c6d3830140f1d56b07d8ab56a6e14ca3c492a39a (patch) | |
tree | 8dd9923b4217f6f7dc2735356d112fdcfa277852 /fs/logfs/logfs.h | |
parent | 9421502b4fc894cc477be8fc49776830e37ca157 (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.h | 4 |
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); | |||
526 | void logfs_clear_inode(struct inode *inode); | 526 | void logfs_clear_inode(struct inode *inode); |
527 | 527 | ||
528 | /* journal.c */ | 528 | /* journal.c */ |
529 | void logfs_write_anchor(struct inode *inode); | 529 | void logfs_write_anchor(struct super_block *sb); |
530 | int logfs_init_journal(struct super_block *sb); | 530 | int logfs_init_journal(struct super_block *sb); |
531 | void logfs_cleanup_journal(struct super_block *sb); | 531 | void logfs_cleanup_journal(struct super_block *sb); |
532 | int write_alias_journal(struct super_block *sb, u64 ino, u64 bix, | 532 | int write_alias_journal(struct super_block *sb, u64 ino, u64 bix, |