diff options
| author | Sun Jian <sun.jian.kdev@gmail.com> | 2026-02-14 08:12:17 +0300 |
|---|---|---|
| committer | Jan Kara <jack@suse.cz> | 2026-02-26 17:19:31 +0300 |
| commit | 4520b96b8136ba2465a3f4dc5c3fb8bdf3d92e4e (patch) | |
| tree | 01f7c989641d219967d59727f9f57fb461077621 | |
| parent | 66052a768d4726a31e939b5ac902f2b0b452c8d5 (diff) | |
| download | linux-4520b96b8136ba2465a3f4dc5c3fb8bdf3d92e4e.tar.xz | |
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>
| -rw-r--r-- | fs/notify/inotify/inotify_user.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/notify/inotify/inotify_user.c b/fs/notify/inotify/inotify_user.c index 2edac3b39178..ed37491c1618 100644 --- a/fs/notify/inotify/inotify_user.c +++ b/fs/notify/inotify/inotify_user.c @@ -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); } |
