summaryrefslogtreecommitdiff
path: root/fs/open.c
diff options
context:
space:
mode:
authorEric Paris <eparis@redhat.com>2009-08-13 18:21:10 -0400
committerEric Paris <eparis@redhat.com>2009-11-06 13:18:58 -0500
commitfa9b379188a08b035734da082ef41cbcbf6f8f0b (patch)
tree68c2248cb050b363d0ef3edc2a1fbd3f914a88a8 /fs/open.c
parentf0934f20b9bd43ba5503f793f88f8a61958177b3 (diff)
fsnotify: pass a file instead of an inode to open, read, and write
fanotify, the upcoming notification system actually needs a struct path so it can do opens in the context of listeners, and it needs a file so it can get f_flags from the original process. Close was the only operation that already was passing a struct file to the notification hook. This patch passes a file for access, modify, and open as well as they are easily available to these hooks. Signed-off-by: Eric Paris <eparis@redhat.com>
Diffstat (limited to 'fs/open.c')
-rw-r--r--fs/open.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/open.c b/fs/open.c
index 4f01e06227c6..c064e7be15e5 100644
--- a/fs/open.c
+++ b/fs/open.c
@@ -1041,7 +1041,7 @@ long do_sys_open(int dfd, const char __user *filename, int flags, int mode)
put_unused_fd(fd);
fd = PTR_ERR(f);
} else {
- fsnotify_open(f->f_path.dentry);
+ fsnotify_open(f);
fd_install(fd, f);
}
}