From: Christoph Hellwig Date: Tue, 6 Oct 2009 20:29:28 +0000 (+0000) Subject: xfs: cleanup ->sync_fs X-Git-Tag: v2.6.32-rc4~16^2^2~4 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=69961a26b82931601e07c9e3656bd90c598f2395;p=pandora-kernel.git 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 Reviewed-by: Alex Elder Signed-off-by: Alex Elder --- Reading git-diff-tree failed