]> err.no Git - linux-2.6/commit
[XFS] Refactor xfs_mountfs
authorEric Sandeen <sandeen@sandeen.net>
Fri, 12 Oct 2007 01:03:40 +0000 (11:03 +1000)
committerLachlan McIlroy <lachlan@redback.melbourne.sgi.com>
Thu, 7 Feb 2008 07:11:56 +0000 (18:11 +1100)
commit0771fb4515229821b7d74865b87a430de9fc1113
tree073bec9401cc39ee3f4f01cf549d943c4409d653
parentb53e675dc868c4844ecbcce9149cf68e4299231d
[XFS] Refactor xfs_mountfs

Refactoring xfs_mountfs() to call sub-functions for logical chunks can
help save a bit of stack, and can make it easier to read this long
function.

The mount path is one of the longest common callchains, easily getting to
within a few bytes of the end of a 4k stack when over lvm, quotas are
enabled, and quotacheck must be done.

With this change on top of the other stack-related changes I've sent, I
can get xfs to survive a normal xfsqa run on 4k stacks over lvm.

SGI-PV: 971186
SGI-Modid: xfs-linux-melb:xfs-kern:29834a

Signed-off-by: Eric Sandeen <sandeen@sandeen.net>
Signed-off-by: Donald Douwsma <donaldd@sgi.com>
Signed-off-by: Tim Shimmin <tes@sgi.com>
fs/xfs/xfs_mount.c