• Jan Kara's avatar
    fsnotify: Remove useless list deletion and comment · 2629718d
    Jan Kara authored
    After removing all the indirection it is clear that
    
    hlist_del_init_rcu(&mark->obj_list);
    
    in fsnotify_destroy_marks() is not needed as the mark gets removed from
    the list shortly afterwards in fsnotify_destroy_mark() ->
    fsnotify_detach_mark() -> fsnotify_detach_from_object(). Also there is
    no problem with mark being visible on object list while we call
    fsnotify_destroy_mark() as parallel destruction of marks from several
    places is properly handled (as mentioned in the comment in
    fsnotify_destroy_marks(). So just remove the list removal and also the
    stale comment.
    Reviewed-by: default avatarMiklos Szeredi <mszeredi@redhat.com>
    Reviewed-by: Amir Goldstein's avatarAmir Goldstein <amir73il@gmail.com>
    Signed-off-by: default avatarJan Kara <jack@suse.cz>
    2629718d
Name
Last commit
Last update
Documentation Loading commit data...
arch Loading commit data...
block Loading commit data...
certs Loading commit data...
crypto Loading commit data...
drivers Loading commit data...
firmware Loading commit data...
fs Loading commit data...
include Loading commit data...
init Loading commit data...
ipc Loading commit data...
kernel Loading commit data...
lib Loading commit data...
mm Loading commit data...
net Loading commit data...
samples Loading commit data...
scripts Loading commit data...
security Loading commit data...
sound Loading commit data...
tools Loading commit data...
usr Loading commit data...
virt Loading commit data...
.cocciconfig Loading commit data...
.get_maintainer.ignore Loading commit data...
.gitattributes Loading commit data...
.gitignore Loading commit data...
.mailmap Loading commit data...
COPYING Loading commit data...
CREDITS Loading commit data...
Kbuild Loading commit data...
Kconfig Loading commit data...
MAINTAINERS Loading commit data...
Makefile Loading commit data...
README Loading commit data...