diff options
Diffstat (limited to 'fs/notify/notification.c')
-rw-r--r-- | fs/notify/notification.c | 9 |
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; |