mirror of https://github.com/torvalds/linux.git
xfs: remove the xfs_efi_log_format_32_t typedef
There are almost no users of the typedef left, kill it and switch the remaining users to use the underlying struct. Signed-off-by: Christoph Hellwig <hch@lst.de> Reviewed-by: Darrick J. Wong <djwong@kernel.org> Signed-off-by: Carlos Maiolino <cem@kernel.org>
This commit is contained in:
parent
655d9ec7bd
commit
68c9f8444a
|
|
@ -649,13 +649,13 @@ xfs_efi_log_format_sizeof(
|
||||||
nr * sizeof(struct xfs_extent);
|
nr * sizeof(struct xfs_extent);
|
||||||
}
|
}
|
||||||
|
|
||||||
typedef struct xfs_efi_log_format_32 {
|
struct xfs_efi_log_format_32 {
|
||||||
uint16_t efi_type; /* efi log item type */
|
uint16_t efi_type; /* efi log item type */
|
||||||
uint16_t efi_size; /* size of this item */
|
uint16_t efi_size; /* size of this item */
|
||||||
uint32_t efi_nextents; /* # extents to free */
|
uint32_t efi_nextents; /* # extents to free */
|
||||||
uint64_t efi_id; /* efi identifier */
|
uint64_t efi_id; /* efi identifier */
|
||||||
struct xfs_extent_32 efi_extents[]; /* array of extents to free */
|
struct xfs_extent_32 efi_extents[]; /* array of extents to free */
|
||||||
} __attribute__((packed)) xfs_efi_log_format_32_t;
|
} __attribute__((packed));
|
||||||
|
|
||||||
static inline size_t
|
static inline size_t
|
||||||
xfs_efi_log_format32_sizeof(
|
xfs_efi_log_format32_sizeof(
|
||||||
|
|
|
||||||
|
|
@ -202,7 +202,7 @@ xfs_efi_copy_format(
|
||||||
sizeof(struct xfs_extent));
|
sizeof(struct xfs_extent));
|
||||||
return 0;
|
return 0;
|
||||||
} else if (buf->iov_len == len32) {
|
} else if (buf->iov_len == len32) {
|
||||||
xfs_efi_log_format_32_t *src_efi_fmt_32 = buf->iov_base;
|
struct xfs_efi_log_format_32 *src_efi_fmt_32 = buf->iov_base;
|
||||||
|
|
||||||
dst_efi_fmt->efi_type = src_efi_fmt_32->efi_type;
|
dst_efi_fmt->efi_type = src_efi_fmt_32->efi_type;
|
||||||
dst_efi_fmt->efi_size = src_efi_fmt_32->efi_size;
|
dst_efi_fmt->efi_size = src_efi_fmt_32->efi_size;
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue