]> www.infradead.org Git - users/jedix/linux-maple.git/commit
fsnotify: pass optional file access range in pre-content event
authorAmir Goldstein <amir73il@gmail.com>
Fri, 15 Nov 2024 15:30:21 +0000 (10:30 -0500)
committerJan Kara <jack@suse.cz>
Tue, 10 Dec 2024 11:03:17 +0000 (12:03 +0100)
commit9740d17162deca7138fad7dcf3ef52324832c32b
tree00b752792ae6101ccd4079a4b7bb000d97493886
parentf156524e5d72c81792eee81f828784dc8a37a7f2
fsnotify: pass optional file access range in pre-content event

We would like to add file range information to pre-content events.

Pass a struct file_range with offset and length to event handler
along with pre-content permission event.

The offset and length are aligned to page size, but we may need to
align them to minimum folio size for filesystems with large block size.

Signed-off-by: Amir Goldstein <amir73il@gmail.com>
Signed-off-by: Jan Kara <jack@suse.cz>
Link: https://patch.msgid.link/88eddee301231d814aede27fb4d5b41ae37c9702.1731684329.git.josef@toxicpanda.com
fs/notify/fanotify/fanotify.c
fs/notify/fanotify/fanotify.h
fs/notify/fsnotify.c
include/linux/fsnotify.h
include/linux/fsnotify_backend.h