]> git.baikalelectronics.ru Git - kernel.git/commit
vfs: move ACL cache lookup into generic code
authorLinus Torvalds <torvalds@linux-foundation.org>
Sat, 23 Jul 2011 02:30:19 +0000 (19:30 -0700)
committerAl Viro <viro@zeniv.linux.org.uk>
Mon, 25 Jul 2011 18:23:39 +0000 (14:23 -0400)
commitfecf36243ad97c55fad7df68537094f42fe71565
treef5d7aba2dfbb747a97d783b7cc6a486922c42559
parent4fc607dd66cc84240a8994e4b14b512610d16c66
vfs: move ACL cache lookup into generic code

This moves logic for checking the cached ACL values from low-level
filesystems into generic code.  The end result is a streamlined ACL
check that doesn't need to load the inode->i_op->check_acl pointer at
all for the common cached case.

The filesystems also don't need to check for a non-blocking RCU walk
case in their acl_check() functions, because that is all handled at a
VFS layer.

Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
12 files changed:
fs/9p/acl.c
fs/btrfs/acl.c
fs/ext2/acl.c
fs/ext3/acl.c
fs/ext4/acl.c
fs/generic_acl.c
fs/gfs2/acl.c
fs/jffs2/acl.c
fs/jfs/acl.c
fs/namei.c
fs/ocfs2/acl.c
fs/xfs/linux-2.6/xfs_acl.c