]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
f2fs: support .shutdown in f2fs_sops
authorChao Yu <chao@kernel.org>
Thu, 29 Feb 2024 14:38:38 +0000 (22:38 +0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 4 Oct 2024 14:29:36 +0000 (16:29 +0200)
commitf2971778b2cb08392426064981d5d85ff021ce98
tree1bf0d5d7170c29f6a8f8457ee31572d8c00b367d
parent783b6ca3428fcc01426d716c9e8b0dba51eb0a2a
f2fs: support .shutdown in f2fs_sops

[ Upstream commit ee745e4736fbf33079d0d0808e1343c2280fd59a ]

Support .shutdown callback in f2fs_sops, then, it can be called to
shut down the file system when underlying block device is marked dead.

Signed-off-by: Chao Yu <chao@kernel.org>
Signed-off-by: Jaegeuk Kim <jaegeuk@kernel.org>
Stable-dep-of: c7f114d864ac ("f2fs: fix to avoid use-after-free in f2fs_stop_gc_thread()")
Signed-off-by: Sasha Levin <sashal@kernel.org>
fs/f2fs/f2fs.h
fs/f2fs/file.c
fs/f2fs/super.c