On Mon, Jun 11, 2018 at 7:38 PM, Amir Goldstein <amir73il@xxxxxxxxx> wrote: > On Mon, Jun 11, 2018 at 7:03 PM, Jan Kara <jack@xxxxxxx> wrote: >> On Mon 11-06-18 16:58:14, Amir Goldstein wrote: >>> On Mon, Jun 11, 2018 at 4:36 PM, Jan Kara <jack@xxxxxxx> wrote: >>> > > I reworked the cleanup patches to get rid of fsnotify_obj and pushed to: >>> > > https://github.com/amir73il/linux.git fsnotify-cleanup >>> > >>> > Thanks! >>> > >>> > > Only last 5 patches from fsnotify_for_v4.18-rc1 have been modified >>> > > and I removed your S-O-B from the modified patches. >>> > > >>> > > This leaves struct inode unchanged, in fact no changes to code outside >>> > > fsnotify/audit at all. >>> > > >>> > > mask is now a member of connector for the purpose of generalizing >>> > > add/remove mark, but struct inode/mount still have a copy of the mask >>> > > for the purpose of the VFS optimizations. >>> > >>> > Looking through those patches, is it really beneficial to add mask to >>> > connector when you keep it in inode / vfsmount? A helper function to get >>> > mask from connector would make the same refactoring possible as well, won't >>> > it? >>> > >>> > And adding a helper function to set mask given connector would get rid of >>> > the remaining checks for connector type due to mask manipulations... >>> > >>> >>> By moving the checks for object type into the helper? >> >> Yes, that's what I meant. >> Force pushed cleaner cleanup with helper to same branch. Naturally, that one also passes the LTP tests. Thanks! Amir.