fs: add asserting functions for sb_start_{write,pagefault,intwrite}
authorNaohiro Aota <naohiro.aota@wdc.com>
Fri, 18 Feb 2022 04:14:18 +0000 (13:14 +0900)
committerDavid Sterba <dsterba@suse.com>
Mon, 28 Feb 2022 16:01:58 +0000 (17:01 +0100)
commit1e19d3e20329189a96d91fa6d88fbec8ef637174
tree2bdd12dbb4934cf57fec854267f1a5d43b30049c
parente38e4c04d7b7d7cbfe6877493b88637988301083
fs: add asserting functions for sb_start_{write,pagefault,intwrite}

Add a function sb_write_started() to return if sb_start_write() is
properly called. It is used in the next commit.

Also, add the similar 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