summaryrefslogtreecommitdiffstats
path: root/fs/gfs2/rgrp.c
diff options
context:
space:
mode:
authorBob Peterson <rpeterso@redhat.com>2014-01-16 14:52:16 +0100
committerSteven Whitehouse <swhiteho@redhat.com>2014-01-16 15:22:12 +0100
commit8b127d0494890ced4e35fb8eca6d6b57564ee1c6 (patch)
treef6c783591e887a54818df5ecb7b23b7066767b36 /fs/gfs2/rgrp.c
parentGFS2: Don't use ENOBUFS when ENOMEM is the correct error code (diff)
downloadlinux-8b127d0494890ced4e35fb8eca6d6b57564ee1c6.tar.xz
linux-8b127d0494890ced4e35fb8eca6d6b57564ee1c6.zip
GFS2: Small cleanup
This is a small cleanup to function gfs2_rgrp_go_lock so that it uses rgd instead of its more complicated twin. Signed-off-by: Bob Peterson <rpeterso@redhat.com> Signed-off-by: Steven Whitehouse <swhiteho@redhat.com>
Diffstat (limited to 'fs/gfs2/rgrp.c')
-rw-r--r--fs/gfs2/rgrp.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/gfs2/rgrp.c b/fs/gfs2/rgrp.c
index e14e8877db96..a1da21349235 100644
--- a/fs/gfs2/rgrp.c
+++ b/fs/gfs2/rgrp.c
@@ -1199,7 +1199,7 @@ int gfs2_rgrp_go_lock(struct gfs2_holder *gh)
if (gh->gh_flags & GL_SKIP && sdp->sd_args.ar_rgrplvb)
return 0;
- return gfs2_rgrp_bh_get((struct gfs2_rgrpd *)gh->gh_gl->gl_object);
+ return gfs2_rgrp_bh_get(rgd);
}
/**