summaryrefslogtreecommitdiffstats
path: root/fs/jfs/jfs_umount.c
diff options
context:
space:
mode:
authorDave Kleikamp <shaggy@linux.vnet.ibm.com>2007-10-10 18:11:24 +0200
committerDave Kleikamp <shaggy@linux.vnet.ibm.com>2008-01-03 20:11:37 +0100
commit67e6682f18b3bf812a994ae027ff87174a297ae8 (patch)
tree83be09c8232ecb9f7af9683a1b48f97767f573c5 /fs/jfs/jfs_umount.c
parentJFS: clear PAGECACHE_TAG_DIRTY for no-write pages (diff)
downloadlinux-67e6682f18b3bf812a994ae027ff87174a297ae8.tar.xz
linux-67e6682f18b3bf812a994ae027ff87174a297ae8.zip
JFS: Make sure special inode data is written after journal is flushed
This patch makes sure that data that we tried to flush before the journal was completely written actually gets pushed to disk. To avoid duplicating code, moved common code to write_special_inodes(). Signed-off-by: Dave Kleikamp <shaggy@linux.vnet.ibm.com>
Diffstat (limited to 'fs/jfs/jfs_umount.c')
-rw-r--r--fs/jfs/jfs_umount.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/fs/jfs/jfs_umount.c b/fs/jfs/jfs_umount.c
index 7971f37534a3..adcf92d3b603 100644
--- a/fs/jfs/jfs_umount.c
+++ b/fs/jfs/jfs_umount.c
@@ -68,7 +68,7 @@ int jfs_umount(struct super_block *sb)
/*
* Wait for outstanding transactions to be written to log:
*/
- jfs_flush_journal(log, 2);
+ jfs_flush_journal(log, 1);
/*
* close fileset inode allocation map (aka fileset inode)
@@ -146,7 +146,7 @@ int jfs_umount_rw(struct super_block *sb)
*
* remove file system from log active file system list.
*/
- jfs_flush_journal(log, 2);
+ jfs_flush_journal(log, 1);
/*
* Make sure all metadata makes it to disk