]> git.ipfire.org Git - thirdparty/linux.git/commit
fs: create {sb,file}_write_not_started() helpers
authorAmir Goldstein <amir73il@gmail.com>
Wed, 22 Nov 2023 12:27:15 +0000 (14:27 +0200)
committerChristian Brauner <brauner@kernel.org>
Fri, 24 Nov 2023 09:39:19 +0000 (10:39 +0100)
commit21b32e6a0ab5b174fa1ca2fb4c212577cf405d83
treedeb60a18c0741ab4460fe2f15d7baafb4c7d2102
parent3d5cd4911e04683df8f4439fddd788e00a2510a8
fs: create {sb,file}_write_not_started() helpers

Create new helpers {sb,file}_write_not_started() that can be used
to assert that sb_start_write() is not held.

This is needed for fanotify "pre content" events.

Signed-off-by: Amir Goldstein <amir73il@gmail.com>
Link: https://lore.kernel.org/r/20231122122715.2561213-17-amir73il@gmail.com
Reviewed-by: Josef Bacik <josef@toxicpanda.com>
Signed-off-by: Christian Brauner <brauner@kernel.org>
include/linux/fs.h