Skip to content

Commit 1c8007b

Browse files
committed
jfs: flush journal completely before releasing metadata inodes
This fixes a race during unmount. We need to not only make sure that the journal is completely written, but that the metadata changes make it to disk before releasing ipimap and ipbmap. Signed-off-by: Dave Kleikamp <[email protected]>
1 parent 3da3f87 commit 1c8007b

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

fs/jfs/jfs_umount.c

+2-2
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ int jfs_umount(struct super_block *sb)
6868
/*
6969
* Wait for outstanding transactions to be written to log:
7070
*/
71-
jfs_flush_journal(log, 1);
71+
jfs_flush_journal(log, 2);
7272

7373
/*
7474
* close fileset inode allocation map (aka fileset inode)
@@ -146,7 +146,7 @@ int jfs_umount_rw(struct super_block *sb)
146146
*
147147
* remove file system from log active file system list.
148148
*/
149-
jfs_flush_journal(log, 1);
149+
jfs_flush_journal(log, 2);
150150

151151
/*
152152
* Make sure all metadata makes it to disk

0 commit comments

Comments
 (0)