Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

xfs: remove unused transaction callback variables

We don't do callbacks at transaction commit time, no do we have any
infrastructure to set up or run such callbacks, so remove the
variables and typedefs for these operations. If we ever need to add
callbacks, we can reintroduce the variables at that time.

Signed-off-by: Dave Chinner <dchinner@redhat.com>
Reviewed-by: Ben Myers <bpm@sgi.com>
Signed-off-by: Ben Myers <bpm@sgi.com>

authored by

Dave Chinner and committed by
Ben Myers
d420e5c8 9aede1d8

-7
-7
fs/xfs/xfs_trans.h
··· 86 86 #define XFS_ITEM_FLUSHING 3 87 87 88 88 /* 89 - * This is the type of function which can be given to xfs_trans_callback() 90 - * to be called upon the transaction's commit to disk. 91 - */ 92 - typedef void (*xfs_trans_callback_t)(struct xfs_trans *, void *); 93 - 94 - /* 95 89 * This is the structure maintained for every active transaction. 96 90 */ 97 91 typedef struct xfs_trans { 98 92 unsigned int t_magic; /* magic number */ 99 - xfs_log_callback_t t_logcb; /* log callback struct */ 100 93 unsigned int t_type; /* transaction type */ 101 94 unsigned int t_log_res; /* amt of log space resvd */ 102 95 unsigned int t_log_count; /* count for perm log res */