[PATCH 5.15 299/690] fanotify: factor out helper fanotify_mark_update_flags()