Commit a22d4f14 authored by Nathan Scott's avatar Nathan Scott

[XFS] Header shuffling to try and keep several source trees aligned - move the

realtime inode detection macro somewhere more appropriate.

SGI Modid: 2.5.x-xfs:slinx:141951a
parent 342f0fa2
...@@ -234,6 +234,7 @@ typedef struct xfs_qoff_logformat { ...@@ -234,6 +234,7 @@ typedef struct xfs_qoff_logformat {
#define XFS_QMOPT_QUOTALL (XFS_QMOPT_UQUOTA|XFS_QMOPT_GQUOTA) #define XFS_QMOPT_QUOTALL (XFS_QMOPT_UQUOTA|XFS_QMOPT_GQUOTA)
#define XFS_QMOPT_RESBLK_MASK (XFS_QMOPT_RES_REGBLKS | XFS_QMOPT_RES_RTBLKS) #define XFS_QMOPT_RESBLK_MASK (XFS_QMOPT_RES_REGBLKS | XFS_QMOPT_RES_RTBLKS)
#ifdef __KERNEL__
/* /*
* This check is done typically without holding the inode lock; * This check is done typically without holding the inode lock;
* that may seem racey, but it is harmless in the context that it is used. * that may seem racey, but it is harmless in the context that it is used.
...@@ -261,8 +262,6 @@ typedef struct xfs_qoff_logformat { ...@@ -261,8 +262,6 @@ typedef struct xfs_qoff_logformat {
#define XFS_MOUNT_QUOTA_MASK (XFS_MOUNT_QUOTA_ALL | XFS_UQUOTA_ACTIVE | \ #define XFS_MOUNT_QUOTA_MASK (XFS_MOUNT_QUOTA_ALL | XFS_UQUOTA_ACTIVE | \
XFS_GQUOTA_ACTIVE) XFS_GQUOTA_ACTIVE)
#define XFS_IS_REALTIME_INODE(ip) ((ip)->i_d.di_flags & XFS_DIFLAG_REALTIME)
/* /*
* The structure kept inside the xfs_trans_t keep track of dquot changes * The structure kept inside the xfs_trans_t keep track of dquot changes
...@@ -351,4 +350,6 @@ extern struct bhv_vfsops xfs_qmops; ...@@ -351,4 +350,6 @@ extern struct bhv_vfsops xfs_qmops;
extern void xfs_qm_init(void); extern void xfs_qm_init(void);
extern void xfs_qm_exit(void); extern void xfs_qm_exit(void);
#endif /* __KERNEL__ */
#endif /* __XFS_QUOTA_H__ */ #endif /* __XFS_QUOTA_H__ */
/* /*
* Copyright (c) 2000 Silicon Graphics, Inc. All Rights Reserved. * Copyright (c) 2000-2003 Silicon Graphics, Inc. All Rights Reserved.
* *
* This program is free software; you can redistribute it and/or modify it * This program is free software; you can redistribute it and/or modify it
* under the terms of version 2 of the GNU General Public License as * under the terms of version 2 of the GNU General Public License as
...@@ -35,6 +35,8 @@ ...@@ -35,6 +35,8 @@
struct xfs_mount; struct xfs_mount;
struct xfs_trans; struct xfs_trans;
#define XFS_IS_REALTIME_INODE(ip) ((ip)->i_d.di_flags & XFS_DIFLAG_REALTIME)
/* Min and max rt extent sizes, specified in bytes */ /* Min and max rt extent sizes, specified in bytes */
#define XFS_MAX_RTEXTSIZE (1024 * 1024 * 1024) /* 1GB */ #define XFS_MAX_RTEXTSIZE (1024 * 1024 * 1024) /* 1GB */
#define XFS_DFL_RTEXTSIZE (64 * 1024) /* 64KB */ #define XFS_DFL_RTEXTSIZE (64 * 1024) /* 64KB */
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment