]> git.karo-electronics.de Git - karo-tx-linux.git/commit
fanotify: put duplicate code for adding vfsmount/inode marks into an own function
authorLino Sanfilippo <LinoSanfilippo@gmx.de>
Thu, 27 Jun 2013 23:50:55 +0000 (09:50 +1000)
committerStephen Rothwell <sfr@canb.auug.org.au>
Fri, 28 Jun 2013 06:37:11 +0000 (16:37 +1000)
commitc4298548dccd2ba72275a2b05645a5ec63a47e80
tree75475ff9794f3f64a0ef7dbee8ecb021d65c31bf
parent1a06798d4c7f317658805dc93984a23c125aee35
fanotify: put duplicate code for adding vfsmount/inode marks into an own function

The code under the groups mark_mutex in fanotify_add_inode_mark() and
fanotify_add_vfsmount_mark() is almost identical.  So put it into a
seperate function.

Signed-off-by: Lino Sanfilippo <LinoSanfilippo@gmx.de>
Cc: Eric Paris <eparis@redhat.com>
Cc: Al Viro <viro@zeniv.linux.org.uk>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
fs/notify/fanotify/fanotify_user.c