diff options
Diffstat (limited to 'fs/xfs/xfs_inode.h')
-rw-r--r-- | fs/xfs/xfs_inode.h | 16 |
1 files changed, 10 insertions, 6 deletions
diff --git a/fs/xfs/xfs_inode.h b/fs/xfs/xfs_inode.h index f75afecef8e7..012dfd4a958c 100644 --- a/fs/xfs/xfs_inode.h +++ b/fs/xfs/xfs_inode.h | |||
@@ -379,6 +379,7 @@ xfs_iflags_test(xfs_inode_t *ip, unsigned short flags) | |||
379 | #define XFS_ISTALE 0x0010 /* inode has been staled */ | 379 | #define XFS_ISTALE 0x0010 /* inode has been staled */ |
380 | #define XFS_IRECLAIMABLE 0x0020 /* inode can be reclaimed */ | 380 | #define XFS_IRECLAIMABLE 0x0020 /* inode can be reclaimed */ |
381 | #define XFS_INEW 0x0040 | 381 | #define XFS_INEW 0x0040 |
382 | #define XFS_IFILESTREAM 0x0080 /* inode is in a filestream directory */ | ||
382 | 383 | ||
383 | /* | 384 | /* |
384 | * Flags for inode locking. | 385 | * Flags for inode locking. |
@@ -414,19 +415,22 @@ xfs_iflags_test(xfs_inode_t *ip, unsigned short flags) | |||
414 | * gets a lockdep subclass of 1 and the second lock will have a lockdep | 415 | * gets a lockdep subclass of 1 and the second lock will have a lockdep |
415 | * subclass of 0. | 416 | * subclass of 0. |
416 | * | 417 | * |
417 | * XFS_I[O]LOCK_INUMORDER - for locking several inodes at the some time | 418 | * XFS_LOCK_INUMORDER - for locking several inodes at the some time |
418 | * with xfs_lock_inodes(). This flag is used as the starting subclass | 419 | * with xfs_lock_inodes(). This flag is used as the starting subclass |
419 | * and each subsequent lock acquired will increment the subclass by one. | 420 | * and each subsequent lock acquired will increment the subclass by one. |
420 | * So the first lock acquired will have a lockdep subclass of 2, the | 421 | * So the first lock acquired will have a lockdep subclass of 2, the |
421 | * second lock will have a lockdep subclass of 3, and so on. | 422 | * second lock will have a lockdep subclass of 3, and so on. It is |
423 | * the responsibility of the class builder to shift this to the correct | ||
424 | * portion of the lock_mode lockdep mask. | ||
422 | */ | 425 | */ |
426 | #define XFS_LOCK_PARENT 1 | ||
427 | #define XFS_LOCK_INUMORDER 2 | ||
428 | |||
423 | #define XFS_IOLOCK_SHIFT 16 | 429 | #define XFS_IOLOCK_SHIFT 16 |
424 | #define XFS_IOLOCK_PARENT (1 << XFS_IOLOCK_SHIFT) | 430 | #define XFS_IOLOCK_PARENT (XFS_LOCK_PARENT << XFS_IOLOCK_SHIFT) |
425 | #define XFS_IOLOCK_INUMORDER (2 << XFS_IOLOCK_SHIFT) | ||
426 | 431 | ||
427 | #define XFS_ILOCK_SHIFT 24 | 432 | #define XFS_ILOCK_SHIFT 24 |
428 | #define XFS_ILOCK_PARENT (1 << XFS_ILOCK_SHIFT) | 433 | #define XFS_ILOCK_PARENT (XFS_LOCK_PARENT << XFS_ILOCK_SHIFT) |
429 | #define XFS_ILOCK_INUMORDER (2 << XFS_ILOCK_SHIFT) | ||
430 | 434 | ||
431 | #define XFS_IOLOCK_DEP_MASK 0x00ff0000 | 435 | #define XFS_IOLOCK_DEP_MASK 0x00ff0000 |
432 | #define XFS_ILOCK_DEP_MASK 0xff000000 | 436 | #define XFS_ILOCK_DEP_MASK 0xff000000 |