Skip to content

Commit 3592bfa

Browse files
author
Andreas Gruenbacher
committed
gfs2: Use [NO_]CREATE consistently for gfs2_glock_get
When calling gfs2_glock_get(), consistently pass the CREATE or NO_CREATE flag for the create argument. This is the only place that passes 0 instead. Signed-off-by: Andreas Gruenbacher <[email protected]>
1 parent 52c2d38 commit 3592bfa

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

fs/gfs2/sys.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -336,7 +336,7 @@ static ssize_t demote_rq_store(struct gfs2_sbd *sdp, const char *buf, size_t len
336336
return -EINVAL;
337337
if (!test_and_set_bit(SDF_DEMOTE, &sdp->sd_flags))
338338
fs_info(sdp, "demote interface used\n");
339-
rv = gfs2_glock_get(sdp, glnum, glops, 0, &gl);
339+
rv = gfs2_glock_get(sdp, glnum, glops, NO_CREATE, &gl);
340340
if (rv)
341341
return rv;
342342
gfs2_glock_cb(gl, glmode);

0 commit comments

Comments
 (0)