Remove the unused flags parameter and mark the function as static.
Signed-off-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: Dave Chinner <dchinner@redhat.com>
Signed-off-by: Dave Chinner <david@fromorbit.com>
/* xfs_trans_item.c */
void xfs_trans_add_item(struct xfs_trans *, struct xfs_log_item *);
void xfs_trans_del_item(struct xfs_log_item *);
-void xfs_trans_free_items(struct xfs_trans *, int);
/* xfs_inode_item.c */
void xfs_inode_item_init(struct xfs_inode *, struct xfs_mount *);
#include "xfs_trans.h"
#include "xfs_sb.h"
+static void xfs_trans_free_items(struct xfs_trans *tp);
+
/*
* Simple transaction interface
*/
xfs_trans_t *otp = tp;
#endif
if (tp != NULL) {
- xfs_trans_free_items(tp, flags);
+ xfs_trans_free_items(tp);
free(tp);
tp = NULL;
}
* Unlock all of the items of a transaction and free all the descriptors
* of that transaction.
*/
-void
+static void
xfs_trans_free_items(
- struct xfs_trans *tp,
- int flags)
+ struct xfs_trans *tp)
{
struct xfs_log_item_desc *lidp, *next;
#ifdef XACT_DEBUG
fprintf(stderr, "committed clean transaction %p\n", tp);
#endif
- xfs_trans_free_items(tp, flags);
+ xfs_trans_free_items(tp);
free(tp);
tp = NULL;
return 0;