mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-30 11:41:38 -04:00
fsnotify: add fsnotify_add_inode_mark() wrappers
Before changing the arguments of the functions fsnotify_add_mark() and fsnotify_add_mark_locked(), convert most callers to use a wrapper. Signed-off-by: Amir Goldstein <[email protected]> Signed-off-by: Jan Kara <[email protected]>
This commit is contained in:
parent
837a393438
commit
b249f5be61
6 changed files with 24 additions and 10 deletions
|
|
@ -319,7 +319,7 @@ int fcntl_dirnotify(int fd, struct file *filp, unsigned long arg)
|
|||
dn_mark = container_of(fsn_mark, struct dnotify_mark, fsn_mark);
|
||||
spin_lock(&fsn_mark->lock);
|
||||
} else {
|
||||
error = fsnotify_add_mark_locked(new_fsn_mark, inode, NULL, 0);
|
||||
error = fsnotify_add_inode_mark_locked(new_fsn_mark, inode, 0);
|
||||
if (error) {
|
||||
mutex_unlock(&dnotify_group->mark_mutex);
|
||||
goto out_err;
|
||||
|
|
|
|||
|
|
@ -582,7 +582,7 @@ static int inotify_new_watch(struct fsnotify_group *group,
|
|||
}
|
||||
|
||||
/* we are on the idr, now get on the inode */
|
||||
ret = fsnotify_add_mark_locked(&tmp_i_mark->fsn_mark, inode, NULL, 0);
|
||||
ret = fsnotify_add_inode_mark_locked(&tmp_i_mark->fsn_mark, inode, 0);
|
||||
if (ret) {
|
||||
/* we failed to get on the inode, get off the idr */
|
||||
inotify_remove_from_idr(group, tmp_i_mark);
|
||||
|
|
|
|||
Loading…
Reference in a new issue