vfs: export check_sticky()
authorMiklos Szeredi <mszeredi@suse.cz>
Thu, 23 Oct 2014 22:14:36 +0000 (00:14 +0200)
committerMiklos Szeredi <mszeredi@suse.cz>
Thu, 23 Oct 2014 22:14:36 +0000 (00:14 +0200)
It's already duplicated in btrfs and about to be used in overlayfs too.

Move the sticky bit check to an inline helper and call the out-of-line
helper only in the unlikly case of the sticky bit being set.

Signed-off-by: Miklos Szeredi <mszeredi@suse.cz>
fs/btrfs/ioctl.c
fs/namei.c
include/linux/fs.h

Simple merge
diff --cc fs/namei.c
Simple merge
Simple merge