diff options
author | Wei Yongjun <yongjun_wei@trendmicro.com.cn> | 2013-03-11 17:10:50 +0100 |
---|---|---|
committer | Al Viro <viro@zeniv.linux.org.uk> | 2013-05-04 21:43:02 +0200 |
commit | 9ed53b12a9a60f4d52228335e76cbbdf0c7e37fb (patch) | |
tree | f8c83534f8241b09db9cc95245f594c123b11c70 /fs/dcache.c | |
parent | proc_devtree: Replace include linux/module.h with linux/export.h (diff) | |
download | linux-9ed53b12a9a60f4d52228335e76cbbdf0c7e37fb.tar.xz linux-9ed53b12a9a60f4d52228335e76cbbdf0c7e37fb.zip |
vfs: use list_move instead of list_del/list_add
Using list_move() instead of list_del() + list_add().
Signed-off-by: Wei Yongjun <yongjun_wei@trendmicro.com.cn>
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
Diffstat (limited to '')
-rw-r--r-- | fs/dcache.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/fs/dcache.c b/fs/dcache.c index a161ebcab9d2..f09b9085f7d8 100644 --- 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); |