f2fs: remove unneeded INIT_LIST_HEAD at few places
authorNamjae Jeon <namjae.jeon@samsung.com>
Sun, 30 Dec 2012 05:53:08 +0000 (14:53 +0900)
committerJaegeuk Kim <jaegeuk.kim@samsung.com>
Fri, 4 Jan 2013 00:42:59 +0000 (09:42 +0900)
While creating a new entry for addition to the list(orphan inode list
and fsync inode entry list), there is no need to call HEAD initialization
for these entries. So, remove that init part.

Signed-off-by: Namjae Jeon <namjae.jeon@samsung.com>
Signed-off-by: Amit Sahrawat <a.sahrawat@samsung.com>
Signed-off-by: Jaegeuk Kim <jaegeuk.kim@samsung.com>
fs/f2fs/checkpoint.c
fs/f2fs/recovery.c

index 6ef36c37e2be22395335b2467706c1255ed9ecac..d75c86a178933ebbd1f0d524879ba0e1777a3388 100644 (file)
@@ -214,7 +214,6 @@ retry:
                goto retry;
        }
        new->ino = ino;
-       INIT_LIST_HEAD(&new->list);
 
        /* add new_oentry into list which is sorted by inode number */
        if (orphan) {
index b571fee677d5837e4481c805f82f3f38f8975281..502c63d8f096fff9ec5ae6f3ddbc1e44a51fe5c2 100644 (file)
@@ -151,7 +151,6 @@ static int find_fsync_dnodes(struct f2fs_sb_info *sbi, struct list_head *head)
                                goto out;
                        }
 
-                       INIT_LIST_HEAD(&entry->list);
                        list_add_tail(&entry->list, head);
                        entry->blkaddr = blkaddr;
                }