]> git.baikalelectronics.ru Git - kernel.git/commit
erofs: use kill_anon_super() to kill super in fscache mode
authorJia Zhu <zhujia.zj@bytedance.com>
Sun, 18 Sep 2022 04:34:51 +0000 (12:34 +0800)
committerGao Xiang <hsiangkao@linux.alibaba.com>
Tue, 20 Sep 2022 00:01:53 +0000 (08:01 +0800)
commite31c907a3a7d730ecdedc6aac286c0824f8f45f5
tree92e610d2be666f88e1c8e4f1b882b0747ded5f4e
parent744ce7afc330a32b0f63fd19d5e514d3f8087835
erofs: use kill_anon_super() to kill super in fscache mode

Use kill_anon_super() instead of generic_shutdown_super() since the
mount() in erofs fscache mode uses get_tree_nodev() and associated
anon bdev needs to be freed.

Fixes: 2fb5534aa9390 ("erofs: add 'fsid' mount option")
Suggested-by: Jingbo Xu <jefflexu@linux.alibaba.com>
Signed-off-by: Jia Zhu <zhujia.zj@bytedance.com>
Reviewed-by: Jingbo Xu <jefflexu@linux.alibaba.com>
Link: https://lore.kernel.org/r/20220918043456.147-2-zhujia.zj@bytedance.com
Signed-off-by: Gao Xiang <hsiangkao@linux.alibaba.com>
fs/erofs/super.c