Adapt notify_fsnotify to the new interface