Skip to content

Commit ab5f296

Browse files
committed
xfs: use super write guard in xfs_file_ioctl()
Link: https://patch.msgid.link/20251104-work-guards-v1-8-5108ac78a171@kernel.org Signed-off-by: Christian Brauner <brauner@kernel.org>
1 parent 97f9d2d commit ab5f296

1 file changed

Lines changed: 2 additions & 4 deletions

File tree

fs/xfs/xfs_ioctl.c

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1408,10 +1408,8 @@ xfs_file_ioctl(
14081408

14091409
trace_xfs_ioc_free_eofblocks(mp, &icw, _RET_IP_);
14101410

1411-
sb_start_write(mp->m_super);
1412-
error = xfs_blockgc_free_space(mp, &icw);
1413-
sb_end_write(mp->m_super);
1414-
return error;
1411+
guard(super_write)(mp->m_super);
1412+
return xfs_blockgc_free_space(mp, &icw);
14151413
}
14161414

14171415
case XFS_IOC_EXCHANGE_RANGE:

0 commit comments

Comments
 (0)