Skip to content

fsnotify: unified filesystem notification backend

Eric Paris lkml 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest11 patches 2 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/11fsnotify: unified filesystem notification backendfs/notify/Kconfig fs/notify/Makefile fs/notify/fsnotify.c +5 more+597 -80 replies
2/11fsnotify: add group prioritiesfs/notify/group.c include/linux/fsnotify_backend.h+24 -60 replies
3/11fsnotify: add in inode fsnotify markingsDocumentation/filesystems/fsnotify.txt fs/inode.c fs/notify/Makefile +7 more+543 -22 replies
4/11fsnotify: parent event notificationfs/notify/inode_mark.c include/linux/dcache.h include/linux/fsnotify.h +1 more+119 -40 replies
5/11dnotify: reimplement dnotify using fsnotifyMAINTAINERS fs/notify/dnotify/Kconfig fs/notify/dnotify/dnotify.c +4 more+386 -1730 replies
6/11fsnotify: generic notification queue and waitqfs/notify/fsnotify.h fs/notify/group.c fs/notify/notification.c +1 more+223 -40 replies
7/11fsnotify: include pathnames with entries when possiblefs/notify/fsnotify.c fs/notify/fsnotify.h fs/notify/notification.c +2 more+44 -220 replies
8/11fsnotify: add correlations between eventsfs/notify/fsnotify.c fs/notify/fsnotify.h fs/notify/notification.c +2 more+45 -250 replies
9/11fsnotify: fsnotify marks on inodes pin them in corefs/notify/inode_mark.c+20 -50 replies
10/11fsnotify: handle filesystem unmounts with fsnotify marksfs/inode.c fs/notify/inode_mark.c include/linux/fsnotify_backend.h+79 -00 replies
11/11inotify: reimplement inotify using fsnotifyMAINTAINERS fs/notify/inotify/Kconfig fs/notify/inotify/Makefile +7 more+744 -4780 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [PATCH -v1 00/11] fsnotify: unified filesystem notification backend

Whoops, forgot the cover note. So proceeding is an implementation of fsnotify, a novel unified filesystem notification backend. This patch set implements the backend and converts both dnotify and inotify to this backend. This patch set reduced the size of struct inode if one uses both dnotify and inotify.

I have patches which move the audit functionality which uses inotify to fsnotify and I have patches which implement fanotify, my new on access notification and access decisions to this backend, but just to keep the series small I'm only sending fsnotify, dnotify and inotify changes.

I would love the most careful and scrutinizing eyes on patches 3, 9, 10 which implement the changes to inodes and introduce by far the most complex locking, refcnt, and object lifetimes.

dnotify changes are in patch 5
inotify changes are in patch 11

 Documentation/filesystems/fsnotify.txt |  192 ++++++++++
 MAINTAINERS                            |    4 
 fs/inode.c                             |   10 
 fs/notify/Kconfig                      |   13 
 fs/notify/Makefile                     |    2 
 fs/notify/dnotify/Kconfig              |    1 
 fs/notify/dnotify/dnotify.c            |  449 +++++++++++++++++++-----
 fs/notify/fsnotify.c                   |   91 +++++
 fs/notify/fsnotify.h                   |   28 +
 fs/notify/group.c                      |  207 +++++++++++
 fs/notify/inode_mark.c                 |  330 ++++++++++++++++++
 fs/notify/inotify/Kconfig              |   20 -
 fs/notify/inotify/Makefile             |    2 
 fs/notify/inotify/inotify.h            |  108 +++++
 fs/notify/inotify/inotify_fsnotify.c   |  176 +++++++++
 fs/notify/inotify/inotify_kernel.c     |  236 +++++++++++++
 fs/notify/inotify/inotify_user.c       |  598 ++++++++-------------------------
 fs/notify/notification.c               |  348 +++++++++++++++++++
 include/linux/dcache.h                 |    3 
 include/linux/dnotify.h                |   29 -
 include/linux/fs.h                     |    6 
 include/linux/fsnotify.h               |  255 ++++++++++----
 include/linux/fsnotify_backend.h       |  265 ++++++++++++++
 23 files changed, 2735 insertions(+), 638 deletions(-)