Files
twx-linux/kernel
Amir Goldstein 1837015788 fsnotify: clarify contract for create event hooks
[ Upstream commit dabe729ddd ]

Clarify argument names and contract for fsnotify_create() and
fsnotify_mkdir() to reflect the anomaly of kernfs, which leaves dentries
negavite after mkdir/create.

Remove the WARN_ON(!inode) in audit code that were added by the Fixes
commit under the wrong assumption that dentries cannot be negative after
mkdir/create.

Fixes: aa93bdc550 ("fsnotify: use helpers to access data by data_type")
Link: https://lore.kernel.org/linux-fsdevel/87mtp5yz0q.fsf@collabora.com/
Link: https://lore.kernel.org/r/20211025192746.66445-4-krisman@collabora.com
Reviewed-by: Jan Kara <jack@suse.cz>
Reported-by: Gabriel Krisman Bertazi <krisman@collabora.com>
Signed-off-by: Amir Goldstein <amir73il@gmail.com>
Signed-off-by: Gabriel Krisman Bertazi <krisman@collabora.com>
Signed-off-by: Jan Kara <jack@suse.cz>
Signed-off-by: Chuck Lever <chuck.lever@oracle.com>
2024-04-10 16:18:49 +02:00
..
2024-03-26 18:21:37 -04:00
2024-02-23 08:54:52 +01:00
2022-12-31 13:14:47 +01:00
2023-12-20 15:17:37 +01:00
2023-11-28 16:56:16 +00:00
2022-12-31 13:14:04 +01:00
2024-03-26 18:21:31 -04:00