mbox series

[0/6] Prepare for fanotify name events

Message ID 20200114151655.29473-1-amir73il@gmail.com (mailing list archive)
Headers show
Series Prepare for fanotify name events | expand


Amir Goldstein Jan. 14, 2020, 3:16 p.m. UTC

Fanotify name event patches are ready at [1].
I am still updating the tests and the demo.

In the mean while, I wanted to post these few prep patches including
two bug fixes, so perhaps you will be able to process them in time for

Patches 1-4 are just cleanup and minor re-factoring in prep for the
name event patches.

Patches 5-6 are fixes for minor bug that I found during the work.
I improved ltp tests fanotify09 and fanotify15 to cover these bugs [2].

I did not mark those patches for stable, because backporting is not
trivial and the bugs are really minor.  For the same reason, I did
not bother to provide bug fix patches that are not dependent on the
cleanup patches, although that might have been possible to do.


[1] https://github.com/amir73il/linux/commits/fanotify_name
[2] https://github.com/amir73il/ltp/commits/fsnotify-fixes

Amir Goldstein (6):
  fsnotify: tidy up FS_ and FAN_ constants
  fsnotify: pass dentry instead of inode for events possible on child
  fsnotify: simplify arguments passing to fsnotify_parent()
  fsnotify: replace inode pointer with tag
  fanotify: merge duplicate events on parent and child
  fanotify: fix merging marks masks with FAN_ONDIR

 fs/notify/fanotify/fanotify.c        | 36 ++++++++++++++++++++--------
 fs/notify/fsnotify.c                 | 21 ++++++++--------
 fs/notify/inotify/inotify_fsnotify.c |  2 +-
 include/linux/fsnotify.h             | 26 ++++++++------------
 include/linux/fsnotify_backend.h     | 34 +++++++++++++-------------
 include/uapi/linux/fanotify.h        |  4 ++--
 kernel/audit_fsnotify.c              |  5 +++-
 kernel/audit_watch.c                 |  5 +++-
 8 files changed, 73 insertions(+), 60 deletions(-)