aboutsummaryrefslogtreecommitdiffstats
path: root/fs/notify/notification.c
diff options
context:
space:
mode:
authorAndreas Gruenbacher <agruen@suse.de>2009-12-17 21:24:24 -0500
committerEric Paris <eparis@redhat.com>2010-07-28 09:58:53 -0400
commit72acc854427948efed7a83da27f7dc3239ac9afc (patch)
tree69a8f479a644701a52abe07d7bf2751cdf4cc159 /fs/notify/notification.c
parent098cf2fc77ee190c92bf9d08d69a13305f2487ec (diff)
fsnotify: kill FSNOTIFY_EVENT_FILE
Some fsnotify operations send a struct file. This is more information than we technically need. We instead send a struct path in all cases instead of sometimes a path and sometimes a file. Signed-off-by: Andreas Gruenbacher <agruen@suse.de> Signed-off-by: Eric Paris <eparis@redhat.com>
Diffstat (limited to 'fs/notify/notification.c')
-rw-r--r--fs/notify/notification.c9
1 files changed, 0 insertions, 9 deletions
diff --git a/fs/notify/notification.c b/fs/notify/notification.c
index dafd0b7687b8..066f1f988bac 100644
--- a/fs/notify/notification.c
+++ b/fs/notify/notification.c
@@ -390,15 +390,6 @@ struct fsnotify_event *fsnotify_create_event(struct inode *to_tell, __u32 mask,
390 event->data_type = data_type; 390 event->data_type = data_type;
391 391
392 switch (data_type) { 392 switch (data_type) {
393 case FSNOTIFY_EVENT_FILE: {
394 struct file *file = data;
395 struct path *path = &file->f_path;
396 event->path.dentry = path->dentry;
397 event->path.mnt = path->mnt;
398 path_get(&event->path);
399 event->data_type = FSNOTIFY_EVENT_PATH;
400 break;
401 }
402 case FSNOTIFY_EVENT_PATH: { 393 case FSNOTIFY_EVENT_PATH: {
403 struct path *path = data; 394 struct path *path = data;
404 event->path.dentry = path->dentry; 395 event->path.dentry = path->dentry;