xfs: merge the ->log_item defer op into ->create_intent
These are aways called together, and my merging them we reduce the amount of indirect calls, improve type safety and in general clean up the code a bit. Signed-off-by: Christoph Hellwig <hch@lst.de> Reviewed-by: Brian Foster <bfoster@redhat.com> Reviewed-by: Darrick J. Wong <darrick.wong@oracle.com> Signed-off-by: Darrick J. Wong <darrick.wong@oracle.com>
This commit is contained in:
committed by
Darrick J. Wong
parent
e046e94948
commit
c1f09188e8
@ -50,8 +50,8 @@ struct xfs_defer_op_type {
|
||||
void (*finish_cleanup)(struct xfs_trans *, void *, int);
|
||||
void (*cancel_item)(struct list_head *);
|
||||
int (*diff_items)(void *, struct list_head *, struct list_head *);
|
||||
void *(*create_intent)(struct xfs_trans *, uint);
|
||||
void (*log_item)(struct xfs_trans *, void *, struct list_head *);
|
||||
void *(*create_intent)(struct xfs_trans *tp, struct list_head *items,
|
||||
unsigned int count);
|
||||
unsigned int max_items;
|
||||
};
|
||||
|
||||
|
Reference in New Issue
Block a user