diff options
author | Eric Paris <eparis@redhat.com> | 2009-12-17 21:24:27 -0500 |
---|---|---|
committer | Eric Paris <eparis@redhat.com> | 2010-07-28 09:58:57 -0400 |
commit | 5444e2981c31d0ed7465475e451b8437084337e5 (patch) | |
tree | 66b6d84b7aab886b44a3467a139d258d9aba09df /fs/notify/inotify | |
parent | 32c3263221bd63316815286dccacdc7abfd7f3c4 (diff) |
fsnotify: split generic and inode specific mark code
currently all marking is done by functions in inode-mark.c. Some of this
is pretty generic and should be instead done in a generic function and we
should only put the inode specific code in inode-mark.c
Signed-off-by: Eric Paris <eparis@redhat.com>
Diffstat (limited to 'fs/notify/inotify')
-rw-r--r-- | fs/notify/inotify/inotify_fsnotify.c | 4 | ||||
-rw-r--r-- | fs/notify/inotify/inotify_user.c | 4 |
2 files changed, 4 insertions, 4 deletions
diff --git a/fs/notify/inotify/inotify_fsnotify.c b/fs/notify/inotify/inotify_fsnotify.c index cc8f6bcbb4a3..1d237e1bf7b1 100644 --- a/fs/notify/inotify/inotify_fsnotify.c +++ b/fs/notify/inotify/inotify_fsnotify.c | |||
@@ -97,7 +97,7 @@ static int inotify_handle_event(struct fsnotify_group *group, struct fsnotify_ev | |||
97 | 97 | ||
98 | to_tell = event->to_tell; | 98 | to_tell = event->to_tell; |
99 | 99 | ||
100 | fsn_mark = fsnotify_find_mark(group, to_tell); | 100 | fsn_mark = fsnotify_find_inode_mark(group, to_tell); |
101 | /* race with watch removal? We already passes should_send */ | 101 | /* race with watch removal? We already passes should_send */ |
102 | if (unlikely(!fsn_mark)) | 102 | if (unlikely(!fsn_mark)) |
103 | return 0; | 103 | return 0; |
@@ -145,7 +145,7 @@ static bool inotify_should_send_event(struct fsnotify_group *group, struct inode | |||
145 | struct fsnotify_mark *fsn_mark; | 145 | struct fsnotify_mark *fsn_mark; |
146 | bool send; | 146 | bool send; |
147 | 147 | ||
148 | fsn_mark = fsnotify_find_mark(group, inode); | 148 | fsn_mark = fsnotify_find_inode_mark(group, inode); |
149 | if (!fsn_mark) | 149 | if (!fsn_mark) |
150 | return false; | 150 | return false; |
151 | 151 | ||
diff --git a/fs/notify/inotify/inotify_user.c b/fs/notify/inotify/inotify_user.c index ad5a1ea7827e..a12315a7553d 100644 --- a/fs/notify/inotify/inotify_user.c +++ b/fs/notify/inotify/inotify_user.c | |||
@@ -566,7 +566,7 @@ static int inotify_update_existing_watch(struct fsnotify_group *group, | |||
566 | if (unlikely(!mask)) | 566 | if (unlikely(!mask)) |
567 | return -EINVAL; | 567 | return -EINVAL; |
568 | 568 | ||
569 | fsn_mark = fsnotify_find_mark(group, inode); | 569 | fsn_mark = fsnotify_find_inode_mark(group, inode); |
570 | if (!fsn_mark) | 570 | if (!fsn_mark) |
571 | return -ENOENT; | 571 | return -ENOENT; |
572 | 572 | ||
@@ -644,7 +644,7 @@ static int inotify_new_watch(struct fsnotify_group *group, | |||
644 | goto out_err; | 644 | goto out_err; |
645 | 645 | ||
646 | /* we are on the idr, now get on the inode */ | 646 | /* we are on the idr, now get on the inode */ |
647 | ret = fsnotify_add_mark(&tmp_i_mark->fsn_mark, group, inode, 0); | 647 | ret = fsnotify_add_mark(&tmp_i_mark->fsn_mark, group, inode, NULL, 0); |
648 | if (ret) { | 648 | if (ret) { |
649 | /* we failed to get on the inode, get off the idr */ | 649 | /* we failed to get on the inode, get off the idr */ |
650 | inotify_remove_from_idr(group, tmp_i_mark); | 650 | inotify_remove_from_idr(group, tmp_i_mark); |