projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
ae1f081
)
ocfs2: use swap() in dx_leaf_sort_swap()
author
Fabian Frederick
<
[email protected]
>
Wed, 24 Jun 2015 23:55:26 +0000
(16:55 -0700)
committer
Linus Torvalds
<
[email protected]
>
Thu, 25 Jun 2015 00:49:40 +0000
(17:49 -0700)
Use kernel.h macro definition.
Thanks to Julia Lawall for Coccinelle scripting support.
Signed-off-by: Fabian Frederick <
[email protected]
>
Cc: Julia Lawall <
[email protected]
>
Cc: Mark Fasheh <
[email protected]
>
Cc: Joel Becker <
[email protected]
>
Signed-off-by: Andrew Morton <
[email protected]
>
Signed-off-by: Linus Torvalds <
[email protected]
>
fs/ocfs2/dir.c
patch
|
blob
|
history
diff --git
a/fs/ocfs2/dir.c
b/fs/ocfs2/dir.c
index a7f01f3cdda144461ba2ed84d1d453618131202b..02878a83f0b4e88655114ff78b9883e0494432a6 100644
(file)
--- 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)
{
struct ocfs2_dx_entry *entry1 = a;
struct ocfs2_dx_entry *entry2 = b;
- struct ocfs2_dx_entry tmp;
BUG_ON(size != sizeof(*entry1));
- tmp = *entry1;
- *entry1 = *entry2;
- *entry2 = tmp;
+ swap(*entry1, *entry2);
}
static int ocfs2_dx_leaf_same_major(struct ocfs2_dx_leaf *dx_leaf)