diff options
author | Steven Whitehouse | 2012-02-24 16:09:14 +0100 |
---|---|---|
committer | Steven Whitehouse | 2012-02-28 10:52:39 +0100 |
commit | a365fbf354907430e6852f0c373b4b3eeff81ba3 (patch) | |
tree | 65d5ed095e3150d6061860f5aefd150a5ab76cfd /fs/gfs2/ops_fstype.c | |
parent | GFS2: Ensure rindex is uptodate for fallocate (diff) | |
download | kernel-qcow2-linux-a365fbf354907430e6852f0c373b4b3eeff81ba3.tar.gz kernel-qcow2-linux-a365fbf354907430e6852f0c373b4b3eeff81ba3.tar.xz kernel-qcow2-linux-a365fbf354907430e6852f0c373b4b3eeff81ba3.zip |
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>
Diffstat (limited to 'fs/gfs2/ops_fstype.c')
-rw-r--r-- | fs/gfs2/ops_fstype.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/fs/gfs2/ops_fstype.c b/fs/gfs2/ops_fstype.c index 6aacf3f230a2..24f609c9ef91 100644 --- a/fs/gfs2/ops_fstype.c +++ b/fs/gfs2/ops_fstype.c @@ -800,6 +800,11 @@ static int init_inodes(struct gfs2_sbd *sdp, int undo) fs_err(sdp, "can't get quota file inode: %d\n", error); goto fail_rindex; } + + error = gfs2_rindex_update(sdp); + if (error) + goto fail_qinode; + return 0; fail_qinode: |