]> git.ipfire.org Git - thirdparty/linux.git/commit
ext4: convert to new fserror helpers
authorDarrick J. Wong <djwong@kernel.org>
Tue, 13 Jan 2026 00:32:27 +0000 (16:32 -0800)
committerChristian Brauner <brauner@kernel.org>
Tue, 13 Jan 2026 08:58:01 +0000 (09:58 +0100)
commit81d2e13a57c9d73582527966fae24d4fd73826ca
treee52c3eb668b2516eaa58e4cb6f38439c4c076a54
parent94503211d2fdcc5183d01c2719258a7795cdecb0
ext4: convert to new fserror helpers

Use the new fserror functions to report metadata errors to fsnotify.
Note that ext4 inconsistently passes around negative and positive error
numbers all over the codebase, so we force them all to negative for
consistency in what we report to fserror, and fserror ensures that only
positive error numbers are passed to fanotify, per the fanotify(7)
manpage.

Signed-off-by: Darrick J. Wong <djwong@kernel.org>
Link: https://patch.msgid.link/176826402693.3490369.5875002879192895558.stgit@frogsfrogsfrogs
Reviewed-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: Jan Kara <jack@suse.cz>
Signed-off-by: Christian Brauner <brauner@kernel.org>
fs/ext4/ioctl.c
fs/ext4/super.c