|
@@ -62,7 +62,7 @@ static struct posix_acl *f2fs_acl_from_disk(const char *value, size_t size)
|
|
if (count == 0)
|
|
if (count == 0)
|
|
return NULL;
|
|
return NULL;
|
|
|
|
|
|
- acl = posix_acl_alloc(count, GFP_KERNEL);
|
|
|
|
|
|
+ acl = posix_acl_alloc(count, GFP_NOFS);
|
|
if (!acl)
|
|
if (!acl)
|
|
return ERR_PTR(-ENOMEM);
|
|
return ERR_PTR(-ENOMEM);
|
|
|
|
|
|
@@ -116,7 +116,7 @@ static void *f2fs_acl_to_disk(const struct posix_acl *acl, size_t *size)
|
|
int i;
|
|
int i;
|
|
|
|
|
|
f2fs_acl = kmalloc(sizeof(struct f2fs_acl_header) + acl->a_count *
|
|
f2fs_acl = kmalloc(sizeof(struct f2fs_acl_header) + acl->a_count *
|
|
- sizeof(struct f2fs_acl_entry), GFP_KERNEL);
|
|
|
|
|
|
+ sizeof(struct f2fs_acl_entry), GFP_NOFS);
|
|
if (!f2fs_acl)
|
|
if (!f2fs_acl)
|
|
return ERR_PTR(-ENOMEM);
|
|
return ERR_PTR(-ENOMEM);
|
|
|
|
|