Skip to content

Commit a55cefc

Browse files
sandeendjwong
authored andcommitted
xfs: remove unused structure members & simple typedefs
Remove some unused typedef'd simple types, and some unused structure members. Signed-off-by: Eric Sandeen <[email protected]> Reviewed-by: Darrick J. Wong <[email protected]> Signed-off-by: Darrick J. Wong <[email protected]>
1 parent 35dab30 commit a55cefc

File tree

3 files changed

+0
-5
lines changed

3 files changed

+0
-5
lines changed

fs/xfs/libxfs/xfs_types.h

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,6 @@ typedef int32_t xfs_suminfo_t; /* type of bitmap summary info */
2121
typedef uint32_t xfs_rtword_t; /* word type for bitmap manipulations */
2222

2323
typedef int64_t xfs_lsn_t; /* log sequence number */
24-
typedef int32_t xfs_tid_t; /* transaction identifier */
2524

2625
typedef uint32_t xfs_dablk_t; /* dir/attr block number (in file) */
2726
typedef uint32_t xfs_dahash_t; /* dir/attr hash value */
@@ -33,7 +32,6 @@ typedef uint64_t xfs_fileoff_t; /* block number in a file */
3332
typedef uint64_t xfs_filblks_t; /* number of blocks in a file */
3433

3534
typedef int64_t xfs_srtblock_t; /* signed version of xfs_rtblock_t */
36-
typedef int64_t xfs_sfiloff_t; /* signed block number in a file */
3735

3836
/*
3937
* New verifiers will return the instruction address of the failing check.

fs/xfs/xfs_log_priv.h

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -394,8 +394,6 @@ struct xlog {
394394
/* The following field are used for debugging; need to hold icloglock */
395395
#ifdef DEBUG
396396
void *l_iclog_bak[XLOG_MAX_ICLOGS];
397-
/* log record crc error injection factor */
398-
uint32_t l_badcrc_factor;
399397
#endif
400398
/* log recovery lsn tracking (for buffer submission */
401399
xfs_lsn_t l_recovery_lsn;

fs/xfs/xfs_mount.h

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,6 @@ struct xfs_error_cfg {
5757

5858
typedef struct xfs_mount {
5959
struct super_block *m_super;
60-
xfs_tid_t m_tid; /* next unused tid for fs */
6160

6261
/*
6362
* Bitsets of per-fs metadata that have been checked and/or are sick.

0 commit comments

Comments
 (0)