Skip to content

Commit 4520b96

Browse files
ahjf-07jankara
authored andcommitted
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 <[email protected]> Link: https://patch.msgid.link/[email protected] Signed-off-by: Jan Kara <[email protected]>
1 parent 66052a7 commit 4520b96

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

fs/notify/inotify/inotify_user.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -573,7 +573,7 @@ static int inotify_update_existing_watch(struct fsnotify_group *group,
573573

574574
/* update the inode with this new fsn_mark */
575575
if (dropped || do_inode)
576-
fsnotify_recalc_mask(inode->i_fsnotify_marks);
576+
fsnotify_recalc_mask(fsn_mark->connector);
577577

578578
}
579579

0 commit comments

Comments
 (0)