Commit 9ed53b12 authored by Wei Yongjun's avatar Wei Yongjun Committed by Al Viro
Browse files

vfs: use list_move instead of list_del/list_add

Using list_move() instead of list_del() + list_add().
Signed-off-by: default avatarWei Yongjun <>
Signed-off-by: default avatarAl Viro <>
parent 75fc0cf6
......@@ -2397,8 +2397,7 @@ static void __d_materialise_dentry(struct dentry *dentry, struct dentry *anon)
dentry->d_parent = dentry;
anon->d_parent = dparent;
list_add(&anon->d_u.d_child, &dparent->d_subdirs);
list_move(&anon->d_u.d_child, &dparent->d_subdirs);
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment