]> 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>
Wed, 19 Jun 2013 00:05:29 +0000 (10:05 +1000)
committerStephen Rothwell <sfr@canb.auug.org.au>
Wed, 19 Jun 2013 07:12:43 +0000 (17:12 +1000)
commite9a81c77663f982c210da58dfc26207c8c08d732
tree1af38a56375066e7598d228f8346b8794a6a53c1
parenta9948979853c6c0d9221c283336da79d9aec0111
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