]> git.hungrycats.org Git - linux/commit
vfs: export check_sticky()
authorMiklos Szeredi <mszeredi@suse.cz>
Thu, 23 Oct 2014 22:14:36 +0000 (00:14 +0200)
committerZygo Blaxell <zblaxell@serenity.furryterror.org>
Fri, 23 Jan 2015 13:15:32 +0000 (08:15 -0500)
commit49e8ad5355db233d3fba392182a7859581f8facc
tree14a8f61a8e735b3b1b2233dda5e7cd3e247eeb02
parent5811f6b4443d9fc060f8c9c48a0125c5d2f7cf27
vfs: export check_sticky()

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>
(cherry picked from commit cbdf35bcb833bfd00f0925d7a9a33a21f41ea582)
fs/btrfs/ioctl.c
fs/namei.c
include/linux/fs.h