xfs: remove unused typedef definitions
Remove some typdefs for type_t's that are no longer referred to by their typedef'd types. Signed-off-by: Eric Sandeen <sandeen@redhat.com> Reviewed-by: Darrick J. Wong <darrick.wong@oracle.com> Signed-off-by: Darrick J. Wong <darrick.wong@oracle.com>
This commit is contained in:
committed by
Darrick J. Wong
parent
1cc95e6f0d
commit
35dab307c8
@@ -920,13 +920,13 @@ static inline uint xfs_dinode_size(int version)
|
|||||||
* This enum is used in string mapping in xfs_trace.h; please keep the
|
* This enum is used in string mapping in xfs_trace.h; please keep the
|
||||||
* TRACE_DEFINE_ENUMs for it up to date.
|
* TRACE_DEFINE_ENUMs for it up to date.
|
||||||
*/
|
*/
|
||||||
typedef enum xfs_dinode_fmt {
|
enum xfs_dinode_fmt {
|
||||||
XFS_DINODE_FMT_DEV, /* xfs_dev_t */
|
XFS_DINODE_FMT_DEV, /* xfs_dev_t */
|
||||||
XFS_DINODE_FMT_LOCAL, /* bulk data */
|
XFS_DINODE_FMT_LOCAL, /* bulk data */
|
||||||
XFS_DINODE_FMT_EXTENTS, /* struct xfs_bmbt_rec */
|
XFS_DINODE_FMT_EXTENTS, /* struct xfs_bmbt_rec */
|
||||||
XFS_DINODE_FMT_BTREE, /* struct xfs_bmdr_block */
|
XFS_DINODE_FMT_BTREE, /* struct xfs_bmdr_block */
|
||||||
XFS_DINODE_FMT_UUID /* added long ago, but never used */
|
XFS_DINODE_FMT_UUID /* added long ago, but never used */
|
||||||
} xfs_dinode_fmt_t;
|
};
|
||||||
|
|
||||||
#define XFS_INODE_FORMAT_STR \
|
#define XFS_INODE_FORMAT_STR \
|
||||||
{ XFS_DINODE_FMT_DEV, "dev" }, \
|
{ XFS_DINODE_FMT_DEV, "dev" }, \
|
||||||
|
|||||||
@@ -30,14 +30,14 @@ typedef struct xlog_recover_item {
|
|||||||
xfs_log_iovec_t *ri_buf; /* ptr to regions buffer */
|
xfs_log_iovec_t *ri_buf; /* ptr to regions buffer */
|
||||||
} xlog_recover_item_t;
|
} xlog_recover_item_t;
|
||||||
|
|
||||||
typedef struct xlog_recover {
|
struct xlog_recover {
|
||||||
struct hlist_node r_list;
|
struct hlist_node r_list;
|
||||||
xlog_tid_t r_log_tid; /* log's transaction id */
|
xlog_tid_t r_log_tid; /* log's transaction id */
|
||||||
xfs_trans_header_t r_theader; /* trans header for partial */
|
xfs_trans_header_t r_theader; /* trans header for partial */
|
||||||
int r_state; /* not needed */
|
int r_state; /* not needed */
|
||||||
xfs_lsn_t r_lsn; /* xact lsn */
|
xfs_lsn_t r_lsn; /* xact lsn */
|
||||||
struct list_head r_itemq; /* q for items */
|
struct list_head r_itemq; /* q for items */
|
||||||
} xlog_recover_t;
|
};
|
||||||
|
|
||||||
#define ITEM_TYPE(i) (*(unsigned short *)(i)->ri_buf[0].i_addr)
|
#define ITEM_TYPE(i) (*(unsigned short *)(i)->ri_buf[0].i_addr)
|
||||||
|
|
||||||
|
|||||||
@@ -99,7 +99,7 @@ typedef struct compat_xfs_fsop_handlereq {
|
|||||||
_IOWR('X', 108, struct compat_xfs_fsop_handlereq)
|
_IOWR('X', 108, struct compat_xfs_fsop_handlereq)
|
||||||
|
|
||||||
/* The bstat field in the swapext struct needs translation */
|
/* The bstat field in the swapext struct needs translation */
|
||||||
typedef struct compat_xfs_swapext {
|
struct compat_xfs_swapext {
|
||||||
int64_t sx_version; /* version */
|
int64_t sx_version; /* version */
|
||||||
int64_t sx_fdtarget; /* fd of target file */
|
int64_t sx_fdtarget; /* fd of target file */
|
||||||
int64_t sx_fdtmp; /* fd of tmp file */
|
int64_t sx_fdtmp; /* fd of tmp file */
|
||||||
@@ -107,7 +107,7 @@ typedef struct compat_xfs_swapext {
|
|||||||
xfs_off_t sx_length; /* leng from offset */
|
xfs_off_t sx_length; /* leng from offset */
|
||||||
char sx_pad[16]; /* pad space, unused */
|
char sx_pad[16]; /* pad space, unused */
|
||||||
struct compat_xfs_bstat sx_stat; /* stat of target b4 copy */
|
struct compat_xfs_bstat sx_stat; /* stat of target b4 copy */
|
||||||
} __compat_packed compat_xfs_swapext_t;
|
} __compat_packed;
|
||||||
|
|
||||||
#define XFS_IOC_SWAPEXT_32 _IOWR('X', 109, struct compat_xfs_swapext)
|
#define XFS_IOC_SWAPEXT_32 _IOWR('X', 109, struct compat_xfs_swapext)
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user