Skip to contentSkip to conversation

f2fs: fix wrong data structure when create slab

PATCH In review Changman Lee 2 participants 2 messages Nov 21, 2014

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

PATCH 1/1 f2fs: fix wrong data structure when create slab

It used nat_entry_set when create slab for sit_entry_set.

---
 fs/f2fs/segment.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
fs/f2fs/segment.c +1 -1
index e094675..9de857f 100644
@@ -2231,7 +2231,7 @@ int __init create_segment_manager_caches(void)
 		goto fail;
 
 	sit_entry_set_slab = f2fs_kmem_cache_create("sit_entry_set",
-			sizeof(struct nat_entry_set));
+			sizeof(struct sit_entry_set));
 	if (!sit_entry_set_slab)
 		goto destory_discard_entry;
 
Signature · 1 line
1.9.1
Reviewed-by on v1 1/1
#1 lore raw

Hi, Changman

Quoted 7 lines

-----Original Message-----
From: Changman Lee [mailto:[email protected]]
Sent: Friday, November 21, 2014 2:42 PM
To: [email protected]; [email protected]
Subject: [f2fs-dev] [PATCH] f2fs: fix wrong data structure when create slab

It used nat_entry_set when create slab for sit_entry_set.

Oh, sorry, that's my mistake, thank you for fixing this!

Regards,
Yu

Quoted 33 lines
---
 fs/f2fs/segment.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
fs/f2fs/segment.c +1 -2
index e094675..9de857f 100644
@@ -2231,7 +2231,7 @@ int __init create_segment_manager_caches(void)
 		goto fail;
 
 	sit_entry_set_slab = f2fs_kmem_cache_create("sit_entry_set",
-			sizeof(struct nat_entry_set));
+			sizeof(struct sit_entry_set));
 	if (!sit_entry_set_slab)
 		goto destory_discard_entry;
 
--

1.9.1

------------------------------------------------------------------------------
Download BIRT iHub F-Type - The Free Enterprise-Grade BIRT Server from Actuate! Instantly Supercharge Your Business Reports and Dashboards with Interactivity, Sharing, Native Excel Exports, App Integration & more Get technology previously reserved for billion-dollar corporations, FREE
http://pubads.g.doubleclick.net/gampad/clk?id=157005751&iu=/4140/ostg.clktrk
_______________________________________________
Linux-f2fs-devel mailing list [email protected]
https://lists.sourceforge.net/lists/listinfo/linux-f2fs-devel