struct xfs_buf *libxfs_trans_get_buf_map(struct xfs_trans *tp,
struct xfs_buftarg *btp,
struct xfs_buf_map *map, int nmaps,
- uint flags);
+ xfs_buf_flags_t flags);
int libxfs_trans_read_buf_map(struct xfs_mount *mp, struct xfs_trans *tp,
struct xfs_buftarg *btp,
struct xfs_buf_map *map, int nmaps,
- uint flags, struct xfs_buf **bpp,
+ xfs_buf_flags_t flags, struct xfs_buf **bpp,
const struct xfs_buf_ops *ops);
static inline struct xfs_buf *
libxfs_trans_get_buf(
struct xfs_buftarg *btp,
xfs_daddr_t blkno,
int numblks,
- uint flags,
+ xfs_buf_flags_t flags,
struct xfs_buf **bpp,
const struct xfs_buf_ops *ops)
{
bool xfs_verify_magic(struct xfs_buf *bp, __be32 dmagic);
bool xfs_verify_magic16(struct xfs_buf *bp, __be16 dmagic);
-enum xfs_buf_flags_t { /* b_flags bits */
- LIBXFS_B_EXIT = 0x0001, /* ==LIBXFS_EXIT_ON_FAILURE */
- LIBXFS_B_DIRTY = 0x0002, /* buffer has been modified */
- LIBXFS_B_STALE = 0x0004, /* buffer marked as invalid */
- LIBXFS_B_UPTODATE = 0x0008, /* buffer is sync'd to disk */
- LIBXFS_B_DISCONTIG = 0x0010, /* discontiguous buffer */
- LIBXFS_B_UNCHECKED = 0x0020, /* needs verification */
-};
+/* b_flags bits */
+#define LIBXFS_B_EXIT 0x0001 /* ==LIBXFS_EXIT_ON_FAILURE */
+#define LIBXFS_B_DIRTY 0x0002 /* buffer has been modified */
+#define LIBXFS_B_STALE 0x0004 /* buffer marked as invalid */
+#define LIBXFS_B_UPTODATE 0x0008 /* buffer is sync'd to disk */
+#define LIBXFS_B_DISCONTIG 0x0010 /* discontiguous buffer */
+#define LIBXFS_B_UNCHECKED 0x0020 /* needs verification */
+
+typedef unsigned int xfs_buf_flags_t;
#define XFS_BUF_DADDR_NULL ((xfs_daddr_t) (-1LL))
struct xfs_buftarg *target,
struct xfs_buf_map *map,
int nmaps,
- uint flags)
+ xfs_buf_flags_t flags)
{
xfs_buf_t *bp;
struct xfs_buf_log_item *bip;
struct xfs_buftarg *target,
struct xfs_buf_map *map,
int nmaps,
- uint flags,
+ xfs_buf_flags_t flags,
struct xfs_buf **bpp,
const struct xfs_buf_ops *ops)
{