mirror of
https://github.com/FEX-Emu/linux.git
synced 2025-01-13 12:53:27 +00:00
xfs: assert locking precondition in xfs_readlink_bmap_ilocked
Signed-off-by: Christoph Hellwig <hch@lst.de> Reviewed-by: Darrick J. Wong <darrick.wong@oracle.com> Signed-off-by: Darrick J. Wong <darrick.wong@oracle.com>
This commit is contained in:
parent
5af7777e11
commit
29db2500f6
@ -61,6 +61,8 @@ xfs_readlink_bmap_ilocked(
|
||||
int fsblocks = 0;
|
||||
int offset;
|
||||
|
||||
ASSERT(xfs_isilocked(ip, XFS_ILOCK_SHARED | XFS_ILOCK_EXCL));
|
||||
|
||||
fsblocks = xfs_symlink_blocks(mp, pathlen);
|
||||
error = xfs_bmapi_read(ip, 0, fsblocks, mval, &nmaps, 0);
|
||||
if (error)
|
||||
|
Loading…
x
Reference in New Issue
Block a user