mirror of
https://github.com/torvalds/linux.git
synced 2026-05-12 16:18:45 +02:00
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>
This commit is contained in:
parent
66052a768d
commit
4520b96b81
|
|
@ -573,7 +573,7 @@ static int inotify_update_existing_watch(struct fsnotify_group *group,
|
|||
|
||||
/* update the inode with this new fsn_mark */
|
||||
if (dropped || do_inode)
|
||||
fsnotify_recalc_mask(inode->i_fsnotify_marks);
|
||||
fsnotify_recalc_mask(fsn_mark->connector);
|
||||
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user