소스 검색

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>
Christoph Hellwig 8 년 전
부모
커밋
5af7777e11
1개의 변경된 파일2개의 추가작업 그리고 0개의 파일을 삭제
  1. 2 0
      fs/xfs/xfs_attr_list.c

+ 2 - 0
fs/xfs/xfs_attr_list.c

@@ -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.
 	 */
 	 */