]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitdd363a9a17328210f279b6215791f0e824a6b720
treefe76fb2eeaaf2b56d4961840caf97719567c6a88
parentae31131760e32cadb175da862b1c21fb7be7f017
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>
fs/btrfs/ioctl.c
fs/namei.c
include/linux/fs.h