]> git.baikalelectronics.ru Git - kernel.git/commit
GFS2: Read resource groups on mount
authorSteven Whitehouse <swhiteho@redhat.com>
Fri, 24 Feb 2012 15:09:14 +0000 (15:09 +0000)
committerSteven Whitehouse <swhiteho@redhat.com>
Tue, 28 Feb 2012 09:52:39 +0000 (09:52 +0000)
commit6546a175bfc4c0cdf3e3d992a04d8860c5559674
tree65d5ed095e3150d6061860f5aefd150a5ab76cfd
parent94d59abb1ef0dc0839464630f1c41cfed91a49f6
GFS2: Read resource groups on mount

This makes mount take slightly longer, but at the same time, the first
write to the filesystem will be faster too. It also means that if there
is a problem in the resource index, then we can refuse to mount rather
than having to try and report that when the first write occurs.

In addition, to avoid recursive locking, we hvae to take account of
instances when the rindex glock may already be held when we are
trying to update the rbtree of resource groups.

Signed-off-by: Steven Whitehouse <swhiteho@redhat.com>
fs/gfs2/file.c
fs/gfs2/inode.c
fs/gfs2/ops_fstype.c
fs/gfs2/rgrp.c