diff options
| author | Andreas Gruenbacher <agruenba@redhat.com> | 2026-10-15 16:37:25 +0200 |
|---|---|---|
| committer | Andreas Gruenbacher <agruenba@redhat.com> | 2026-10-16 02:27:54 +0200 |
| commit | 2f9efb1efe4e026e44b7693e67f54344ae022deb (patch) | |
| tree | 806d22806f0ba67d4b3f75067db5b9293a3f50d9 | |
| parent | 1a4aeb6d6a08af1a2e2c52c84170561625819377 (diff) | |
gfs2: remove unnecessary check in gfs2_freeze_lock_shared
gfs2_freeze_lock_shared() takes sdp->sd_freeze_gl without the
LM_FLAG_TRY or LM_FLAG_TRY_1CB flags, so gfs2_glock_nq_init() will never
return GLR_TRYFAILED.
Signed-off-by: Andreas Gruenbacher <agruenba@redhat.com>
| -rw-r--r-- | fs/gfs2/util.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/gfs2/util.c b/fs/gfs2/util.c index 61b0668ecabc..529c3ec37a18 100644 --- a/fs/gfs2/util.c +++ b/fs/gfs2/util.c @@ -103,7 +103,7 @@ int gfs2_freeze_lock_shared(struct gfs2_sbd *sdp) error = gfs2_glock_nq_init(sdp->sd_freeze_gl, LM_ST_SHARED, flags, &sdp->sd_freeze_gh); - if (error && error != GLR_TRYFAILED) + if (error) fs_err(sdp, "can't lock the freeze glock: %d\n", error); return error; } |
