X-Git-Url: http://git.cascardo.info/?a=blobdiff_plain;f=fs%2Fjfs%2Fjfs_umount.c;h=21eaf7ac0fcb6c46ebfc784bc9a9a24a32e18339;hb=0a7d5f8ce960e74fa22986bda4af488539796e49;hp=5cf91785b5416be6016ab720871cd0b3bcc9477c;hpb=325a479c4c110db278ef3361460a48c4093252cc;p=cascardo%2Flinux.git diff --git a/fs/jfs/jfs_umount.c b/fs/jfs/jfs_umount.c index 5cf91785b541..21eaf7ac0fcb 100644 --- a/fs/jfs/jfs_umount.c +++ b/fs/jfs/jfs_umount.c @@ -108,8 +108,7 @@ int jfs_umount(struct super_block *sb) * Make sure all metadata makes it to disk before we mark * the superblock as clean */ - filemap_fdatawrite(sbi->direct_inode->i_mapping); - filemap_fdatawait(sbi->direct_inode->i_mapping); + filemap_write_and_wait(sbi->direct_inode->i_mapping); /* * ensure all file system file pages are propagated to their @@ -161,8 +160,7 @@ int jfs_umount_rw(struct super_block *sb) * mark the superblock clean before everything is flushed to * disk. */ - filemap_fdatawrite(sbi->direct_inode->i_mapping); - filemap_fdatawait(sbi->direct_inode->i_mapping); + filemap_write_and_wait(sbi->direct_inode->i_mapping); updateSuper(sb, FM_CLEAN);