Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

fsnotify: inotify: pass mark connector to fsnotify_recalc_mask()

fsnotify_recalc_mask() expects a plain struct fsnotify_mark_connector *,
but inode->i_fsnotify_marks is an __rcu pointer. Use fsn_mark->connector
instead to avoid sparse "different address spaces" warnings.

Signed-off-by: Sun Jian <sun.jian.kdev@gmail.com>
Link: https://patch.msgid.link/20260214051217.1381363-1-sun.jian.kdev@gmail.com
Signed-off-by: Jan Kara <jack@suse.cz>

authored by

Sun Jian and committed by
Jan Kara
4520b96b 66052a76

+1 -1
+1 -1
fs/notify/inotify/inotify_user.c
··· 573 573 574 574 /* update the inode with this new fsn_mark */ 575 575 if (dropped || do_inode) 576 - fsnotify_recalc_mask(inode->i_fsnotify_marks); 576 + fsnotify_recalc_mask(fsn_mark->connector); 577 577 578 578 } 579 579