Get "no acls for this inode" right, fix shmem breakage

Signed-off-by: Al Viro <[email protected]>
This commit is contained in:
Al Viro 2009-06-24 16:58:48 -04:00
commit 72c04902d1
4 changed files with 13 additions and 10 deletions

View file

@ -284,8 +284,7 @@ int jffs2_init_acl_pre(struct inode *dir_i, struct inode *inode, int *i_mode)
struct posix_acl *acl, *clone;
int rc;
inode->i_default_acl = NULL;
inode->i_acl = NULL;
cache_no_acl(inode);
if (S_ISLNK(*i_mode))
return 0; /* Symlink always has no-ACL */