diff options
author | Christoph Hellwig <hch@lst.de> | 2017-07-13 15:14:33 -0400 |
---|---|---|
committer | Darrick J. Wong <darrick.wong@oracle.com> | 2017-07-13 17:55:05 -0400 |
commit | 5af7777e11f5a91dd90247035978bef6c95065e4 (patch) | |
tree | 7f9927eb2c5b60341647b8099bd39e228e69bfcf | |
parent | cf69f8248cc89c0a0e82f8332f9e7f13ab014c98 (diff) |
xfs: assert locking precondŃ–tion in xfs_attr_list_int_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>
-rw-r--r-- | fs/xfs/xfs_attr_list.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/fs/xfs/xfs_attr_list.c b/fs/xfs/xfs_attr_list.c index 545eca508d42..7740c8a5e736 100644 --- a/fs/xfs/xfs_attr_list.c +++ b/fs/xfs/xfs_attr_list.c | |||
@@ -463,6 +463,8 @@ xfs_attr_list_int_ilocked( | |||
463 | { | 463 | { |
464 | struct xfs_inode *dp = context->dp; | 464 | struct xfs_inode *dp = context->dp; |
465 | 465 | ||
466 | ASSERT(xfs_isilocked(dp, XFS_ILOCK_SHARED | XFS_ILOCK_EXCL)); | ||
467 | |||
466 | /* | 468 | /* |
467 | * Decide on what work routines to call based on the inode size. | 469 | * Decide on what work routines to call based on the inode size. |
468 | */ | 470 | */ |