mirror of https://github.com/torvalds/linux.git
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>
This commit is contained in:
parent
97f9d2d282
commit
ab5f296076
|
|
@ -1408,10 +1408,8 @@ xfs_file_ioctl(
|
||||||
|
|
||||||
trace_xfs_ioc_free_eofblocks(mp, &icw, _RET_IP_);
|
trace_xfs_ioc_free_eofblocks(mp, &icw, _RET_IP_);
|
||||||
|
|
||||||
sb_start_write(mp->m_super);
|
guard(super_write)(mp->m_super);
|
||||||
error = xfs_blockgc_free_space(mp, &icw);
|
return xfs_blockgc_free_space(mp, &icw);
|
||||||
sb_end_write(mp->m_super);
|
|
||||||
return error;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
case XFS_IOC_EXCHANGE_RANGE:
|
case XFS_IOC_EXCHANGE_RANGE:
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue