mirror of
https://github.com/torvalds/linux.git
synced 2026-10-23 23:51:02 +02:00
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>
This commit is contained in:
parent
1a4aeb6d6a
commit
2f9efb1efe
|
|
@ -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;
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user