diff options
| author | Dave Chinner <david@fromorbit.com> | 2022-04-21 16:45:03 +1000 | 
|---|---|---|
| committer | Dave Chinner <david@fromorbit.com> | 2022-04-21 16:45:03 +1000 | 
| commit | 898a768f54bf3c910392eb7987b47ebddc28e444 (patch) | |
| tree | 82bcd41e84ada3f0861c1ac2a5d9d3e8a0a6a5e2 /fs/xfs/xfs_inode.h | |
| parent | 1499b8a3a37baf5a78ee8044e9a8fa0471268d74 (diff) | |
| parent | c60d13ea657f69a0f90c7ba131c16e0a25598488 (diff) | |
Merge branch 'guilt/xfs-unsigned-flags-5.18' into xfs-5.19-for-next
Diffstat (limited to 'fs/xfs/xfs_inode.h')
| -rw-r--r-- | fs/xfs/xfs_inode.h | 24 | 
1 files changed, 12 insertions, 12 deletions
diff --git a/fs/xfs/xfs_inode.h b/fs/xfs/xfs_inode.h index 740ab13d1aa2..b67ab9f10cf9 100644 --- a/fs/xfs/xfs_inode.h +++ b/fs/xfs/xfs_inode.h @@ -278,12 +278,12 @@ static inline bool xfs_inode_has_bigtime(struct xfs_inode *ip)   * Bit ranges:	1<<1  - 1<<16-1 -- iolock/ilock modes (bitfield)   *		1<<16 - 1<<32-1 -- lockdep annotation (integers)   */ -#define	XFS_IOLOCK_EXCL		(1<<0) -#define	XFS_IOLOCK_SHARED	(1<<1) -#define	XFS_ILOCK_EXCL		(1<<2) -#define	XFS_ILOCK_SHARED	(1<<3) -#define	XFS_MMAPLOCK_EXCL	(1<<4) -#define	XFS_MMAPLOCK_SHARED	(1<<5) +#define	XFS_IOLOCK_EXCL		(1u << 0) +#define	XFS_IOLOCK_SHARED	(1u << 1) +#define	XFS_ILOCK_EXCL		(1u << 2) +#define	XFS_ILOCK_SHARED	(1u << 3) +#define	XFS_MMAPLOCK_EXCL	(1u << 4) +#define	XFS_MMAPLOCK_SHARED	(1u << 5)  #define XFS_LOCK_MASK		(XFS_IOLOCK_EXCL | XFS_IOLOCK_SHARED \  				| XFS_ILOCK_EXCL | XFS_ILOCK_SHARED \ @@ -350,19 +350,19 @@ static inline bool xfs_inode_has_bigtime(struct xfs_inode *ip)   */  #define XFS_IOLOCK_SHIFT		16  #define XFS_IOLOCK_MAX_SUBCLASS		3 -#define XFS_IOLOCK_DEP_MASK		0x000f0000 +#define XFS_IOLOCK_DEP_MASK		0x000f0000u  #define XFS_MMAPLOCK_SHIFT		20  #define XFS_MMAPLOCK_NUMORDER		0  #define XFS_MMAPLOCK_MAX_SUBCLASS	3 -#define XFS_MMAPLOCK_DEP_MASK		0x00f00000 +#define XFS_MMAPLOCK_DEP_MASK		0x00f00000u  #define XFS_ILOCK_SHIFT			24 -#define XFS_ILOCK_PARENT_VAL		5 +#define XFS_ILOCK_PARENT_VAL		5u  #define XFS_ILOCK_MAX_SUBCLASS		(XFS_ILOCK_PARENT_VAL - 1) -#define XFS_ILOCK_RTBITMAP_VAL		6 -#define XFS_ILOCK_RTSUM_VAL		7 -#define XFS_ILOCK_DEP_MASK		0xff000000 +#define XFS_ILOCK_RTBITMAP_VAL		6u +#define XFS_ILOCK_RTSUM_VAL		7u +#define XFS_ILOCK_DEP_MASK		0xff000000u  #define	XFS_ILOCK_PARENT		(XFS_ILOCK_PARENT_VAL << XFS_ILOCK_SHIFT)  #define	XFS_ILOCK_RTBITMAP		(XFS_ILOCK_RTBITMAP_VAL << XFS_ILOCK_SHIFT)  #define	XFS_ILOCK_RTSUM			(XFS_ILOCK_RTSUM_VAL << XFS_ILOCK_SHIFT)  | 
