]> git.proxmox.com Git - mirror_ubuntu-kernels.git/commit
fs: add a lockdep check function for sb_start_write()
authorNaohiro Aota <naohiro.aota@wdc.com>
Tue, 29 Mar 2022 06:55:59 +0000 (15:55 +0900)
committerDavid Sterba <dsterba@suse.com>
Mon, 16 May 2022 15:03:10 +0000 (17:03 +0200)
commit7f8d12ea96352275c2850c24a1367166179392d2
treea9b97f2d113cb47da1a0d276bfd8723fb942c26b
parentd864546231e051e33e200025e4a6988b996f2654
fs: add a lockdep check function for sb_start_write()

Add a function sb_write_started() to allow callers to verify if
sb_start_write() is properly called. It will be used for assertion in
btrfs.

Reviewed-by: Filipe Manana <fdmanana@suse.com>
Signed-off-by: Naohiro Aota <naohiro.aota@wdc.com>
Reviewed-by: David Sterba <dsterba@suse.com>
Signed-off-by: David Sterba <dsterba@suse.com>
include/linux/fs.h