diff options
Diffstat (limited to 'fs')
-rw-r--r-- | fs/f2fs/acl.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/fs/f2fs/acl.c b/fs/f2fs/acl.c index 20caf341701d..cd82e1ce5d67 100644 --- a/fs/f2fs/acl.c +++ b/fs/f2fs/acl.c @@ -397,12 +397,16 @@ int f2fs_init_acl(struct inode *inode, struct inode *dir, struct page *ipage, error = __f2fs_set_acl(inode, ACL_TYPE_DEFAULT, default_acl, ipage); posix_acl_release(default_acl); + } else { + inode->i_default_acl = NULL; } if (acl) { if (!error) error = __f2fs_set_acl(inode, ACL_TYPE_ACCESS, acl, ipage); posix_acl_release(acl); + } else { + inode->i_acl = NULL; } return error; |