kill check_acl callback of generic_permission()

its value depends only on inode and does not change; we might as
well store it in ->i_op->check_acl and be done with that.

Signed-off-by: Al Viro <[email protected]>
This commit is contained in:
Al Viro 2011-06-20 11:31:30 -04:00
commit 178ea73521
20 changed files with 47 additions and 37 deletions

View file

@ -350,7 +350,7 @@ int afs_permission(struct inode *inode, int mask, unsigned int flags)
}
key_put(key);
ret = generic_permission(inode, mask, flags, NULL);
ret = generic_permission(inode, mask, flags);
_leave(" = %d", ret);
return ret;