f2fs: fix memory leak of write_io_dummy mempool during umount
authorChao Yu <yuchao0@huawei.com>
Mon, 27 Feb 2017 10:43:12 +0000 (18:43 +0800)
committerJaegeuk Kim <jaegeuk@kernel.org>
Mon, 27 Feb 2017 18:40:09 +0000 (10:40 -0800)
Signed-off-by: Chao Yu <yuchao0@huawei.com>
Signed-off-by: Jaegeuk Kim <jaegeuk@kernel.org>
fs/f2fs/super.c

index 751e106..5330588 100644 (file)
@@ -818,7 +818,7 @@ static void f2fs_put_super(struct super_block *sb)
        kfree(sbi->raw_super);
 
        destroy_device_list(sbi);
-
+       mempool_destroy(sbi->write_io_dummy);
        destroy_percpu_info(sbi);
        kfree(sbi);
 }