xfs: small cleanup in xrep_update_qflags()
authorDan Carpenter <dan.carpenter@linaro.org>
Thu, 7 Mar 2024 08:39:18 +0000 (11:39 +0300)
committerChandan Babu R <chandanbabu@kernel.org>
Mon, 22 Apr 2024 07:21:43 +0000 (12:51 +0530)
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 <dan.carpenter@linaro.org>
Reviewed-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Chandan Babu R <chandanbabu@kernel.org>
fs/xfs/scrub/repair.c

index b6aff89679d587afa03f2036ea99bddc8bd848a7..92f81e374bc0819fe9c7ca9630cbb916a82ac2d8 100644 (file)
@@ -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. */