fs: add asserting functions for sb_start_{write,pagefault,intwrite}
authorNaohiro Aota <naohiro.aota@wdc.com>
Thu, 10 Feb 2022 05:59:04 +0000 (14:59 +0900)
committerDavid Sterba <dsterba@suse.com>
Tue, 15 Feb 2022 15:55:43 +0000 (16:55 +0100)
commitd5f9e56c77d13dbac05a82929dc222d0f454d6aa
tree1c1b8d0e8ce6c52a269320626f8b97f3c4000039
parente6c69fcbee7ef1d7bde4ff78eb1377dbe09d71cf
fs: add asserting functions for sb_start_{write,pagefault,intwrite}

Add an assert function sb_assert_write_started() to check if
sb_start_write() is properly called. It is used in the next commit.

Also, add the assert functions for sb_start_pagefault() and
sb_start_intwrite().

Reviewed-by: Johannes Thumshirn <johannes.thumshirn@wdc.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