Skip to contentSkip to conversation

f2fs: init variable total_zombie_tree

PATCH In review Yunlei He 3 participants 3 messages Dec 30, 2015 F2FS file system

lore
Share & tools
lore

Yunlei He

author
#0 lore raw

PATCH 1/1 f2fs: init variable total_zombie_tree

This patch init total_zombie_tree in init_extent_cache_info.

---
 fs/f2fs/extent_cache.c | 1 +
 1 file changed, 1 insertion(+)
fs/f2fs/extent_cache.c +1 -0
index 23e7c82..b37184f 100644
@@ -737,6 +737,7 @@ void init_extent_cache_info(struct f2fs_sb_info *sbi)
 	INIT_LIST_HEAD(&sbi->extent_list);
 	spin_lock_init(&sbi->extent_lock);
 	atomic_set(&sbi->total_ext_tree, 0);
+	atomic_set(&sbi->total_zombie_tree, 0);
 	atomic_set(&sbi->total_ext_node, 0);
 }
 
Signature · 4 lines
1.9.1


------------------------------------------------------------------------------
#1 lore raw

Hi Yunlei,

Quoted 8 lines

-----Original Message-----
From: Yunlei He [mailto:[email protected]]
Sent: Wednesday, December 30, 2015 3:28 PM
To: [email protected]; [email protected]; [email protected]
Cc: [email protected]; Yunlei He
Subject: [f2fs-dev][PATCH] f2fs: init variable total_zombie_tree

This patch init total_zombie_tree in init_extent_cache_info.

Sorry, seems I mislead you, I meant it's better let Jaegeuk to fix the issue in his original patch, not in the patch you replied.

Anyway, this patch looks good to me. :)

Thanks,

Quoted 19 lines
---
 fs/f2fs/extent_cache.c | 1 +
 1 file changed, 1 insertion(+)
fs/f2fs/extent_cache.c +1 -1
index 23e7c82..b37184f 100644
@@ -737,6 +737,7 @@ void init_extent_cache_info(struct f2fs_sb_info *sbi)
 	INIT_LIST_HEAD(&sbi->extent_list);
 	spin_lock_init(&sbi->extent_lock);
 	atomic_set(&sbi->total_ext_tree, 0);
+	atomic_set(&sbi->total_zombie_tree, 0);
 	atomic_set(&sbi->total_ext_node, 0);
 }
 
--
Quoted 1 line

1.9.1

------------------------------------------------------------------------------

maintainer
#2 lore raw

Hi Yunlei,

Quoted 9 lines · Chao Yu

Hi Yunlei,

Quoted 7 lines

-----Original Message-----
From: Yunlei He [mailto:[email protected]]
Sent: Wednesday, December 30, 2015 3:28 PM
To: [email protected]; [email protected]; [email protected]
Cc: [email protected]; Yunlei He
Subject: [f2fs-dev][PATCH] f2fs: init variable total_zombie_tree

Quoted 4 lines
Quoted 1 line

This patch init total_zombie_tree in init_extent_cache_info.

Sorry, seems I mislead you, I meant it's better let Jaegeuk to fix the issue in his original patch, not in the patch you replied.

Sorry, me too. :(
Let me update this in the original patch.

Thanks,

Quoted 23 lines

Anyway, this patch looks good to me. :)

Thanks,

Quoted 18 lines
---
 fs/f2fs/extent_cache.c | 1 +
 1 file changed, 1 insertion(+)
fs/f2fs/extent_cache.c +1 -0
index 23e7c82..b37184f 100644
@@ -737,6 +737,7 @@ void init_extent_cache_info(struct f2fs_sb_info *sbi)
 	INIT_LIST_HEAD(&sbi->extent_list);
 	spin_lock_init(&sbi->extent_lock);
 	atomic_set(&sbi->total_ext_tree, 0);
+	atomic_set(&sbi->total_zombie_tree, 0);
 	atomic_set(&sbi->total_ext_node, 0);
 }
 
Quoted 3 lines
Quoted 2 lines

--
1.9.1

------------------------------------------------------------------------------