Skip to content

Commit 581b448

Browse files
dgchinnerdchinner
authored andcommitted
xfs: convert buffer log item flags to unsigned.
5.18 w/ std=gnu11 compiled with gcc-5 wants flags stored in unsigned fields to be unsigned. Signed-off-by: Dave Chinner <dchinner@redhat.com> Reviewed-by: Chandan Babu R <chandan.babu@oracle.com> Signed-off-by: Dave Chinner <david@fromorbit.com>
1 parent 722db70 commit 581b448

1 file changed

Lines changed: 11 additions & 13 deletions

File tree

fs/xfs/xfs_buf_item.h

Lines changed: 11 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -8,15 +8,18 @@
88

99
/* kernel only definitions */
1010

11+
struct xfs_buf;
12+
struct xfs_mount;
13+
1114
/* buf log item flags */
12-
#define XFS_BLI_HOLD 0x01
13-
#define XFS_BLI_DIRTY 0x02
14-
#define XFS_BLI_STALE 0x04
15-
#define XFS_BLI_LOGGED 0x08
16-
#define XFS_BLI_INODE_ALLOC_BUF 0x10
17-
#define XFS_BLI_STALE_INODE 0x20
18-
#define XFS_BLI_INODE_BUF 0x40
19-
#define XFS_BLI_ORDERED 0x80
15+
#define XFS_BLI_HOLD (1u << 0)
16+
#define XFS_BLI_DIRTY (1u << 1)
17+
#define XFS_BLI_STALE (1u << 2)
18+
#define XFS_BLI_LOGGED (1u << 3)
19+
#define XFS_BLI_INODE_ALLOC_BUF (1u << 4)
20+
#define XFS_BLI_STALE_INODE (1u << 5)
21+
#define XFS_BLI_INODE_BUF (1u << 6)
22+
#define XFS_BLI_ORDERED (1u << 7)
2023

2124
#define XFS_BLI_FLAGS \
2225
{ XFS_BLI_HOLD, "HOLD" }, \
@@ -28,11 +31,6 @@
2831
{ XFS_BLI_INODE_BUF, "INODE_BUF" }, \
2932
{ XFS_BLI_ORDERED, "ORDERED" }
3033

31-
32-
struct xfs_buf;
33-
struct xfs_mount;
34-
struct xfs_buf_log_item;
35-
3634
/*
3735
* This is the in core log item structure used to track information
3836
* needed to log buffers. It tracks how many times the lock has been

0 commit comments

Comments
 (0)