[PATCH] JFS: Write journal sync points more often
This patch adds jfs_syncpt, which calls lmLogSync to write sync points to the journal both in jfs_sync_fs and when sync barrier processing completes. lmLogSync accomplishes two things: 1) it pushes logged-but-dirty metadata pages to disk, and 2) it writes a sync record to the journal so that jfs_fsck doesn't need to replay more transactions than is necessary. Signed-off-by: Dave Kleikamp <shaggy@austin.ibm.com> Signed-off-by: Linus Torvalds <torvalds@osdl.org>
This commit is contained in:
committed by
Linus Torvalds
parent
7fab479beb
commit
1c6278295d
@@ -508,5 +508,6 @@ extern int lmLogShutdown(struct jfs_log * log);
|
||||
extern int lmLogInit(struct jfs_log * log);
|
||||
extern int lmLogFormat(struct jfs_log *log, s64 logAddress, int logSize);
|
||||
extern void jfs_flush_journal(struct jfs_log * log, int wait);
|
||||
extern void jfs_syncpt(struct jfs_log *log);
|
||||
|
||||
#endif /* _H_JFS_LOGMGR */
|
||||
|
Reference in New Issue
Block a user