From: Dave Chinner Date: Mon, 8 Oct 2012 10:56:03 +0000 (+1100) Subject: xfs: Bring some sanity to log unmounting X-Git-Tag: omap-for-v3.8/fixes-for-merge-window-v4-signed~55^2~73 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=cf2931db2d189ce0583be7ae880d7e3f8c15f623;p=pandora-kernel.git xfs: Bring some sanity to log unmounting When unmounting the filesystem, there are lots of operations that need to be done in a specific order, and they are spread across across a couple of functions. We have to drain the AIL before we write the unmount record, and we have to shut down the background log work before we do either of them. But this is all split haphazardly across xfs_unmountfs() and xfs_log_unmount(). Move all the AIL flushing and log manipulations to xfs_log_unmount() so that the responisbilities of each function is clear and the operations they perform obvious. Signed-off-by: Dave Chinner Reviewed-by: Christoph Hellwig Reviewed-by: Mark Tinguely Signed-off-by: Ben Myers --- Reading git-diff-tree failed