Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit a612543f authored by Fabian Frederick's avatar Fabian Frederick Committed by Linus Torvalds
Browse files

ocfs2: use swap() in swap_refcount_rec()



Use kernel.h macro definition.

Thanks to Julia Lawall for Coccinelle scripting support.

Signed-off-by: default avatarFabian Frederick <fabf@skynet.be>
Cc: Julia Lawall <julia.lawall@lip6.fr>
Cc: Mark Fasheh <mfasheh@suse.com>
Cc: Joel Becker <jlbec@evilplan.org>
Signed-off-by: default avatarAndrew Morton <akpm@linux-foundation.org>
Signed-off-by: default avatarLinus Torvalds <torvalds@linux-foundation.org>
parent 2a28f98c
Loading
Loading
Loading
Loading
+2 −4
Original line number Diff line number Diff line
@@ -1406,11 +1406,9 @@ static int cmp_refcount_rec_by_cpos(const void *a, const void *b)

static void swap_refcount_rec(void *a, void *b, int size)
{
	struct ocfs2_refcount_rec *l = a, *r = b, tmp;
	struct ocfs2_refcount_rec *l = a, *r = b;

	tmp = *l;
	*l = *r;
	*r = tmp;
	swap(*l, *r);
}

/*