diff options
author | Amir Goldstein <amir73il@gmail.com> | 2020-07-08 14:11:38 +0300 |
---|---|---|
committer | Jan Kara <jack@suse.cz> | 2020-07-15 17:36:45 +0200 |
commit | cbcf47adc8aadbcaa741391ccfd96f764b50be7e (patch) | |
tree | d6b816f967e7c570f0865241475c3dd0ab0d180f /fs/notify/fanotify | |
parent | c738fbabb0ff62d0f9a9572e56e65d05a1b34c6a (diff) | |
download | lwn-cbcf47adc8aadbcaa741391ccfd96f764b50be7e.tar.gz lwn-cbcf47adc8aadbcaa741391ccfd96f764b50be7e.zip |
fsnotify: return non const from fsnotify_data_inode()
Return non const inode pointer from fsnotify_data_inode().
None of the fsnotify hooks pass const inode pointer as data and
callers often need to cast to a non const pointer.
Link: https://lore.kernel.org/r/20200708111156.24659-3-amir73il@gmail.com
Signed-off-by: Amir Goldstein <amir73il@gmail.com>
Signed-off-by: Jan Kara <jack@suse.cz>
Diffstat (limited to 'fs/notify/fanotify')
-rw-r--r-- | fs/notify/fanotify/fanotify.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/notify/fanotify/fanotify.c b/fs/notify/fanotify/fanotify.c index 85eda539b35f..d9fc83dd994a 100644 --- a/fs/notify/fanotify/fanotify.c +++ b/fs/notify/fanotify/fanotify.c @@ -341,7 +341,7 @@ static struct inode *fanotify_fid_inode(struct inode *to_tell, u32 event_mask, if (event_mask & ALL_FSNOTIFY_DIRENT_EVENTS) return to_tell; - return (struct inode *)fsnotify_data_inode(data, data_type); + return fsnotify_data_inode(data, data_type); } struct fanotify_event *fanotify_alloc_event(struct fsnotify_group *group, |