]> git.baikalelectronics.ru Git - kernel.git/commit
xfs: cleanup ->sync_fs
authorChristoph Hellwig <hch@infradead.org>
Tue, 6 Oct 2009 20:29:28 +0000 (20:29 +0000)
committerAlex Elder <aelder@sgi.com>
Thu, 8 Oct 2009 17:01:03 +0000 (12:01 -0500)
commit8b544d1a44e396be4afd9321ea8fa43aef992bd0
tree0798e1feac2cebe0327affef4a63bdf6fd11ff02
parentbc7ca52afe5d38db1af08888c4c064d7971e4a40
xfs: cleanup ->sync_fs

Sort out ->sync_fs to not perform a superblock writeback for the wait = 0 case
as that is just an optional first pass and the superblock will be written back
properly in the next call with wait = 1.  Instead perform an opportunistic
quota writeback to have less work later.  Also remove the freeze special case
as we do a proper wait = 1 call in the freeze code anyway.

Also rename the function to xfs_fs_sync_fs to match the normal naming
convention, update comments and avoid calling into the laptop_mode logic on
an error.

Signed-off-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: Alex Elder <aelder@sgi.com>
Signed-off-by: Alex Elder <aelder@sgi.com>
fs/xfs/linux-2.6/xfs_super.c