]> git.baikalelectronics.ru Git - kernel.git/commit
GFS2: drop rindex glock to refresh rindex list
authorBenjamin Marzinski <bmarzins@redhat.com>
Tue, 10 Nov 2009 18:54:56 +0000 (12:54 -0600)
committerSteven Whitehouse <swhiteho@redhat.com>
Thu, 3 Dec 2009 11:59:03 +0000 (11:59 +0000)
commit1377b9f38c5bc9f2e0014c1b76126bf289490994
treede903f8b904281ff44cc5ca0ec62b4f8e0010af2
parent7a82be76eaa6a28fec6ef5f67dc5a54681759e85
GFS2: drop rindex glock to refresh rindex list

When a gfs2 filesystem is grown, it needs to rebuild the rindex list to be able
to use the new space.  gfs2 does this when the rindex is marked not uptodate,
which happens when the rindex glock is dropped.  However, on a single node
setup, there is never any reason to drop the rindex glock, so gfs2 never
invalidates the the rindex. This patch makes gfs2 automatically drop the
rindex glock after filesystem grows, so it can refresh the rindex list.

Signed-off-by: Benjamin Marzinski <bmarzins@redhat.com>
Signed-off-by: Steven Whitehouse <swhiteho@redhat.com>
fs/gfs2/aops.c