Skip to content

Commit 9a02aa4

Browse files
amir73iljankara
authored andcommitted
nfsd: use fsnotify_data_inode() to get the unlinked inode
The inode argument to handle_event() is about to become obsolete. Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Amir Goldstein <[email protected]> Signed-off-by: Jan Kara <[email protected]>
1 parent cbcf47a commit 9a02aa4

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

fs/nfsd/filecache.c

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -599,11 +599,13 @@ static struct notifier_block nfsd_file_lease_notifier = {
599599

600600
static int
601601
nfsd_file_fsnotify_handle_event(struct fsnotify_group *group,
602-
struct inode *inode,
602+
struct inode *to_tell,
603603
u32 mask, const void *data, int data_type,
604604
const struct qstr *file_name, u32 cookie,
605605
struct fsnotify_iter_info *iter_info)
606606
{
607+
struct inode *inode = fsnotify_data_inode(data, data_type);
608+
607609
trace_nfsd_file_fsnotify_handle_event(inode, mask);
608610

609611
/* Should be no marks on non-regular files */

0 commit comments

Comments
 (0)