On Wed, Feb 1, 2017 at 12:44 PM, Jan Kara <jack@xxxxxxx> wrote: > Currently we free fsnotify_mark_connector structure only when inode / > vfsmount is getting freed. This can however impose noticeable memory > overhead when marks get attached to inodes only temporarily. So free the > connector structure once the last mark is detached from the object. > Since notification infrastructure can be working with the connector > under the protection of fsnotify_mark_srcu, we have to be careful and > free the fsnotify_mark_connector only after SRCU period passes. > > Signed-off-by: Jan Kara <jack@xxxxxxx> you may re-add Reviewed-by: Amir Goldstein <amir73il@xxxxxxxxx>