[f2fs-dev] [PATCH] f2fs: fix memory leak after kobject init failed in fill_super

2013-11-06 Thread Chao Yu
If we failed to init&add kobject when fill_super, stats info and proc object of f2fs will not be released. We should free them before we finish fill_super. Signed-off-by: Chao Yu --- fs/f2fs/super.c | 10 -- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/fs/f2fs/super.c

[f2fs-dev] [PATCH v2] f2fs: cleanup waiting routine for writeback pages in cp

2013-11-06 Thread Changman Lee
use genernal method supported by kernel o changes from v1 If any waiter exists at end io, wake up it. Signed-off-by: Changman Lee --- fs/f2fs/checkpoint.c | 25 - fs/f2fs/f2fs.h |2 +- fs/f2fs/segment.c|5 +++-- fs/f2fs/super.c |1 + 4 fi