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:
75fc0cf
)
vfs: use list_move instead of list_del/list_add
author
Wei Yongjun
<
[email protected]
>
Mon, 11 Mar 2013 16:10:50 +0000
(
00:10
+0800)
committer
Al Viro
<
[email protected]
>
Sat, 4 May 2013 19:43:02 +0000
(15:43 -0400)
Using list_move() instead of list_del() + list_add().
Signed-off-by: Wei Yongjun <
[email protected]
>
Signed-off-by: Al Viro <
[email protected]
>
fs/dcache.c
patch
|
blob
|
history
diff --git
a/fs/dcache.c
b/fs/dcache.c
index a161ebcab9d28370226fd0b6a0371c604a915fc7..f09b9085f7d849e235a2b8d77c079de71c96f5d2 100644
(file)
--- a/
fs/dcache.c
+++ b/
fs/dcache.c
@@
-2397,8
+2397,7
@@
static void __d_materialise_dentry(struct dentry *dentry, struct dentry *anon)
dentry->d_parent = dentry;
list_del_init(&dentry->d_u.d_child);
anon->d_parent = dparent;
- list_del(&anon->d_u.d_child);
- list_add(&anon->d_u.d_child, &dparent->d_subdirs);
+ list_move(&anon->d_u.d_child, &dparent->d_subdirs);
write_seqcount_end(&dentry->d_seq);
write_seqcount_end(&anon->d_seq);