Skip to content

Commit 42c2183

Browse files
Christoph Hellwigcmaiolino
authored andcommitted
xfs: move the XLOG_REG_ constants out of xfs_log_format.h
These are purely in-memory values and not used at all in xfsprogs. Signed-off-by: Christoph Hellwig <hch@lst.de> Reviewed-by: Darrick J. Wong <djwong@kernel.org> Signed-off-by: Carlos Maiolino <cem@kernel.org>
1 parent 8e2cdd8 commit 42c2183

2 files changed

Lines changed: 37 additions & 37 deletions

File tree

fs/xfs/libxfs/xfs_log_format.h

Lines changed: 0 additions & 37 deletions
Original file line numberDiff line numberDiff line change
@@ -86,43 +86,6 @@ struct xfs_unmount_log_format {
8686
uint32_t pad2; /* may as well make it 64 bits */
8787
};
8888

89-
/* Region types for iovec's i_type */
90-
#define XLOG_REG_TYPE_BFORMAT 1
91-
#define XLOG_REG_TYPE_BCHUNK 2
92-
#define XLOG_REG_TYPE_EFI_FORMAT 3
93-
#define XLOG_REG_TYPE_EFD_FORMAT 4
94-
#define XLOG_REG_TYPE_IFORMAT 5
95-
#define XLOG_REG_TYPE_ICORE 6
96-
#define XLOG_REG_TYPE_IEXT 7
97-
#define XLOG_REG_TYPE_IBROOT 8
98-
#define XLOG_REG_TYPE_ILOCAL 9
99-
#define XLOG_REG_TYPE_IATTR_EXT 10
100-
#define XLOG_REG_TYPE_IATTR_BROOT 11
101-
#define XLOG_REG_TYPE_IATTR_LOCAL 12
102-
#define XLOG_REG_TYPE_QFORMAT 13
103-
#define XLOG_REG_TYPE_DQUOT 14
104-
#define XLOG_REG_TYPE_QUOTAOFF 15
105-
#define XLOG_REG_TYPE_LRHEADER 16
106-
#define XLOG_REG_TYPE_UNMOUNT 17
107-
#define XLOG_REG_TYPE_COMMIT 18
108-
#define XLOG_REG_TYPE_TRANSHDR 19
109-
#define XLOG_REG_TYPE_ICREATE 20
110-
#define XLOG_REG_TYPE_RUI_FORMAT 21
111-
#define XLOG_REG_TYPE_RUD_FORMAT 22
112-
#define XLOG_REG_TYPE_CUI_FORMAT 23
113-
#define XLOG_REG_TYPE_CUD_FORMAT 24
114-
#define XLOG_REG_TYPE_BUI_FORMAT 25
115-
#define XLOG_REG_TYPE_BUD_FORMAT 26
116-
#define XLOG_REG_TYPE_ATTRI_FORMAT 27
117-
#define XLOG_REG_TYPE_ATTRD_FORMAT 28
118-
#define XLOG_REG_TYPE_ATTR_NAME 29
119-
#define XLOG_REG_TYPE_ATTR_VALUE 30
120-
#define XLOG_REG_TYPE_XMI_FORMAT 31
121-
#define XLOG_REG_TYPE_XMD_FORMAT 32
122-
#define XLOG_REG_TYPE_ATTR_NEWNAME 33
123-
#define XLOG_REG_TYPE_ATTR_NEWVALUE 34
124-
#define XLOG_REG_TYPE_MAX 34
125-
12689
/*
12790
* Flags to log operation header
12891
*

fs/xfs/xfs_log.h

Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,43 @@ struct xfs_log_vec {
2020
int lv_alloc_size; /* size of allocated lv */
2121
};
2222

23+
/* Region types for iovec's i_type */
24+
#define XLOG_REG_TYPE_BFORMAT 1
25+
#define XLOG_REG_TYPE_BCHUNK 2
26+
#define XLOG_REG_TYPE_EFI_FORMAT 3
27+
#define XLOG_REG_TYPE_EFD_FORMAT 4
28+
#define XLOG_REG_TYPE_IFORMAT 5
29+
#define XLOG_REG_TYPE_ICORE 6
30+
#define XLOG_REG_TYPE_IEXT 7
31+
#define XLOG_REG_TYPE_IBROOT 8
32+
#define XLOG_REG_TYPE_ILOCAL 9
33+
#define XLOG_REG_TYPE_IATTR_EXT 10
34+
#define XLOG_REG_TYPE_IATTR_BROOT 11
35+
#define XLOG_REG_TYPE_IATTR_LOCAL 12
36+
#define XLOG_REG_TYPE_QFORMAT 13
37+
#define XLOG_REG_TYPE_DQUOT 14
38+
#define XLOG_REG_TYPE_QUOTAOFF 15
39+
#define XLOG_REG_TYPE_LRHEADER 16
40+
#define XLOG_REG_TYPE_UNMOUNT 17
41+
#define XLOG_REG_TYPE_COMMIT 18
42+
#define XLOG_REG_TYPE_TRANSHDR 19
43+
#define XLOG_REG_TYPE_ICREATE 20
44+
#define XLOG_REG_TYPE_RUI_FORMAT 21
45+
#define XLOG_REG_TYPE_RUD_FORMAT 22
46+
#define XLOG_REG_TYPE_CUI_FORMAT 23
47+
#define XLOG_REG_TYPE_CUD_FORMAT 24
48+
#define XLOG_REG_TYPE_BUI_FORMAT 25
49+
#define XLOG_REG_TYPE_BUD_FORMAT 26
50+
#define XLOG_REG_TYPE_ATTRI_FORMAT 27
51+
#define XLOG_REG_TYPE_ATTRD_FORMAT 28
52+
#define XLOG_REG_TYPE_ATTR_NAME 29
53+
#define XLOG_REG_TYPE_ATTR_VALUE 30
54+
#define XLOG_REG_TYPE_XMI_FORMAT 31
55+
#define XLOG_REG_TYPE_XMD_FORMAT 32
56+
#define XLOG_REG_TYPE_ATTR_NEWNAME 33
57+
#define XLOG_REG_TYPE_ATTR_NEWVALUE 34
58+
#define XLOG_REG_TYPE_MAX 34
59+
2360
#define XFS_LOG_VEC_ORDERED (-1)
2461

2562
/*

0 commit comments

Comments
 (0)