Skip to content

Commit

Permalink
nfsd: use fsnotify_data_inode() to get the unlinked inode
Browse files Browse the repository at this point in the history
The inode argument to handle_event() is about to become obsolete.

Link: https://lore.kernel.org/r/20200708111156.24659-4-amir73il@gmail.com
Signed-off-by: Amir Goldstein <amir73il@gmail.com>
Signed-off-by: Jan Kara <jack@suse.cz>
  • Loading branch information
amir73il authored and jankara committed Jul 15, 2020
1 parent cbcf47a commit 9a02aa4
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion fs/nfsd/filecache.c
Original file line number Diff line number Diff line change
Expand Up @@ -599,11 +599,13 @@ static struct notifier_block nfsd_file_lease_notifier = {

static int
nfsd_file_fsnotify_handle_event(struct fsnotify_group *group,
struct inode *inode,
struct inode *to_tell,
u32 mask, const void *data, int data_type,
const struct qstr *file_name, u32 cookie,
struct fsnotify_iter_info *iter_info)
{
struct inode *inode = fsnotify_data_inode(data, data_type);

trace_nfsd_file_fsnotify_handle_event(inode, mask);

/* Should be no marks on non-regular files */
Expand Down

0 comments on commit 9a02aa4

Please sign in to comment.