]> git.baikalelectronics.ru Git - kernel.git/commit
fsnotify: pass a file instead of an inode to open, read, and write
authorEric Paris <eparis@redhat.com>
Fri, 18 Dec 2009 02:24:21 +0000 (21:24 -0500)
committerEric Paris <eparis@redhat.com>
Wed, 28 Jul 2010 13:58:32 +0000 (09:58 -0400)
commitd0ef998274e7cadff79846672d899bb82682c5f3
tree12817004ae9667bf83f869606f38050636edeb61
parent4aed2a2cadee1f4d7de13f8087e4e83aa67bdc61
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>
fs/compat.c
fs/exec.c
fs/nfsd/vfs.c
fs/open.c
fs/read_write.c
include/linux/fsnotify.h