From: Dan Carpenter Date: Thu, 7 Mar 2024 08:39:18 +0000 (+0300) Subject: xfs: small cleanup in xrep_update_qflags() X-Git-Tag: v6.10-rc1~87^2~53 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=d983ff63af6068a6773283660222fff10f66e184;p=thirdparty%2Fkernel%2Flinux.git xfs: small cleanup in xrep_update_qflags() The "mp" pointer is the same as "sc->mp" so this change doesn't affect runtime at all. However, it's nicer to use same name for both the lock and the unlock. Signed-off-by: Dan Carpenter Reviewed-by: Christoph Hellwig Signed-off-by: Chandan Babu R --- diff --git a/fs/xfs/scrub/repair.c b/fs/xfs/scrub/repair.c index b6aff89679d58..92f81e374bc08 100644 --- a/fs/xfs/scrub/repair.c +++ b/fs/xfs/scrub/repair.c @@ -729,7 +729,7 @@ xrep_update_qflags( xfs_trans_log_buf(sc->tp, bp, 0, sizeof(struct xfs_dsb) - 1); no_update: - mutex_unlock(&sc->mp->m_quotainfo->qi_quotaofflock); + mutex_unlock(&mp->m_quotainfo->qi_quotaofflock); } /* Force a quotacheck the next time we mount. */