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 /fs/kernfs | |
parent | 497b0c5a7c0688c1b100a9c2e267337f677c198e (diff) | |
download | lwn-82ace1efb3cb1d49a1681cc6e31156047d5ae1f2.tar.gz lwn-82ace1efb3cb1d49a1681cc6e31156047d5ae1f2.zip |
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 'fs/kernfs')
-rw-r--r-- | fs/kernfs/file.c | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/fs/kernfs/file.c b/fs/kernfs/file.c index 5b1468bc509e..1d185bffc52f 100644 --- a/fs/kernfs/file.c +++ b/fs/kernfs/file.c @@ -910,10 +910,8 @@ repeat: kernfs_put(parent); } - if (!p_inode) { - fsnotify(inode, FS_MODIFY, inode, FSNOTIFY_EVENT_INODE, - NULL, 0); - } + if (!p_inode) + fsnotify_inode(inode, FS_MODIFY); iput(inode); } |