Skip to content

Commit 6a99be5

Browse files
committed
GFS2: Fix typo
A missing ! in a test. Signed-off-by: Steven Whitehouse <[email protected]>
1 parent cc0581b commit 6a99be5

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
@@ -233,7 +233,7 @@ static ssize_t demote_rq_store(struct gfs2_sbd *sdp, const char *buf, size_t len
233233
glops = gfs2_glops_list[gltype];
234234
if (glops == NULL)
235235
return -EINVAL;
236-
if (test_and_set_bit(SDF_DEMOTE, &sdp->sd_flags))
236+
if (!test_and_set_bit(SDF_DEMOTE, &sdp->sd_flags))
237237
fs_info(sdp, "demote interface used\n");
238238
rv = gfs2_glock_get(sdp, glnum, glops, 0, &gl);
239239
if (rv)

0 commit comments

Comments
 (0)