Skip to contentSkip to conversation

f2fs: remove unneeded INIT_LIST_HEAD at few places

PATCH NAK Namjae Jeon 1 participant 1 message Dec 30, 2012

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 4/4 f2fs: remove unneeded INIT_LIST_HEAD at few places

From: Namjae Jeon <[email protected]>

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.

---
 fs/f2fs/checkpoint.c |    1 -
 fs/f2fs/recovery.c   |    1 -
 2 files changed, 2 deletions(-)
fs/f2fs/checkpoint.c +0 -1
index 6ef36c3..d75c86a 100644
@@ -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) {
fs/f2fs/recovery.c +0 -1
index b571fee..502c63d 100644
@@ -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;
 		}
Signature · 1 line
1.7.9.5