diff options
author | Wei Yongjun <yongjun_wei@trendmicro.com.cn> | 2013-03-12 00:10:50 +0800 |
---|---|---|
committer | Al Viro <viro@zeniv.linux.org.uk> | 2013-05-04 15:43:02 -0400 |
commit | 9ed53b12a9a60f4d52228335e76cbbdf0c7e37fb (patch) | |
tree | f8c83534f8241b09db9cc95245f594c123b11c70 | |
parent | 75fc0cf6af45e5de251caa9421b3c3d1bdc273c8 (diff) | |
download | op-kernel-dev-9ed53b12a9a60f4d52228335e76cbbdf0c7e37fb.zip op-kernel-dev-9ed53b12a9a60f4d52228335e76cbbdf0c7e37fb.tar.gz |
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>
-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 a161ebc..f09b908 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); |