[XFS] kill xfs_ialloc_log_di
xfs_ialloc_log_di is only used to log the full inode core + di_next_unlinked. That means all the offset magic is not nessecary and we can simply use xfs_trans_log_buf directly. Also add a comment describing what we should do here instead. (First sent on October 7th) Signed-off-by: Christoph Hellwig <hch@lst.de> Reviewed-by: Dave Chinner <david@fromorbit.com> Signed-off-by: Niv Sardi <xaiki@sgi.com>
This commit is contained in:
committed by
Niv Sardi
parent
b28708d6a0
commit
d42f08f61c
@@ -105,40 +105,6 @@ typedef struct xfs_dinode
|
||||
#define XFS_MAXLINK ((1U << 31) - 1U)
|
||||
#define XFS_MAXLINK_1 65535U
|
||||
|
||||
/*
|
||||
* Bit names for logging disk inodes only
|
||||
*/
|
||||
#define XFS_DI_MAGIC 0x0000001
|
||||
#define XFS_DI_MODE 0x0000002
|
||||
#define XFS_DI_VERSION 0x0000004
|
||||
#define XFS_DI_FORMAT 0x0000008
|
||||
#define XFS_DI_ONLINK 0x0000010
|
||||
#define XFS_DI_UID 0x0000020
|
||||
#define XFS_DI_GID 0x0000040
|
||||
#define XFS_DI_NLINK 0x0000080
|
||||
#define XFS_DI_PROJID 0x0000100
|
||||
#define XFS_DI_PAD 0x0000200
|
||||
#define XFS_DI_ATIME 0x0000400
|
||||
#define XFS_DI_MTIME 0x0000800
|
||||
#define XFS_DI_CTIME 0x0001000
|
||||
#define XFS_DI_SIZE 0x0002000
|
||||
#define XFS_DI_NBLOCKS 0x0004000
|
||||
#define XFS_DI_EXTSIZE 0x0008000
|
||||
#define XFS_DI_NEXTENTS 0x0010000
|
||||
#define XFS_DI_NAEXTENTS 0x0020000
|
||||
#define XFS_DI_FORKOFF 0x0040000
|
||||
#define XFS_DI_AFORMAT 0x0080000
|
||||
#define XFS_DI_DMEVMASK 0x0100000
|
||||
#define XFS_DI_DMSTATE 0x0200000
|
||||
#define XFS_DI_FLAGS 0x0400000
|
||||
#define XFS_DI_GEN 0x0800000
|
||||
#define XFS_DI_NEXT_UNLINKED 0x1000000
|
||||
#define XFS_DI_U 0x2000000
|
||||
#define XFS_DI_A 0x4000000
|
||||
#define XFS_DI_NUM_BITS 27
|
||||
#define XFS_DI_ALL_BITS ((1 << XFS_DI_NUM_BITS) - 1)
|
||||
#define XFS_DI_CORE_BITS (XFS_DI_ALL_BITS & ~(XFS_DI_U|XFS_DI_A))
|
||||
|
||||
/*
|
||||
* Values for di_format
|
||||
*/
|
||||
|
Reference in New Issue
Block a user