Skip to content

Fsnotify cleanup - part 2

Amir Goldstein linux-fsdevel 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v4 Latest5 patches 4 repliesIn review

Changes in v4 from the cover letter

- Some cleanup patches already merged to v4.18-rc1
- Replace struct fsnotify_obj with fsnotify_connp_t type
- Leave explicit connector pointer in struct inode (Linus)
- Use helper to get mask from any connector type

Patches in v4 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/5fsnotify: use typedef fsnotify_connp_t for brevityfs/notify/fsnotify.h fs/notify/mark.c include/linux/fsnotify_backend.h+15 -163 replies
2/5fsnotify: pass connp and object type to fsnotify_add_mark()fs/notify/fanotify/fanotify_user.c fs/notify/fsnotify.h fs/notify/mark.c +1 more+52 -390 replies
3/5fsnotify: let connector point to an abstract objectfs/notify/fdinfo.c fs/notify/fsnotify.h fs/notify/mark.c +2 more+45 -370 replies
4/5fsnotify: add helper to get mask from connectorfs/notify/fanotify/fanotify_user.c fs/notify/mark.c include/linux/fsnotify_backend.h+31 -120 replies
5/5fanotify: factor out helpers to add/remove markfs/notify/fanotify/fanotify_user.c+29 -570 replies

Reviews trailers per patch

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

Read the v4 thread

Cover letter [PATCH v4 0/5] Fsnotify cleanup - part 2

Jan,

This is the part of the series that was not merged to v4.18-rc1, after addressing Linus' concerns. We already had several review cycles on the branch in my tree since v3, but this is 4th official posting.

Note that per your request, I changed fsnotify_obj_{inode,mount} to fsnotify_conn_{inode,mount}, but that was easier to do after the patch that introduces obj->conn, so the helpers fsnotify_obj_{inode,mount} are added and then modified.

Thanks,
Amir.

Changes since v3:
- Some cleanup patches already merged to v4.18-rc1
- Replace struct fsnotify_obj with fsnotify_connp_t type
- Leave explicit connector pointer in struct inode (Linus)
- Use helper to get mask from any connector type

Amir Goldstein (5):
fsnotify: use typedef fsnotify_connp_t for brevity
fsnotify: pass connp and object type to fsnotify_add_mark()
fsnotify: let connector point to an abstract object
fsnotify: add helper to get mask from connector
fanotify: factor out helpers to add/remove mark

 fs/notify/fanotify/fanotify_user.c |  99 +++++++++++++----------------------
 fs/notify/fdinfo.c                 |   8 +--
 fs/notify/fsnotify.h               |  16 +++++-
 fs/notify/mark.c                   | 103 ++++++++++++++++++++-----------------
 include/linux/fsnotify_backend.h   |  40 +++++++++-----
 kernel/audit_tree.c                |  17 +++---
 6 files changed, 147 insertions(+), 136 deletions(-)
Signature · 1 line
2.7.4