diff options
author | Darrick J. Wong <darrick.wong@oracle.com> | 2019-08-26 20:06:02 -0400 |
---|---|---|
committer | Darrick J. Wong <darrick.wong@oracle.com> | 2019-08-28 11:31:01 -0400 |
commit | 2ca09177ab9dae7cc0a888137bd2421f5829cd87 (patch) | |
tree | fe4ff745951185902863ae6f0e0873dedf50c38d /fs/xfs | |
parent | b521c89027f4b86af418083cb75db60a0e7a5997 (diff) |
xfs: remove unnecessary parameter from xfs_iext_inc_seq
This function doesn't use the @state parameter, so get rid of it.
Signed-off-by: Darrick J. Wong <darrick.wong@oracle.com>
Reviewed-by: Dave Chinner <dchinner@redhat.com>
Diffstat (limited to 'fs/xfs')
-rw-r--r-- | fs/xfs/libxfs/xfs_iext_tree.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/fs/xfs/libxfs/xfs_iext_tree.c b/fs/xfs/libxfs/xfs_iext_tree.c index 27aa3f2bc4bc..7bc87408f1a0 100644 --- a/fs/xfs/libxfs/xfs_iext_tree.c +++ b/fs/xfs/libxfs/xfs_iext_tree.c | |||
@@ -616,7 +616,7 @@ xfs_iext_realloc_root( | |||
616 | * sequence counter is seen before the modifications to the extent tree itself | 616 | * sequence counter is seen before the modifications to the extent tree itself |
617 | * take effect. | 617 | * take effect. |
618 | */ | 618 | */ |
619 | static inline void xfs_iext_inc_seq(struct xfs_ifork *ifp, int state) | 619 | static inline void xfs_iext_inc_seq(struct xfs_ifork *ifp) |
620 | { | 620 | { |
621 | WRITE_ONCE(ifp->if_seq, READ_ONCE(ifp->if_seq) + 1); | 621 | WRITE_ONCE(ifp->if_seq, READ_ONCE(ifp->if_seq) + 1); |
622 | } | 622 | } |
@@ -633,7 +633,7 @@ xfs_iext_insert( | |||
633 | struct xfs_iext_leaf *new = NULL; | 633 | struct xfs_iext_leaf *new = NULL; |
634 | int nr_entries, i; | 634 | int nr_entries, i; |
635 | 635 | ||
636 | xfs_iext_inc_seq(ifp, state); | 636 | xfs_iext_inc_seq(ifp); |
637 | 637 | ||
638 | if (ifp->if_height == 0) | 638 | if (ifp->if_height == 0) |
639 | xfs_iext_alloc_root(ifp, cur); | 639 | xfs_iext_alloc_root(ifp, cur); |
@@ -875,7 +875,7 @@ xfs_iext_remove( | |||
875 | ASSERT(ifp->if_u1.if_root != NULL); | 875 | ASSERT(ifp->if_u1.if_root != NULL); |
876 | ASSERT(xfs_iext_valid(ifp, cur)); | 876 | ASSERT(xfs_iext_valid(ifp, cur)); |
877 | 877 | ||
878 | xfs_iext_inc_seq(ifp, state); | 878 | xfs_iext_inc_seq(ifp); |
879 | 879 | ||
880 | nr_entries = xfs_iext_leaf_nr_entries(ifp, leaf, cur->pos) - 1; | 880 | nr_entries = xfs_iext_leaf_nr_entries(ifp, leaf, cur->pos) - 1; |
881 | for (i = cur->pos; i < nr_entries; i++) | 881 | for (i = cur->pos; i < nr_entries; i++) |
@@ -983,7 +983,7 @@ xfs_iext_update_extent( | |||
983 | { | 983 | { |
984 | struct xfs_ifork *ifp = xfs_iext_state_to_fork(ip, state); | 984 | struct xfs_ifork *ifp = xfs_iext_state_to_fork(ip, state); |
985 | 985 | ||
986 | xfs_iext_inc_seq(ifp, state); | 986 | xfs_iext_inc_seq(ifp); |
987 | 987 | ||
988 | if (cur->pos == 0) { | 988 | if (cur->pos == 0) { |
989 | struct xfs_bmbt_irec old; | 989 | struct xfs_bmbt_irec old; |