Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

fsnotify: remove unused parameter from send_to_group()

We don't use "mnt" anymore in send_to_group() after 1968f5eed5 ("fanotify:
use both marks when possible") was applied.

Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
Cc: Al Viro <viro@zeniv.linux.org.uk>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>

authored by

Dan Carpenter and committed by
Al Viro
fd657170 a4f9a9a6

+6 -6
+6 -6
fs/notify/fsnotify.c
··· 123 123 } 124 124 EXPORT_SYMBOL_GPL(__fsnotify_parent); 125 125 126 - static int send_to_group(struct inode *to_tell, struct vfsmount *mnt, 126 + static int send_to_group(struct inode *to_tell, 127 127 struct fsnotify_mark *inode_mark, 128 128 struct fsnotify_mark *vfsmount_mark, 129 129 __u32 mask, void *data, ··· 168 168 vfsmount_test_mask &= ~inode_mark->ignored_mask; 169 169 } 170 170 171 - pr_debug("%s: group=%p to_tell=%p mnt=%p mask=%x inode_mark=%p" 171 + pr_debug("%s: group=%p to_tell=%p mask=%x inode_mark=%p" 172 172 " inode_test_mask=%x vfsmount_mark=%p vfsmount_test_mask=%x" 173 173 " data=%p data_is=%d cookie=%d event=%p\n", 174 - __func__, group, to_tell, mnt, mask, inode_mark, 174 + __func__, group, to_tell, mask, inode_mark, 175 175 inode_test_mask, vfsmount_mark, vfsmount_test_mask, data, 176 176 data_is, cookie, *event); 177 177 ··· 258 258 259 259 if (inode_group > vfsmount_group) { 260 260 /* handle inode */ 261 - ret = send_to_group(to_tell, NULL, inode_mark, NULL, mask, data, 261 + ret = send_to_group(to_tell, inode_mark, NULL, mask, data, 262 262 data_is, cookie, file_name, &event); 263 263 /* we didn't use the vfsmount_mark */ 264 264 vfsmount_group = NULL; 265 265 } else if (vfsmount_group > inode_group) { 266 - ret = send_to_group(to_tell, &mnt->mnt, NULL, vfsmount_mark, mask, data, 266 + ret = send_to_group(to_tell, NULL, vfsmount_mark, mask, data, 267 267 data_is, cookie, file_name, &event); 268 268 inode_group = NULL; 269 269 } else { 270 - ret = send_to_group(to_tell, &mnt->mnt, inode_mark, vfsmount_mark, 270 + ret = send_to_group(to_tell, inode_mark, vfsmount_mark, 271 271 mask, data, data_is, cookie, file_name, 272 272 &event); 273 273 }