Commit 52366a10 authored by Linus Torvalds's avatar Linus Torvalds

Merge tag 'fsnotify_for_v5.8-rc3' of git://git.kernel.org/pub/scm/linux/kernel/git/jack/linux-fs

Pull fsnotify fixlet from Jan Kara:
 "A performance improvement to reduce impact of fsnotify for inodes
  where it isn't used"

* tag 'fsnotify_for_v5.8-rc3' of git://git.kernel.org/pub/scm/linux/kernel/git/jack/linux-fs:
  fs: Do not check if there is a fsnotify watcher on pseudo inodes
parents 87d93e9a e9c15bad
...@@ -230,7 +230,7 @@ struct file *alloc_file_pseudo(struct inode *inode, struct vfsmount *mnt, ...@@ -230,7 +230,7 @@ struct file *alloc_file_pseudo(struct inode *inode, struct vfsmount *mnt,
d_set_d_op(path.dentry, &anon_ops); d_set_d_op(path.dentry, &anon_ops);
path.mnt = mntget(mnt); path.mnt = mntget(mnt);
d_instantiate(path.dentry, inode); d_instantiate(path.dentry, inode);
file = alloc_file(&path, flags, fops); file = alloc_file(&path, flags | FMODE_NONOTIFY, fops);
if (IS_ERR(file)) { if (IS_ERR(file)) {
ihold(inode); ihold(inode);
path_put(&path); path_put(&path);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment