diff options
author | Abhijith Das <adas@redhat.com> | 2007-06-11 03:22:32 -0400 |
---|---|---|
committer | Steven Whitehouse <swhiteho@redhat.com> | 2007-07-09 03:23:36 -0400 |
commit | d93cfa9884354dac2d8ccd894594a43e0b962b6f (patch) | |
tree | 72704d54aaa99e0021d3cc0b025fb8c67b09e4ce /fs/gfs2/inode.c | |
parent | a7a2ff8a951ab373732116e7c31e2e1fe025d5e0 (diff) |
[GFS2] Fix deallocation issues
There were two issues during deallocation of unlinked inodes. The
first was relating to the use of a "try" lock which in the case of
the inode lock wasn't trying hard enough to deallocate in all
circumstances (now changed to a normal glock) and in the case of
the iopen lock didn't wait for the demotion of the shared lock before
attempting to get the exclusive lock, and thereby sometimes (timing dependent)
not completing the deallocation when it should have done.
The second issue related to the lack of a way to invalidate dcache entries
on remote nodes (now fixed by this patch) which meant that unlinks were
taking a long time to return disk space to the fs. By adding some code to
invalidate the dcache entries across the cluster for unlinked inodes, that
is now fixed.
This patch was written jointly by Abhijith Das and Steven Whitehouse.
Signed-off-by: Abhijith Das <adas@redhat.com>
Signed-off-by: Steven Whitehouse <swhiteho@redhat.com>
Diffstat (limited to 'fs/gfs2/inode.c')
-rw-r--r-- | fs/gfs2/inode.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/fs/gfs2/inode.c b/fs/gfs2/inode.c index 366235d6a5b5..792d64f69cc2 100644 --- a/fs/gfs2/inode.c +++ b/fs/gfs2/inode.c | |||
@@ -114,6 +114,7 @@ struct inode *gfs2_inode_lookup(struct super_block *sb, u64 no_addr, unsigned in | |||
114 | error = gfs2_glock_nq_init(io_gl, LM_ST_SHARED, GL_EXACT, &ip->i_iopen_gh); | 114 | error = gfs2_glock_nq_init(io_gl, LM_ST_SHARED, GL_EXACT, &ip->i_iopen_gh); |
115 | if (unlikely(error)) | 115 | if (unlikely(error)) |
116 | goto fail_iopen; | 116 | goto fail_iopen; |
117 | ip->i_iopen_gh.gh_gl->gl_object = ip; | ||
117 | 118 | ||
118 | gfs2_glock_put(io_gl); | 119 | gfs2_glock_put(io_gl); |
119 | 120 | ||