]> git.ipfire.org Git - thirdparty/xfsprogs-dev.git/commitdiff
xfs: remove unused __xfs_defer_cancel() internal helper
authorBrian Foster <bfoster@redhat.com>
Fri, 5 Oct 2018 02:36:11 +0000 (21:36 -0500)
committerEric Sandeen <sandeen@redhat.com>
Fri, 5 Oct 2018 02:36:11 +0000 (21:36 -0500)
Source kernel commit: 7279aa13b8fb954f50073a672f912898198efd14

With no more external dfops users, there is no need for an
xfs_defer_ops cancel wrapper.

Signed-off-by: Brian Foster <bfoster@redhat.com>
Reviewed-by: Darrick J. Wong <darrick.wong@oracle.com>
Reviewed-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Darrick J. Wong <darrick.wong@oracle.com>
Signed-off-by: Eric Sandeen <sandeen@sandeen.net>
libxfs/trans.c
libxfs/xfs_defer.c
libxfs/xfs_defer.h

index 3221a3f52079789718053fd488de757342cd555d..0438ebcd0f90b85d19ac6c3bb78d41cb59662298 100644 (file)
@@ -115,14 +115,6 @@ libxfs_trans_roll(
        return xfs_trans_reserve(*tpp, &tres, 0, 0);
 }
 
-void
-xfs_defer_cancel(
-       struct xfs_trans        *tp)
-{
-       __xfs_defer_cancel(tp->t_dfops);
-}
-
-
 /*
  * Free the transaction structure.  If there is more clean up
  * to do when the structure is freed, add it here.
index 1cd865dceda5989f68bf1766a5cf865c2a5e138b..09323c0d69b20cc0d3aa721145a719f9c0591e33 100644 (file)
@@ -465,9 +465,10 @@ xfs_defer_finish(
  * Free up any items left in the list.
  */
 void
-__xfs_defer_cancel(
-       struct xfs_defer_ops            *dop)
+xfs_defer_cancel(
+       struct xfs_trans                *tp)
 {
+       struct xfs_defer_ops            *dop = tp->t_dfops;
        struct xfs_defer_pending        *dfp;
        struct xfs_defer_pending        *pli;
        struct list_head                *pwi;
index 85c41fe4dbaebb4c4460e26da062910c5f12daa1..da145fc04ae14a3e445a251de5632d32d7ce0cf5 100644 (file)
@@ -50,7 +50,7 @@ void xfs_defer_add(struct xfs_defer_ops *dop, enum xfs_defer_ops_type type,
                struct list_head *h);
 int xfs_defer_finish_noroll(struct xfs_trans **tp);
 int xfs_defer_finish(struct xfs_trans **tp);
-void __xfs_defer_cancel(struct xfs_defer_ops *dop);
+void xfs_defer_cancel(struct xfs_trans *);
 void xfs_defer_init(struct xfs_trans *tp, struct xfs_defer_ops *dop);
 bool xfs_defer_has_unfinished_work(struct xfs_defer_ops *dop);
 int xfs_defer_ijoin(struct xfs_defer_ops *dop, struct xfs_inode *ip);