projects
/
linux.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
cbcf47a
)
nfsd: use fsnotify_data_inode() to get the unlinked inode
author
Amir Goldstein
<amir73il@gmail.com>
Wed, 8 Jul 2020 11:11:39 +0000
(14:11 +0300)
committer
Jan Kara
<jack@suse.cz>
Wed, 15 Jul 2020 15:36:47 +0000
(17:36 +0200)
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>
fs/nfsd/filecache.c
patch
|
blob
|
history
diff --git
a/fs/nfsd/filecache.c
b/fs/nfsd/filecache.c
index 82198d747c4c9d14784ce40f968c3916e8bccdb9..ace8e5c30952882d44fd11d1fcedc30b0d052b31 100644
(file)
--- a/
fs/nfsd/filecache.c
+++ b/
fs/nfsd/filecache.c
@@
-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 */