From: Brian Foster <bfoster@redhat.com>
To: xfs@oss.sgi.com
Subject: Re: [PATCH 02/49] xfs: split out inode log item format definition
Date: Tue, 23 Jul 2013 10:00:57 -0400 [thread overview]
Message-ID: <51EE8C99.6010303@redhat.com> (raw)
In-Reply-To: <1374215120-7271-3-git-send-email-david@fromorbit.com>
On 07/19/2013 02:24 AM, Dave Chinner wrote:
> From: Dave Chinner <dchinner@redhat.com>
>
> Th elog item format definitions are shared with userspace. split the
> out of header files that contain kernel only defintions to make it
> simple to shared them.
>
> Signed-off-by: Dave Chinner <dchinner@redhat.com>
> ---
Reviewed-by: Brian Foster <bfoster@redhat.com>
> fs/xfs/xfs_acl.c | 1 +
> fs/xfs/xfs_filestream.c | 2 +-
> fs/xfs/xfs_inode.h | 69 ------------------
> fs/xfs/xfs_inode_item.h | 115 +----------------------------
> fs/xfs/xfs_log_format.h | 189 ++++++++++++++++++++++++++++++++++++++++++++++++
> fs/xfs/xfs_types.h | 6 ++
> fs/xfs/xfs_xattr.c | 1 +
> 7 files changed, 200 insertions(+), 183 deletions(-)
>
> diff --git a/fs/xfs/xfs_acl.c b/fs/xfs/xfs_acl.c
> index 306d883..695606a 100644
> --- a/fs/xfs/xfs_acl.c
> +++ b/fs/xfs/xfs_acl.c
> @@ -16,6 +16,7 @@
> * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
> */
> #include "xfs.h"
> +#include "xfs_log_format.h"
> #include "xfs_acl.h"
> #include "xfs_attr.h"
> #include "xfs_bmap_btree.h"
> diff --git a/fs/xfs/xfs_filestream.c b/fs/xfs/xfs_filestream.c
> index 5170306..9eae097 100644
> --- a/fs/xfs/xfs_filestream.c
> +++ b/fs/xfs/xfs_filestream.c
> @@ -16,12 +16,12 @@
> * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
> */
> #include "xfs.h"
> +#include "xfs_log.h"
> #include "xfs_bmap_btree.h"
> #include "xfs_inum.h"
> #include "xfs_dinode.h"
> #include "xfs_inode.h"
> #include "xfs_ag.h"
> -#include "xfs_log.h"
> #include "xfs_trans.h"
> #include "xfs_sb.h"
> #include "xfs_mount.h"
> diff --git a/fs/xfs/xfs_inode.h b/fs/xfs/xfs_inode.h
> index b55fd34..de4f963 100644
> --- a/fs/xfs/xfs_inode.h
> +++ b/fs/xfs/xfs_inode.h
> @@ -23,12 +23,6 @@ struct xfs_dinode;
> struct xfs_inode;
>
> /*
> - * Fork identifiers.
> - */
> -#define XFS_DATA_FORK 0
> -#define XFS_ATTR_FORK 1
> -
> -/*
> * The following xfs_ext_irec_t struct introduces a second (top) level
> * to the in-core extent allocation scheme. These structs are allocated
> * in a contiguous block, creating an indirection array where each entry
> @@ -114,68 +108,6 @@ struct xfs_imap {
> * chain off the mount structure by xfs_sync calls.
> */
>
> -typedef struct xfs_ictimestamp {
> - __int32_t t_sec; /* timestamp seconds */
> - __int32_t t_nsec; /* timestamp nanoseconds */
> -} xfs_ictimestamp_t;
> -
> -/*
> - * NOTE: This structure must be kept identical to struct xfs_dinode
> - * in xfs_dinode.h except for the endianness annotations.
> - */
> -typedef struct xfs_icdinode {
> - __uint16_t di_magic; /* inode magic # = XFS_DINODE_MAGIC */
> - __uint16_t di_mode; /* mode and type of file */
> - __int8_t di_version; /* inode version */
> - __int8_t di_format; /* format of di_c data */
> - __uint16_t di_onlink; /* old number of links to file */
> - __uint32_t di_uid; /* owner's user id */
> - __uint32_t di_gid; /* owner's group id */
> - __uint32_t di_nlink; /* number of links to file */
> - __uint16_t di_projid_lo; /* lower part of owner's project id */
> - __uint16_t di_projid_hi; /* higher part of owner's project id */
> - __uint8_t di_pad[6]; /* unused, zeroed space */
> - __uint16_t di_flushiter; /* incremented on flush */
> - xfs_ictimestamp_t di_atime; /* time last accessed */
> - xfs_ictimestamp_t di_mtime; /* time last modified */
> - xfs_ictimestamp_t di_ctime; /* time created/inode modified */
> - xfs_fsize_t di_size; /* number of bytes in file */
> - xfs_drfsbno_t di_nblocks; /* # of direct & btree blocks used */
> - xfs_extlen_t di_extsize; /* basic/minimum extent size for file */
> - xfs_extnum_t di_nextents; /* number of extents in data fork */
> - xfs_aextnum_t di_anextents; /* number of extents in attribute fork*/
> - __uint8_t di_forkoff; /* attr fork offs, <<3 for 64b align */
> - __int8_t di_aformat; /* format of attr fork's data */
> - __uint32_t di_dmevmask; /* DMIG event mask */
> - __uint16_t di_dmstate; /* DMIG state info */
> - __uint16_t di_flags; /* random flags, XFS_DIFLAG_... */
> - __uint32_t di_gen; /* generation number */
> -
> - /* di_next_unlinked is the only non-core field in the old dinode */
> - xfs_agino_t di_next_unlinked;/* agi unlinked list ptr */
> -
> - /* start of the extended dinode, writable fields */
> - __uint32_t di_crc; /* CRC of the inode */
> - __uint64_t di_changecount; /* number of attribute changes */
> - xfs_lsn_t di_lsn; /* flush sequence */
> - __uint64_t di_flags2; /* more random flags */
> - __uint8_t di_pad2[16]; /* more padding for future expansion */
> -
> - /* fields only written to during inode creation */
> - xfs_ictimestamp_t di_crtime; /* time created */
> - xfs_ino_t di_ino; /* inode number */
> - uuid_t di_uuid; /* UUID of the filesystem */
> -
> - /* structure must be padded to 64 bit alignment */
> -} xfs_icdinode_t;
> -
> -static inline uint xfs_icdinode_size(int version)
> -{
> - if (version == 3)
> - return sizeof(struct xfs_icdinode);
> - return offsetof(struct xfs_icdinode, di_next_unlinked);
> -}
> -
> /*
> * Flags for xfs_ichgtime().
> */
> @@ -626,7 +558,6 @@ void xfs_inobp_check(struct xfs_mount *, struct xfs_buf *);
>
> extern struct kmem_zone *xfs_ifork_zone;
> extern struct kmem_zone *xfs_inode_zone;
> -extern struct kmem_zone *xfs_ili_zone;
> extern const struct xfs_buf_ops xfs_inode_buf_ops;
>
> #endif /* __XFS_INODE_H__ */
> diff --git a/fs/xfs/xfs_inode_item.h b/fs/xfs/xfs_inode_item.h
> index 779812f..dce4d65 100644
> --- a/fs/xfs/xfs_inode_item.h
> +++ b/fs/xfs/xfs_inode_item.h
> @@ -18,123 +18,13 @@
> #ifndef __XFS_INODE_ITEM_H__
> #define __XFS_INODE_ITEM_H__
>
> -/*
> - * This is the structure used to lay out an inode log item in the
> - * log. The size of the inline data/extents/b-tree root to be logged
> - * (if any) is indicated in the ilf_dsize field. Changes to this structure
> - * must be added on to the end.
> - */
> -typedef struct xfs_inode_log_format {
> - __uint16_t ilf_type; /* inode log item type */
> - __uint16_t ilf_size; /* size of this item */
> - __uint32_t ilf_fields; /* flags for fields logged */
> - __uint16_t ilf_asize; /* size of attr d/ext/root */
> - __uint16_t ilf_dsize; /* size of data/ext/root */
> - __uint64_t ilf_ino; /* inode number */
> - union {
> - __uint32_t ilfu_rdev; /* rdev value for dev inode*/
> - uuid_t ilfu_uuid; /* mount point value */
> - } ilf_u;
> - __int64_t ilf_blkno; /* blkno of inode buffer */
> - __int32_t ilf_len; /* len of inode buffer */
> - __int32_t ilf_boffset; /* off of inode in buffer */
> -} xfs_inode_log_format_t;
> -
> -typedef struct xfs_inode_log_format_32 {
> - __uint16_t ilf_type; /* inode log item type */
> - __uint16_t ilf_size; /* size of this item */
> - __uint32_t ilf_fields; /* flags for fields logged */
> - __uint16_t ilf_asize; /* size of attr d/ext/root */
> - __uint16_t ilf_dsize; /* size of data/ext/root */
> - __uint64_t ilf_ino; /* inode number */
> - union {
> - __uint32_t ilfu_rdev; /* rdev value for dev inode*/
> - uuid_t ilfu_uuid; /* mount point value */
> - } ilf_u;
> - __int64_t ilf_blkno; /* blkno of inode buffer */
> - __int32_t ilf_len; /* len of inode buffer */
> - __int32_t ilf_boffset; /* off of inode in buffer */
> -} __attribute__((packed)) xfs_inode_log_format_32_t;
> -
> -typedef struct xfs_inode_log_format_64 {
> - __uint16_t ilf_type; /* inode log item type */
> - __uint16_t ilf_size; /* size of this item */
> - __uint32_t ilf_fields; /* flags for fields logged */
> - __uint16_t ilf_asize; /* size of attr d/ext/root */
> - __uint16_t ilf_dsize; /* size of data/ext/root */
> - __uint32_t ilf_pad; /* pad for 64 bit boundary */
> - __uint64_t ilf_ino; /* inode number */
> - union {
> - __uint32_t ilfu_rdev; /* rdev value for dev inode*/
> - uuid_t ilfu_uuid; /* mount point value */
> - } ilf_u;
> - __int64_t ilf_blkno; /* blkno of inode buffer */
> - __int32_t ilf_len; /* len of inode buffer */
> - __int32_t ilf_boffset; /* off of inode in buffer */
> -} xfs_inode_log_format_64_t;
> -
> -/*
> - * Flags for xfs_trans_log_inode flags field.
> - */
> -#define XFS_ILOG_CORE 0x001 /* log standard inode fields */
> -#define XFS_ILOG_DDATA 0x002 /* log i_df.if_data */
> -#define XFS_ILOG_DEXT 0x004 /* log i_df.if_extents */
> -#define XFS_ILOG_DBROOT 0x008 /* log i_df.i_broot */
> -#define XFS_ILOG_DEV 0x010 /* log the dev field */
> -#define XFS_ILOG_UUID 0x020 /* log the uuid field */
> -#define XFS_ILOG_ADATA 0x040 /* log i_af.if_data */
> -#define XFS_ILOG_AEXT 0x080 /* log i_af.if_extents */
> -#define XFS_ILOG_ABROOT 0x100 /* log i_af.i_broot */
> -
> -
> -/*
> - * The timestamps are dirty, but not necessarily anything else in the inode
> - * core. Unlike the other fields above this one must never make it to disk
> - * in the ilf_fields of the inode_log_format, but is purely store in-memory in
> - * ili_fields in the inode_log_item.
> - */
> -#define XFS_ILOG_TIMESTAMP 0x4000
> -
> -#define XFS_ILOG_NONCORE (XFS_ILOG_DDATA | XFS_ILOG_DEXT | \
> - XFS_ILOG_DBROOT | XFS_ILOG_DEV | \
> - XFS_ILOG_UUID | XFS_ILOG_ADATA | \
> - XFS_ILOG_AEXT | XFS_ILOG_ABROOT)
> -
> -#define XFS_ILOG_DFORK (XFS_ILOG_DDATA | XFS_ILOG_DEXT | \
> - XFS_ILOG_DBROOT)
> -
> -#define XFS_ILOG_AFORK (XFS_ILOG_ADATA | XFS_ILOG_AEXT | \
> - XFS_ILOG_ABROOT)
> -
> -#define XFS_ILOG_ALL (XFS_ILOG_CORE | XFS_ILOG_DDATA | \
> - XFS_ILOG_DEXT | XFS_ILOG_DBROOT | \
> - XFS_ILOG_DEV | XFS_ILOG_UUID | \
> - XFS_ILOG_ADATA | XFS_ILOG_AEXT | \
> - XFS_ILOG_ABROOT | XFS_ILOG_TIMESTAMP)
> -
> -static inline int xfs_ilog_fbroot(int w)
> -{
> - return (w == XFS_DATA_FORK ? XFS_ILOG_DBROOT : XFS_ILOG_ABROOT);
> -}
> -
> -static inline int xfs_ilog_fext(int w)
> -{
> - return (w == XFS_DATA_FORK ? XFS_ILOG_DEXT : XFS_ILOG_AEXT);
> -}
> -
> -static inline int xfs_ilog_fdata(int w)
> -{
> - return (w == XFS_DATA_FORK ? XFS_ILOG_DDATA : XFS_ILOG_ADATA);
> -}
> -
> -#ifdef __KERNEL__
> +/* kernel only definitions */
>
> struct xfs_buf;
> struct xfs_bmbt_rec;
> struct xfs_inode;
> struct xfs_mount;
>
> -
> typedef struct xfs_inode_log_item {
> xfs_log_item_t ili_item; /* common portion */
> struct xfs_inode *ili_inode; /* inode ptr */
> @@ -151,7 +41,6 @@ typedef struct xfs_inode_log_item {
> xfs_inode_log_format_t ili_format; /* logged structure */
> } xfs_inode_log_item_t;
>
> -
> static inline int xfs_inode_clean(xfs_inode_t *ip)
> {
> return !ip->i_itemp || !(ip->i_itemp->ili_fields & XFS_ILOG_ALL);
> @@ -165,6 +54,6 @@ extern void xfs_iflush_abort(struct xfs_inode *, bool);
> extern int xfs_inode_item_format_convert(xfs_log_iovec_t *,
> xfs_inode_log_format_t *);
>
> -#endif /* __KERNEL__ */
> +extern struct kmem_zone *xfs_ili_zone;
>
> #endif /* __XFS_INODE_ITEM_H__ */
> diff --git a/fs/xfs/xfs_log_format.h b/fs/xfs/xfs_log_format.h
> index 9f9aeb6..fd46a7f 100644
> --- a/fs/xfs/xfs_log_format.h
> +++ b/fs/xfs/xfs_log_format.h
> @@ -18,6 +18,16 @@
> #ifndef __XFS_LOG_FORMAT_H__
> #define __XFS_LOG_FORMAT_H__
>
> +/*
> + * On-disk Log Format definitions.
> + *
> + * This file contains all the on-disk format definitions used within the log. It
> + * includes the physical log structure itself, as well as all the log item
> + * format structures that are written into the log and intepreted by log
> + * recovery. We start with the physical log format definitions, and then work
> + * through all the log items definitions and everything they encode into the
> + * log.
> + */
> typedef __uint32_t xlog_tid_t;
>
> #define XLOG_MIN_ICLOGS 2
> @@ -175,4 +185,183 @@ typedef struct xfs_log_iovec {
> uint i_type; /* type of region */
> } xfs_log_iovec_t;
>
> +
> +/*
> + * Inode Log Item Format definitions.
> + *
> + * This is the structure used to lay out an inode log item in the
> + * log. The size of the inline data/extents/b-tree root to be logged
> + * (if any) is indicated in the ilf_dsize field. Changes to this structure
> + * must be added on to the end.
> + */
> +typedef struct xfs_inode_log_format {
> + __uint16_t ilf_type; /* inode log item type */
> + __uint16_t ilf_size; /* size of this item */
> + __uint32_t ilf_fields; /* flags for fields logged */
> + __uint16_t ilf_asize; /* size of attr d/ext/root */
> + __uint16_t ilf_dsize; /* size of data/ext/root */
> + __uint64_t ilf_ino; /* inode number */
> + union {
> + __uint32_t ilfu_rdev; /* rdev value for dev inode*/
> + uuid_t ilfu_uuid; /* mount point value */
> + } ilf_u;
> + __int64_t ilf_blkno; /* blkno of inode buffer */
> + __int32_t ilf_len; /* len of inode buffer */
> + __int32_t ilf_boffset; /* off of inode in buffer */
> +} xfs_inode_log_format_t;
> +
> +typedef struct xfs_inode_log_format_32 {
> + __uint16_t ilf_type; /* inode log item type */
> + __uint16_t ilf_size; /* size of this item */
> + __uint32_t ilf_fields; /* flags for fields logged */
> + __uint16_t ilf_asize; /* size of attr d/ext/root */
> + __uint16_t ilf_dsize; /* size of data/ext/root */
> + __uint64_t ilf_ino; /* inode number */
> + union {
> + __uint32_t ilfu_rdev; /* rdev value for dev inode*/
> + uuid_t ilfu_uuid; /* mount point value */
> + } ilf_u;
> + __int64_t ilf_blkno; /* blkno of inode buffer */
> + __int32_t ilf_len; /* len of inode buffer */
> + __int32_t ilf_boffset; /* off of inode in buffer */
> +} __attribute__((packed)) xfs_inode_log_format_32_t;
> +
> +typedef struct xfs_inode_log_format_64 {
> + __uint16_t ilf_type; /* inode log item type */
> + __uint16_t ilf_size; /* size of this item */
> + __uint32_t ilf_fields; /* flags for fields logged */
> + __uint16_t ilf_asize; /* size of attr d/ext/root */
> + __uint16_t ilf_dsize; /* size of data/ext/root */
> + __uint32_t ilf_pad; /* pad for 64 bit boundary */
> + __uint64_t ilf_ino; /* inode number */
> + union {
> + __uint32_t ilfu_rdev; /* rdev value for dev inode*/
> + uuid_t ilfu_uuid; /* mount point value */
> + } ilf_u;
> + __int64_t ilf_blkno; /* blkno of inode buffer */
> + __int32_t ilf_len; /* len of inode buffer */
> + __int32_t ilf_boffset; /* off of inode in buffer */
> +} xfs_inode_log_format_64_t;
> +
> +/*
> + * Flags for xfs_trans_log_inode flags field.
> + */
> +#define XFS_ILOG_CORE 0x001 /* log standard inode fields */
> +#define XFS_ILOG_DDATA 0x002 /* log i_df.if_data */
> +#define XFS_ILOG_DEXT 0x004 /* log i_df.if_extents */
> +#define XFS_ILOG_DBROOT 0x008 /* log i_df.i_broot */
> +#define XFS_ILOG_DEV 0x010 /* log the dev field */
> +#define XFS_ILOG_UUID 0x020 /* log the uuid field */
> +#define XFS_ILOG_ADATA 0x040 /* log i_af.if_data */
> +#define XFS_ILOG_AEXT 0x080 /* log i_af.if_extents */
> +#define XFS_ILOG_ABROOT 0x100 /* log i_af.i_broot */
> +
> +
> +/*
> + * The timestamps are dirty, but not necessarily anything else in the inode
> + * core. Unlike the other fields above this one must never make it to disk
> + * in the ilf_fields of the inode_log_format, but is purely store in-memory in
> + * ili_fields in the inode_log_item.
> + */
> +#define XFS_ILOG_TIMESTAMP 0x4000
> +
> +#define XFS_ILOG_NONCORE (XFS_ILOG_DDATA | XFS_ILOG_DEXT | \
> + XFS_ILOG_DBROOT | XFS_ILOG_DEV | \
> + XFS_ILOG_UUID | XFS_ILOG_ADATA | \
> + XFS_ILOG_AEXT | XFS_ILOG_ABROOT)
> +
> +#define XFS_ILOG_DFORK (XFS_ILOG_DDATA | XFS_ILOG_DEXT | \
> + XFS_ILOG_DBROOT)
> +
> +#define XFS_ILOG_AFORK (XFS_ILOG_ADATA | XFS_ILOG_AEXT | \
> + XFS_ILOG_ABROOT)
> +
> +#define XFS_ILOG_ALL (XFS_ILOG_CORE | XFS_ILOG_DDATA | \
> + XFS_ILOG_DEXT | XFS_ILOG_DBROOT | \
> + XFS_ILOG_DEV | XFS_ILOG_UUID | \
> + XFS_ILOG_ADATA | XFS_ILOG_AEXT | \
> + XFS_ILOG_ABROOT | XFS_ILOG_TIMESTAMP)
> +
> +static inline int xfs_ilog_fbroot(int w)
> +{
> + return (w == XFS_DATA_FORK ? XFS_ILOG_DBROOT : XFS_ILOG_ABROOT);
> +}
> +
> +static inline int xfs_ilog_fext(int w)
> +{
> + return (w == XFS_DATA_FORK ? XFS_ILOG_DEXT : XFS_ILOG_AEXT);
> +}
> +
> +static inline int xfs_ilog_fdata(int w)
> +{
> + return (w == XFS_DATA_FORK ? XFS_ILOG_DDATA : XFS_ILOG_ADATA);
> +}
> +
> +/*
> + * Incore version of the on-disk inode core structures. We log this directly
> + * into the journal in host CPU format (for better or worse) and as such
> + * directly mirrors the xfs_dinode structure as it must contain all the same
> + * information.
> + */
> +typedef struct xfs_ictimestamp {
> + __int32_t t_sec; /* timestamp seconds */
> + __int32_t t_nsec; /* timestamp nanoseconds */
> +} xfs_ictimestamp_t;
> +
> +/*
> + * NOTE: This structure must be kept identical to struct xfs_dinode
> + * in xfs_dinode.h except for the endianness annotations.
> + */
> +typedef struct xfs_icdinode {
> + __uint16_t di_magic; /* inode magic # = XFS_DINODE_MAGIC */
> + __uint16_t di_mode; /* mode and type of file */
> + __int8_t di_version; /* inode version */
> + __int8_t di_format; /* format of di_c data */
> + __uint16_t di_onlink; /* old number of links to file */
> + __uint32_t di_uid; /* owner's user id */
> + __uint32_t di_gid; /* owner's group id */
> + __uint32_t di_nlink; /* number of links to file */
> + __uint16_t di_projid_lo; /* lower part of owner's project id */
> + __uint16_t di_projid_hi; /* higher part of owner's project id */
> + __uint8_t di_pad[6]; /* unused, zeroed space */
> + __uint16_t di_flushiter; /* incremented on flush */
> + xfs_ictimestamp_t di_atime; /* time last accessed */
> + xfs_ictimestamp_t di_mtime; /* time last modified */
> + xfs_ictimestamp_t di_ctime; /* time created/inode modified */
> + xfs_fsize_t di_size; /* number of bytes in file */
> + xfs_drfsbno_t di_nblocks; /* # of direct & btree blocks used */
> + xfs_extlen_t di_extsize; /* basic/minimum extent size for file */
> + xfs_extnum_t di_nextents; /* number of extents in data fork */
> + xfs_aextnum_t di_anextents; /* number of extents in attribute fork*/
> + __uint8_t di_forkoff; /* attr fork offs, <<3 for 64b align */
> + __int8_t di_aformat; /* format of attr fork's data */
> + __uint32_t di_dmevmask; /* DMIG event mask */
> + __uint16_t di_dmstate; /* DMIG state info */
> + __uint16_t di_flags; /* random flags, XFS_DIFLAG_... */
> + __uint32_t di_gen; /* generation number */
> +
> + /* di_next_unlinked is the only non-core field in the old dinode */
> + xfs_agino_t di_next_unlinked;/* agi unlinked list ptr */
> +
> + /* start of the extended dinode, writable fields */
> + __uint32_t di_crc; /* CRC of the inode */
> + __uint64_t di_changecount; /* number of attribute changes */
> + xfs_lsn_t di_lsn; /* flush sequence */
> + __uint64_t di_flags2; /* more random flags */
> + __uint8_t di_pad2[16]; /* more padding for future expansion */
> +
> + /* fields only written to during inode creation */
> + xfs_ictimestamp_t di_crtime; /* time created */
> + xfs_ino_t di_ino; /* inode number */
> + uuid_t di_uuid; /* UUID of the filesystem */
> +
> + /* structure must be padded to 64 bit alignment */
> +} xfs_icdinode_t;
> +
> +static inline uint xfs_icdinode_size(int version)
> +{
> + if (version == 3)
> + return sizeof(struct xfs_icdinode);
> + return offsetof(struct xfs_icdinode, di_next_unlinked);
> +}
> #endif /* __XFS_LOG_FORMAT_H__ */
> diff --git a/fs/xfs/xfs_types.h b/fs/xfs/xfs_types.h
> index 61ba1cf..39c48ca 100644
> --- a/fs/xfs/xfs_types.h
> +++ b/fs/xfs/xfs_types.h
> @@ -146,6 +146,12 @@ typedef __uint64_t xfs_filblks_t; /* number of blocks in a file */
> #define XFS_MAX_SECTORSIZE (1 << XFS_MAX_SECTORSIZE_LOG)
>
> /*
> + * Inode fork identifiers.
> + */
> +#define XFS_DATA_FORK 0
> +#define XFS_ATTR_FORK 1
> +
> +/*
> * Min numbers of data/attr fork btree root pointers.
> */
> #define MINDBTPTRS 3
> diff --git a/fs/xfs/xfs_xattr.c b/fs/xfs/xfs_xattr.c
> index 87d3e03..b7311aa 100644
> --- a/fs/xfs/xfs_xattr.c
> +++ b/fs/xfs/xfs_xattr.c
> @@ -17,6 +17,7 @@
> */
>
> #include "xfs.h"
> +#include "xfs_log_format.h"
> #include "xfs_da_btree.h"
> #include "xfs_bmap_btree.h"
> #include "xfs_inode.h"
>
_______________________________________________
xfs mailing list
xfs@oss.sgi.com
http://oss.sgi.com/mailman/listinfo/xfs
next prev parent reply other threads:[~2013-07-23 14:04 UTC|newest]
Thread overview: 158+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-07-19 6:24 [PATCH 00/49] current patch queue for 3.12 Dave Chinner
2013-07-19 6:24 ` [PATCH 01/49] xfs: separate out log format definitions Dave Chinner
2013-07-23 14:00 ` Brian Foster
2013-07-19 6:24 ` [PATCH 02/49] xfs: split out inode log item format definition Dave Chinner
2013-07-23 14:00 ` Brian Foster [this message]
2013-07-30 16:20 ` Mark Tinguely
2013-08-01 8:50 ` Christoph Hellwig
2013-07-19 6:24 ` [PATCH 03/49] xfs: split out buf log item format definitions Dave Chinner
2013-07-23 14:01 ` Brian Foster
2013-07-19 6:24 ` [PATCH 04/49] xfs: split out inode log item format definition Dave Chinner
2013-07-23 14:01 ` Brian Foster
2013-07-19 6:24 ` [PATCH 05/49] xfs: separate dquot on disk format definitions out of xfs_quota.h Dave Chinner
2013-07-24 12:09 ` Brian Foster
2013-08-01 8:51 ` Christoph Hellwig
2013-08-02 1:44 ` Dave Chinner
2013-07-19 6:24 ` [PATCH 06/49] xfs: separate icreate log format definitions from xfs_icreate_item.h Dave Chinner
2013-07-24 12:09 ` Brian Foster
2013-07-19 6:24 ` [PATCH 07/49] xfs: split out on-disk transaction definitions Dave Chinner
2013-07-24 12:09 ` Brian Foster
2013-07-19 6:24 ` [PATCH 08/49] xfs: introduce xfs_rtalloc_defs.h Dave Chinner
2013-07-24 12:09 ` Brian Foster
2013-07-19 6:24 ` [PATCH 09/49] xfs: introduce xfs_quota_defs.h Dave Chinner
2013-07-25 12:54 ` Brian Foster
2013-07-19 6:24 ` [PATCH 10/49] xfs: sync minor header differences needed by userspace Dave Chinner
2013-07-25 12:54 ` Brian Foster
2013-07-19 6:24 ` [PATCH 11/49] xfs: split out transaction reservation code Dave Chinner
2013-07-25 12:55 ` Brian Foster
2013-07-19 6:24 ` [PATCH 12/49] xfs: move inode fork definitions to a new header file Dave Chinner
2013-07-25 20:40 ` Mark Tinguely
2013-07-19 6:24 ` [PATCH 13/49] xfs: move unrealted definitions out of xfs_inode.h Dave Chinner
2013-07-25 19:24 ` Mark Tinguely
2013-07-19 6:24 ` [PATCH 14/49] xfs: introduce xfs_inode_buf.c for inode buffer operations Dave Chinner
2013-07-25 19:17 ` Mark Tinguely
2013-07-26 0:24 ` Dave Chinner
2013-07-26 12:41 ` Brian Foster
2013-07-19 6:24 ` [PATCH 15/49] xfs: move getdents code into it's own file Dave Chinner
2013-07-26 13:00 ` Brian Foster
2013-07-19 6:24 ` [PATCH 16/49] xfs: reshuffle dir2 definitions around for userspace Dave Chinner
2013-07-26 13:18 ` Brian Foster
2013-07-19 6:24 ` [PATCH 17/49] xfs: split out attribute listing code into separate file Dave Chinner
2013-07-27 20:23 ` Mark Tinguely
2013-07-19 6:24 ` [PATCH 18/49] xfs: split out attribute fork truncation " Dave Chinner
2013-07-27 19:25 ` Mark Tinguely
2013-07-19 6:24 ` [PATCH 19/49] xfs: split out the remote symlink handling Dave Chinner
2013-07-27 19:48 ` Mark Tinguely
2013-07-19 6:24 ` [PATCH 20/49] xfs: introduce xfs_sb.c for sharing with libxfs Dave Chinner
2013-07-27 17:54 ` Mark Tinguely
2013-07-28 1:08 ` Dave Chinner
2013-07-19 6:24 ` [PATCH 21/49] xfs: create xfs_bmap_util.[ch] Dave Chinner
2013-07-27 17:57 ` Mark Tinguely
2013-07-19 6:24 ` [PATCH 22/49] xfs: minor cleanups Dave Chinner
2013-07-27 18:00 ` Mark Tinguely
2013-07-28 1:07 ` Dave Chinner
2013-07-19 6:24 ` [PATCH 23/49] xfs: fix issues that cause userspace warnings Dave Chinner
2013-07-27 18:02 ` Mark Tinguely
2013-07-19 6:24 ` [PATCH 24/49] xfs: kill xfs_vnodeops.[ch] Dave Chinner
2013-07-26 19:18 ` Mark Tinguely
2013-07-27 1:55 ` Dave Chinner
2013-07-27 18:58 ` Mark Tinguely
2013-07-19 6:24 ` [PATCH 25/49] xfs: consolidate xfs_rename.c Dave Chinner
2013-07-26 19:33 ` Mark Tinguely
2013-07-19 6:24 ` [PATCH 26/49] xfs: consolidate xfs_utils.c Dave Chinner
2013-07-26 20:16 ` Mark Tinguely
2013-07-19 6:24 ` [PATCH 27/49] xfs: consolidate extent swap code Dave Chinner
2013-07-26 21:16 ` Mark Tinguely
2013-07-19 6:24 ` [PATCH 28/49] xfs: don't special case shared superblock mounts Dave Chinner
2013-07-26 15:32 ` Mark Tinguely
2013-07-19 6:25 ` [PATCH 29/49] xfs: kill __KERNEL__ check for debug code in allocation code Dave Chinner
2013-07-26 15:07 ` Mark Tinguely
2013-07-19 6:25 ` [PATCH 30/49] xfs: remove __KERNEL__ from debug code Dave Chinner
2013-07-26 15:03 ` Mark Tinguely
2013-07-19 6:25 ` [PATCH 31/49] xfs: remove __KERNEL__ check from xfs_dir2_leaf.c Dave Chinner
2013-07-26 14:16 ` Mark Tinguely
2013-07-19 6:25 ` [PATCH 32/49] xfs: xfs_filestreams.h doesn't need __KERNEL__ Dave Chinner
2013-07-26 14:10 ` Mark Tinguely
2013-07-19 6:25 ` [PATCH 33/49] xfs: move kernel specific type definitions to xfs.h Dave Chinner
2013-07-26 13:51 ` Mark Tinguely
2013-07-19 6:25 ` [PATCH 34/49] xfs: make struct xfs_perag kernel only Dave Chinner
2013-07-26 13:32 ` Mark Tinguely
2013-07-19 6:25 ` [PATCH 35/49] xfs: Introduce a new structure to hold transaction reservation items Dave Chinner
2013-07-22 13:05 ` Mark Tinguely
2013-07-19 6:25 ` [PATCH 36/49] xfs: Introduce tr_fsyncts to m_reservation Dave Chinner
2013-07-22 13:22 ` Mark Tinguely
2013-07-19 6:25 ` [PATCH 37/49] xfs: Make writeid transaction use tr_writeid Dave Chinner
2013-07-22 13:23 ` Mark Tinguely
2013-07-19 6:25 ` [PATCH 38/49] xfs: refactor xfs_trans_reserve() interface Dave Chinner
2013-07-22 13:27 ` Mark Tinguely
2013-07-22 23:37 ` Dave Chinner
2013-07-19 6:25 ` [PATCH 39/49] xfs: Get rid of all XFS_XXX_LOG_RES() macro Dave Chinner
2013-07-22 13:31 ` Mark Tinguely
2013-07-19 6:25 ` [PATCH 40/49] xfs: Refactor xfs_ticket_alloc() to extract a new helper Dave Chinner
2013-07-22 13:49 ` Mark Tinguely
2013-07-19 6:25 ` [PATCH 41/49] xfs: Add xfs_log_rlimit.c Dave Chinner
2013-07-23 15:15 ` Mark Tinguely
2013-07-19 6:25 ` [PATCH 42/49] xfs: Validate log space at mount time Dave Chinner
2013-07-22 13:55 ` Mark Tinguely
2013-07-25 4:11 ` Dave Chinner
2013-07-19 6:25 ` [PATCH 43/49] xfs: return log item size in IOP_SIZE Dave Chinner
2013-07-23 18:22 ` Mark Tinguely
2013-08-01 8:18 ` Christoph Hellwig
2013-07-19 6:25 ` [PATCH 44/49] xfs: Reduce allocations during CIL insertion Dave Chinner
2013-07-23 21:15 ` Mark Tinguely
2013-07-23 21:44 ` Michael L. Semon
2013-07-24 13:28 ` Mark Tinguely
2013-07-24 19:20 ` Michael L. Semon
2013-07-25 0:21 ` Dave Chinner
2013-07-25 15:02 ` Mark Tinguely
2013-07-26 0:32 ` Dave Chinner
2013-07-26 20:46 ` Michael L. Semon
2013-07-26 21:06 ` Mark Tinguely
2013-07-26 22:19 ` Michael L. Semon
2013-07-27 1:58 ` Dave Chinner
2013-07-27 18:32 ` Mark Tinguely
2013-07-28 1:12 ` Dave Chinner
2013-07-29 14:15 ` Mark Tinguely
2013-07-30 0:30 ` Dave Chinner
2013-07-30 13:31 ` Mark Tinguely
2013-07-30 22:19 ` Dave Chinner
2013-07-19 6:25 ` [PATCH 45/49] xfs: avoid CIL allocation during insert Dave Chinner
2013-07-29 18:13 ` Mark Tinguely
2013-07-19 6:25 ` [PATCH 46/49] xfs: Combine CIL insert and prepare passes Dave Chinner
2013-07-23 21:21 ` Mark Tinguely
2013-07-25 0:23 ` Dave Chinner
2013-07-29 21:07 ` Mark Tinguely
2013-07-19 6:25 ` [PATCH 47/49] xfs: split the CIL lock Dave Chinner
2013-07-29 22:24 ` Mark Tinguely
2013-07-19 6:25 ` [PATCH 48/49] xfs: Add read-only support for dirent filetype field Dave Chinner
2013-07-30 19:10 ` Mark Tinguely
2013-08-12 0:59 ` ***** SUSPECTED SPAM ***** " Dave Chinner
2013-08-12 13:25 ` Mark Tinguely
2013-08-13 0:50 ` Dave Chinner
2013-08-13 15:42 ` Mark Tinguely
2013-08-13 15:57 ` Christoph Hellwig
2013-08-14 7:50 ` Dave Chinner
2013-08-14 18:47 ` Geoffrey Wehrman
2013-08-15 4:22 ` Dave Chinner
2013-08-15 17:39 ` Geoffrey Wehrman
2013-08-15 5:59 ` Ric Wheeler
2013-08-15 18:04 ` Geoffrey Wehrman
2013-08-15 21:41 ` Ric Wheeler
2013-08-16 14:08 ` Geoffrey Wehrman
2013-08-19 5:28 ` Dave Chinner
2013-08-19 18:48 ` Geoffrey Wehrman
2013-08-20 2:23 ` Dave Chinner
2013-08-20 14:30 ` Geoffrey Wehrman
2013-08-20 18:27 ` Ric Wheeler
2013-08-20 19:47 ` Eric Sandeen
2013-08-15 16:50 ` Eric Sandeen
2013-08-15 18:32 ` Geoffrey Wehrman
2013-08-15 18:41 ` Eric Sandeen
2013-08-15 19:06 ` Geoffrey Wehrman
2013-08-15 18:54 ` Ben Myers
2013-08-15 22:40 ` Ben Myers
2013-07-19 6:25 ` [PATCH 49/49] xfs: Add write " Dave Chinner
2013-07-21 6:23 ` [PATCH 00/49] current patch queue for 3.12 Michael L. Semon
2013-07-22 23:43 ` Dave Chinner
2013-07-23 1:00 ` Michael L. Semon
2013-08-01 21:21 ` Ben Myers
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=51EE8C99.6010303@redhat.com \
--to=bfoster@redhat.com \
--cc=xfs@oss.sgi.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox