]> git.ipfire.org Git - thirdparty/linux.git/commit
f2fs: use kfree() instead of kvfree() to free superblock data
authorDenis Efremov <efremov@linux.com>
Tue, 9 Jun 2020 22:14:46 +0000 (01:14 +0300)
committerJaegeuk Kim <jaegeuk@kernel.org>
Thu, 18 Jun 2020 19:33:18 +0000 (12:33 -0700)
commit742532d11d8328231d099f557e6287e75b2d247b
tree4697e754226fde2ee76f6fa3f8756d833845b494
parent99bbe307013059951368d12f5454d34568de4850
f2fs: use kfree() instead of kvfree() to free superblock data

Use kfree() instead of kvfree() to free super in read_raw_super_block()
because the memory is allocated with kzalloc() in the function.
Use kfree() instead of kvfree() to free sbi, raw_super in
f2fs_fill_super() and f2fs_put_super() because the memory is allocated
with kzalloc().

Signed-off-by: Denis Efremov <efremov@linux.com>
Reviewed-by: Chao Yu <yuchao0@huawei.com>
Signed-off-by: Jaegeuk Kim <jaegeuk@kernel.org>
fs/f2fs/super.c