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 751e1068db1799949afc161ba9f24750824397b6..53305880c4552dd1a4b0e1a1dfe7faa951bb7dcd 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);
 }