diff options
author | Jaegeuk Kim <jaegeuk.kim@samsung.com> | 2013-05-14 21:49:13 -0400 |
---|---|---|
committer | Jaegeuk Kim <jaegeuk.kim@samsung.com> | 2013-05-28 02:03:01 -0400 |
commit | addbe45b005d73f876d55bcfc16f4a6ce52a55e3 (patch) | |
tree | 4abe78c9220debc4195afbdcddce7d4ed0e2dce7 /fs/f2fs | |
parent | 650495dedc34daf8590c708a5b48f82ed2787b75 (diff) |
f2fs: remove redundant assignment
We don't need to assign a value redundantly.
Signed-off-by: Jaegeuk Kim <jaegeuk.kim@samsung.com>
Diffstat (limited to 'fs/f2fs')
-rw-r--r-- | fs/f2fs/recovery.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/fs/f2fs/recovery.c b/fs/f2fs/recovery.c index 60c8a5097058..294198775f8b 100644 --- a/fs/f2fs/recovery.c +++ b/fs/f2fs/recovery.c | |||
@@ -126,7 +126,6 @@ static int find_fsync_dnodes(struct f2fs_sb_info *sbi, struct list_head *head) | |||
126 | 126 | ||
127 | entry = get_fsync_inode(head, ino_of_node(page)); | 127 | entry = get_fsync_inode(head, ino_of_node(page)); |
128 | if (entry) { | 128 | if (entry) { |
129 | entry->blkaddr = blkaddr; | ||
130 | if (IS_INODE(page) && is_dent_dnode(page)) | 129 | if (IS_INODE(page) && is_dent_dnode(page)) |
131 | set_inode_flag(F2FS_I(entry->inode), | 130 | set_inode_flag(F2FS_I(entry->inode), |
132 | FI_INC_LINK); | 131 | FI_INC_LINK); |
@@ -150,10 +149,10 @@ static int find_fsync_dnodes(struct f2fs_sb_info *sbi, struct list_head *head) | |||
150 | kmem_cache_free(fsync_entry_slab, entry); | 149 | kmem_cache_free(fsync_entry_slab, entry); |
151 | goto unlock_out; | 150 | goto unlock_out; |
152 | } | 151 | } |
153 | |||
154 | list_add_tail(&entry->list, head); | 152 | list_add_tail(&entry->list, head); |
155 | entry->blkaddr = blkaddr; | ||
156 | } | 153 | } |
154 | entry->blkaddr = blkaddr; | ||
155 | |||
157 | if (IS_INODE(page)) { | 156 | if (IS_INODE(page)) { |
158 | err = recover_inode(entry->inode, page); | 157 | err = recover_inode(entry->inode, page); |
159 | if (err == -ENOENT) { | 158 | if (err == -ENOENT) { |