diff options
author | Amir Goldstein <amir73il@gmail.com> | 2020-07-22 15:58:44 +0300 |
---|---|---|
committer | Jan Kara <jack@suse.cz> | 2020-07-27 23:13:51 +0200 |
commit | 82ace1efb3cb1d49a1681cc6e31156047d5ae1f2 (patch) | |
tree | 1d0f8cc34211dfe9aa9c29e36b758d004043a38b /kernel/trace | |
parent | 497b0c5a7c0688c1b100a9c2e267337f677c198e (diff) |
fsnotify: create helper fsnotify_inode()
Simple helper to consolidate biolerplate code.
Link: https://lore.kernel.org/r/20200722125849.17418-5-amir73il@gmail.com
Signed-off-by: Amir Goldstein <amir73il@gmail.com>
Signed-off-by: Jan Kara <jack@suse.cz>
Diffstat (limited to 'kernel/trace')
-rw-r--r-- | kernel/trace/trace.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/kernel/trace/trace.c b/kernel/trace/trace.c index bb62269724d5..0c655c039506 100644 --- a/kernel/trace/trace.c +++ b/kernel/trace/trace.c @@ -1543,8 +1543,7 @@ static void latency_fsnotify_workfn(struct work_struct *work) { struct trace_array *tr = container_of(work, struct trace_array, fsnotify_work); - fsnotify(tr->d_max_latency->d_inode, FS_MODIFY, - tr->d_max_latency->d_inode, FSNOTIFY_EVENT_INODE, NULL, 0); + fsnotify_inode(tr->d_max_latency->d_inode, FS_MODIFY); } static void latency_fsnotify_workfn_irq(struct irq_work *iwork) |