Factor out common code into vfs_acl_common.c.