aboutsummaryrefslogtreecommitdiffstats
path: root/fs/nilfs2/inode.c
diff options
context:
space:
mode:
authorNicolas Kaiser <nikai@nikai.net>2011-03-19 11:45:30 -0400
committerRyusuke Konishi <konishi.ryusuke@lab.ntt.co.jp>2011-05-10 09:21:44 -0400
commiteaae0f37d83bed7ccd0c6d0f52de1de44f92aecc (patch)
tree15f643a13b7d80ab9406ac84c2430b151983a531 /fs/nilfs2/inode.c
parent349dbc3669d043e656f3ed48c7bfe073ca1c6326 (diff)
nilfs2: merge list_del()/list_add_tail() to list_move_tail()
Merge list_del() + list_add_tail() to list_move_tail(). Signed-off-by: Nicolas Kaiser <nikai@nikai.net> Signed-off-by: Ryusuke Konishi <konishi.ryusuke@lab.ntt.co.jp>
Diffstat (limited to 'fs/nilfs2/inode.c')
-rw-r--r--fs/nilfs2/inode.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/fs/nilfs2/inode.c b/fs/nilfs2/inode.c
index c0aa27490c02..2cc8c087b2d5 100644
--- a/fs/nilfs2/inode.c
+++ b/fs/nilfs2/inode.c
@@ -872,8 +872,7 @@ int nilfs_set_file_dirty(struct inode *inode, unsigned nr_dirty)
872 return -EINVAL; /* NILFS_I_DIRTY may remain for 872 return -EINVAL; /* NILFS_I_DIRTY may remain for
873 freeing inode */ 873 freeing inode */
874 } 874 }
875 list_del(&ii->i_dirty); 875 list_move_tail(&ii->i_dirty, &nilfs->ns_dirty_files);
876 list_add_tail(&ii->i_dirty, &nilfs->ns_dirty_files);
877 set_bit(NILFS_I_QUEUED, &ii->i_state); 876 set_bit(NILFS_I_QUEUED, &ii->i_state);
878 } 877 }
879 spin_unlock(&nilfs->ns_inode_lock); 878 spin_unlock(&nilfs->ns_inode_lock);