diff options
Diffstat (limited to 'fs/notify/dnotify/dnotify.c')
| -rw-r--r-- | fs/notify/dnotify/dnotify.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/fs/notify/dnotify/dnotify.c b/fs/notify/dnotify/dnotify.c index 63a1ca4b9dee..e2bea2ac5dfb 100644 --- a/fs/notify/dnotify/dnotify.c +++ b/fs/notify/dnotify/dnotify.c | |||
| @@ -79,12 +79,11 @@ static void dnotify_recalc_inode_mask(struct fsnotify_mark *fsn_mark) | |||
| 79 | */ | 79 | */ |
| 80 | static int dnotify_handle_event(struct fsnotify_group *group, | 80 | static int dnotify_handle_event(struct fsnotify_group *group, |
| 81 | struct inode *inode, | 81 | struct inode *inode, |
| 82 | struct fsnotify_mark *inode_mark, | ||
| 83 | struct fsnotify_mark *vfsmount_mark, | ||
| 84 | u32 mask, const void *data, int data_type, | 82 | u32 mask, const void *data, int data_type, |
| 85 | const unsigned char *file_name, u32 cookie, | 83 | const unsigned char *file_name, u32 cookie, |
| 86 | struct fsnotify_iter_info *iter_info) | 84 | struct fsnotify_iter_info *iter_info) |
| 87 | { | 85 | { |
| 86 | struct fsnotify_mark *inode_mark = fsnotify_iter_inode_mark(iter_info); | ||
| 88 | struct dnotify_mark *dn_mark; | 87 | struct dnotify_mark *dn_mark; |
| 89 | struct dnotify_struct *dn; | 88 | struct dnotify_struct *dn; |
| 90 | struct dnotify_struct **prev; | 89 | struct dnotify_struct **prev; |
| @@ -95,7 +94,8 @@ static int dnotify_handle_event(struct fsnotify_group *group, | |||
| 95 | if (!S_ISDIR(inode->i_mode)) | 94 | if (!S_ISDIR(inode->i_mode)) |
| 96 | return 0; | 95 | return 0; |
| 97 | 96 | ||
| 98 | BUG_ON(vfsmount_mark); | 97 | if (WARN_ON(fsnotify_iter_vfsmount_mark(iter_info))) |
| 98 | return 0; | ||
| 99 | 99 | ||
| 100 | dn_mark = container_of(inode_mark, struct dnotify_mark, fsn_mark); | 100 | dn_mark = container_of(inode_mark, struct dnotify_mark, fsn_mark); |
| 101 | 101 | ||
| @@ -319,7 +319,7 @@ int fcntl_dirnotify(int fd, struct file *filp, unsigned long arg) | |||
| 319 | dn_mark = container_of(fsn_mark, struct dnotify_mark, fsn_mark); | 319 | dn_mark = container_of(fsn_mark, struct dnotify_mark, fsn_mark); |
| 320 | spin_lock(&fsn_mark->lock); | 320 | spin_lock(&fsn_mark->lock); |
| 321 | } else { | 321 | } else { |
| 322 | error = fsnotify_add_mark_locked(new_fsn_mark, inode, NULL, 0); | 322 | error = fsnotify_add_inode_mark_locked(new_fsn_mark, inode, 0); |
| 323 | if (error) { | 323 | if (error) { |
| 324 | mutex_unlock(&dnotify_group->mark_mutex); | 324 | mutex_unlock(&dnotify_group->mark_mutex); |
| 325 | goto out_err; | 325 | goto out_err; |
