aboutsummaryrefslogtreecommitdiff
path: root/fs/gfs2/glock.h
diff options
context:
space:
mode:
authorGravatar Andreas Gruenbacher <agruenba@redhat.com> 2022-12-02 18:00:15 +0100
committerGravatar Andreas Gruenbacher <agruenba@redhat.com> 2022-12-06 16:06:31 +0100
commit4ad02083a092b497f35804de03eaa62cf81fada6 (patch)
tree3bbd9abb90556a65a8b23cdca1d1946af202a4f9 /fs/gfs2/glock.h
parentgfs2: Always check inode size of inline inodes (diff)
downloadlinux-4ad02083a092b497f35804de03eaa62cf81fada6.tar.gz
linux-4ad02083a092b497f35804de03eaa62cf81fada6.tar.bz2
linux-4ad02083a092b497f35804de03eaa62cf81fada6.zip
gfs2: Make gfs2_glock_hold return its glock argument
This allows code like 'gl = gfs2_glock_hold(...)'. Signed-off-by: Andreas Gruenbacher <agruenba@redhat.com>
Diffstat (limited to 'fs/gfs2/glock.h')
-rw-r--r--fs/gfs2/glock.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/gfs2/glock.h b/fs/gfs2/glock.h
index 0d068f4fd7d6..76cd2fabc668 100644
--- a/fs/gfs2/glock.h
+++ b/fs/gfs2/glock.h
@@ -196,7 +196,7 @@ static inline struct address_space *gfs2_glock2aspace(struct gfs2_glock *gl)
extern int gfs2_glock_get(struct gfs2_sbd *sdp, u64 number,
const struct gfs2_glock_operations *glops,
int create, struct gfs2_glock **glp);
-extern void gfs2_glock_hold(struct gfs2_glock *gl);
+extern struct gfs2_glock *gfs2_glock_hold(struct gfs2_glock *gl);
extern void gfs2_glock_put(struct gfs2_glock *gl);
extern void gfs2_glock_queue_put(struct gfs2_glock *gl);