]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
erofs: add erofs_sb_free() helper
authorGao Xiang <hsiangkao@linux.alibaba.com>
Thu, 12 Dec 2024 13:35:01 +0000 (21:35 +0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 27 Dec 2024 13:02:00 +0000 (14:02 +0100)
commit910798ecd33d45b257d548a0c6ab5e7bb82f28fe
treec01319ed197db0cbe88f7256f1cf89623fc293a2
parent532d40c321fb857755cbd1f136fa14b6a923d476
erofs: add erofs_sb_free() helper

[ Upstream commit e2de3c1bf6a0c99b089bd706a62da8f988918858 ]

Unify the common parts of erofs_fc_free() and erofs_kill_sb() as
erofs_sb_free().

Thus, fput() in erofs_fc_get_tree() is no longer needed, too.

Reviewed-by: Chao Yu <chao@kernel.org>
Signed-off-by: Gao Xiang <hsiangkao@linux.alibaba.com>
Link: https://lore.kernel.org/r/20241212133504.2047178-1-hsiangkao@linux.alibaba.com
Stable-dep-of: 6422cde1b0d5 ("erofs: use buffered I/O for file-backed mounts by default")
Signed-off-by: Sasha Levin <sashal@kernel.org>
fs/erofs/super.c