xfs
[Top] [All Lists]

[PATCH 06/15] xfs: Introduce a new transaction type for inode swapping

To: xfs@xxxxxxxxxxx
Subject: [PATCH 06/15] xfs: Introduce a new transaction type for inode swapping
From: Jeff Liu <jeff.liu@xxxxxxxxxx>
Date: Fri, 16 Nov 2012 14:45:41 +0800
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:16.0) Gecko/20121028 Thunderbird/16.0.2
This is a new transaction type which would be used for the coming inode
swapping ioctl(2).

Signed-off-by: Jie Liu <jeff.liu@xxxxxxxxxx>
---
 fs/xfs/xfs_trans.h |    6 ++++--
 1 files changed, 4 insertions(+), 2 deletions(-)

diff --git a/fs/xfs/xfs_trans.h b/fs/xfs/xfs_trans.h
index 14f897d..33aafda 100644
--- a/fs/xfs/xfs_trans.h
+++ b/fs/xfs/xfs_trans.h
@@ -108,7 +108,8 @@ typedef struct xfs_trans_header {
 #define        XFS_TRANS_SB_COUNT              41
 #define        XFS_TRANS_CHECKPOINT            42
 #define XFS_TRANS_SET_AGSTATE          43
-#define        XFS_TRANS_TYPE_MAX              43
+#define XFS_TRANS_SWAPINO              44
+#define        XFS_TRANS_TYPE_MAX              44
 /* new transaction types need to be reflected in xfs_logprint(8) */
 
 #define XFS_TRANS_TYPES \
@@ -154,7 +155,8 @@ typedef struct xfs_trans_header {
        { XFS_TRANS_DUMMY1,             "DUMMY1" }, \
        { XFS_TRANS_DUMMY2,             "DUMMY2" }, \
        { XLOG_UNMOUNT_REC_TYPE,        "UNMOUNT" }, \
-       { XFS_TRANS_SET_AGSTATE,        "SET_AGSTATE" }
+       { XFS_TRANS_SET_AGSTATE,        "SET_AGSTATE" }, \
+       { XFS_TRANS_SWAPINO,            "SWAPINO" }
 
 /*
  * This structure is used to track log items associated with
-- 
1.7.4.1

<Prev in Thread] Current Thread [Next in Thread>
  • [PATCH 06/15] xfs: Introduce a new transaction type for inode swapping, Jeff Liu <=