kill iop_abort item_op
PATCH 1/1 kill iop_abort item_op
It doesn't look like this is ever used for anything...?
quota/xfs_dquot_item.c | 26 ------------------ xfs_buf_item.c | 20 -------------- xfs_extfree_item.c | 69 +------------------------------------------------ xfs_inode_item.c | 16 ----------- xfs_trans.h | 2 - 5 files changed, 2 insertions(+), 131 deletions(-)
-Eric
Signed-off-by Eric Sandeen <[email protected]>
quota/xfs_dquot_item.c +0 -26
@@ -382,18 +382,6 @@ xfs_qm_dquot_logitem_unlock(/* -* The transaction with the dquot locked has aborted. The dquot -* must not be dirty within the transaction. We simply unlock just -* as if the transaction had been cancelled. -*/ -STATIC void -xfs_qm_dquot_logitem_abort ( -xfs_dq_logitem_t *ql) -{ -xfs_qm_dquot_logitem_unlock (ql); -} - -/* * this needs to stamp an lsn into the dquot, I think. * rpc's that look at user dquot's would then have to * push on the dependency recorded in the dquot
@@ -426,7 +414,6 @@ STATIC struct xfs_item_ops xfs_dquot_ite .iop_committed = (xfs_lsn_t(*)(xfs_log_item_t*, xfs_lsn_t)) xfs_qm_dquot_logitem_committed, .iop_push = (void(*)(xfs_log_item_t*))xfs_qm_dquot_logitem_push, - .iop_abort = (void(*)(xfs_log_item_t*))xfs_qm_dquot_logitem_abort, .iop_pushbuf = (void (*)(xfs_log_item_t *)) xfs_qm_dquot_logitem_pushbuf, .iop_committing = (void(*)(xfs_log_item_t*, xfs_lsn_t))
@@ -559,17 +546,6 @@ xfs_qm_qoff_logitem_committed(xfs_qoff_l }/* -* The transaction of which this QUOTAOFF is a part has been aborted. -* Just clean up after ourselves. -* Shouldn't this never happen in the case of qoffend logitems? XXX -*/ -STATIC void -xfs_qm_qoff_logitem_abort (xfs_qoff_logitem_t *qf) -{ -kmem_free (qf,sizeof (xfs_qoff_logitem_t)); -} - -/* * There isn't much you can do to push on an quotaoff item. It is simply * stuck waiting for the log to be flushed to disk. */
@@ -644,7 +620,6 @@ STATIC struct xfs_item_ops xfs_qm_qoffen .iop_committed = (xfs_lsn_t(*)(xfs_log_item_t*, xfs_lsn_t)) xfs_qm_qoffend_logitem_committed, .iop_push = (void(*)(xfs_log_item_t*))xfs_qm_qoff_logitem_push, - .iop_abort = (void(*)(xfs_log_item_t*))xfs_qm_qoff_logitem_abort, .iop_pushbuf =NULL , .iop_committing = (void(*)(xfs_log_item_t*, xfs_lsn_t)) xfs_qm_qoffend_logitem_committing
@@ -667,7 +642,6 @@ STATIC struct xfs_item_ops xfs_qm_qoff_l .iop_committed = (xfs_lsn_t(*)(xfs_log_item_t*, xfs_lsn_t)) xfs_qm_qoff_logitem_committed, .iop_push = (void(*)(xfs_log_item_t*))xfs_qm_qoff_logitem_push, - .iop_abort = (void(*)(xfs_log_item_t*))xfs_qm_qoff_logitem_abort, .iop_pushbuf =NULL , .iop_committing = (void(*)(xfs_log_item_t*, xfs_lsn_t)) xfs_qm_qoff_logitem_committing
xfs_buf_item.c +0 -20
@@ -628,25 +628,6 @@ xfs_buf_item_committed( }/* -* This is called when the transaction holding the buffer is aborted. -* Just behave as if the transaction had been cancelled. If we're shutting down -* and have aborted this transaction, we'll trap this buffer when it tries to -* get written out. -*/ -STATIC void -xfs_buf_item_abort ( -xfs_buf_log_item_t *bip) -{ -xfs_buf_t *bp; - - bp = bip->bli_buf; -xfs_buftrace ("XFS_ABORT" , bp); -XFS_BUF_SUPER_STALE (bp); -xfs_buf_item_unlock (bip); -return ; -} - -/* * This is called to asynchronously write the buffer associated with this * buf log item out to disk. The buffer will already have been locked by * a successful call to xfs_buf_item_trylock(). If the buffer still has
@@ -693,7 +674,6 @@ STATIC struct xfs_item_ops xfs_buf_item_ .iop_committed = (xfs_lsn_t(*)(xfs_log_item_t*, xfs_lsn_t)) xfs_buf_item_committed, .iop_push = (void(*)(xfs_log_item_t*))xfs_buf_item_push, - .iop_abort = (void(*)(xfs_log_item_t*))xfs_buf_item_abort, .iop_pushbuf =NULL , .iop_committing = (void(*)(xfs_log_item_t*, xfs_lsn_t)) xfs_buf_item_committing
xfs_extfree_item.c +2 -67
117 lines not on this page · raw message
xfs_inode_item.c +0 -16
@@ -743,21 +743,6 @@ xfs_inode_item_committed( }/* -* The transaction with the inode locked has aborted. The inode -* must not be dirty within the transaction (unless we're forcibly -* shutting down). We simply unlock just as if the transaction -* had been cancelled. -*/ -STATIC void -xfs_inode_item_abort ( -xfs_inode_log_item_t *iip) -{ -xfs_inode_item_unlock (iip); -return ; -} - - -/* * This gets called by xfs_trans_push_ail(), when IOP_TRYLOCK * failed to get the inode flush lock but did get the inode locked SHARED. * Here we're trying to see if the inode buffer is incore, and if so whether it's
@@ -915,7 +900,6 @@ STATIC struct xfs_item_ops xfs_inode_ite .iop_committed = (xfs_lsn_t(*)(xfs_log_item_t*, xfs_lsn_t)) xfs_inode_item_committed, .iop_push = (void(*)(xfs_log_item_t*))xfs_inode_item_push, - .iop_abort = (void(*)(xfs_log_item_t*))xfs_inode_item_abort, .iop_pushbuf = (void (*)(xfs_log_item_t *))xfs_inode_item_pushbuf, .iop_committing = (void(*)(xfs_log_item_t*, xfs_lsn_t)) xfs_inode_item_committing
xfs_trans.h +0 -2
@@ -149,7 +149,6 @@ typedef struct xfs_item_ops {void (*iop_unlock)(xfs_log_item_t *);xfs_lsn_t (*iop_committed)(xfs_log_item_t *,xfs_lsn_t );void (*iop_push)(xfs_log_item_t *); -void (*iop_abort)(xfs_log_item_t *);void (*iop_pushbuf)(xfs_log_item_t *);void (*iop_committing)(xfs_log_item_t *,xfs_lsn_t ); } xfs_item_ops_t;
@@ -163,7 +162,6 @@ typedef struct xfs_item_ops {#define IOP_UNLOCK (ip) (*(ip)->li_ops->iop_unlock)(ip)#define IOP_COMMITTED (ip, lsn) (*(ip)->li_ops->iop_committed)(ip, lsn)#define IOP_PUSH (ip) (*(ip)->li_ops->iop_push)(ip) -#define IOP_ABORT (ip) (*(ip)->li_ops->iop_abort)(ip)#define IOP_PUSHBUF (ip) (*(ip)->li_ops->iop_pushbuf)(ip)#define IOP_COMMITTING (ip, lsn) (*(ip)->li_ops->iop_committing)(ip, lsn)
Quoted 1 line · Eric Sandeen
It doesn't look like this is ever used for anything...?
Nice catch, will get that merged shortly, thanks Eric.
cheers.
Signature · 1 line
Nathan