aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--fs/ocfs2/dir.c5
1 files changed, 1 insertions, 4 deletions
diff --git a/fs/ocfs2/dir.c b/fs/ocfs2/dir.c
index a7f01f3cdda1..02878a83f0b4 100644
--- a/fs/ocfs2/dir.c
+++ b/fs/ocfs2/dir.c
@@ -3543,13 +3543,10 @@ static void dx_leaf_sort_swap(void *a, void *b, int size)
3543{ 3543{
3544 struct ocfs2_dx_entry *entry1 = a; 3544 struct ocfs2_dx_entry *entry1 = a;
3545 struct ocfs2_dx_entry *entry2 = b; 3545 struct ocfs2_dx_entry *entry2 = b;
3546 struct ocfs2_dx_entry tmp;
3547 3546
3548 BUG_ON(size != sizeof(*entry1)); 3547 BUG_ON(size != sizeof(*entry1));
3549 3548
3550 tmp = *entry1; 3549 swap(*entry1, *entry2);
3551 *entry1 = *entry2;
3552 *entry2 = tmp;
3553} 3550}
3554 3551
3555static int ocfs2_dx_leaf_same_major(struct ocfs2_dx_leaf *dx_leaf) 3552static int ocfs2_dx_leaf_same_major(struct ocfs2_dx_leaf *dx_leaf)