Commit 5af7777e authored by Christoph Hellwig's avatar Christoph Hellwig Committed by Darrick J. Wong

xfs: assert locking precondіtion in xfs_attr_list_int_ilocked

Signed-off-by: default avatarChristoph Hellwig <hch@lst.de>
Reviewed-by: default avatarDarrick J. Wong <darrick.wong@oracle.com>
Signed-off-by: default avatarDarrick J. Wong <darrick.wong@oracle.com>
parent cf69f824
...@@ -463,6 +463,8 @@ xfs_attr_list_int_ilocked( ...@@ -463,6 +463,8 @@ xfs_attr_list_int_ilocked(
{ {
struct xfs_inode *dp = context->dp; struct xfs_inode *dp = context->dp;
ASSERT(xfs_isilocked(dp, XFS_ILOCK_SHARED | XFS_ILOCK_EXCL));
/* /*
* Decide on what work routines to call based on the inode size. * Decide on what work routines to call based on the inode size.
*/ */
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment