diff options
Diffstat (limited to 'fs/ext4/xattr.c')
-rw-r--r-- | fs/ext4/xattr.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/fs/ext4/xattr.c b/fs/ext4/xattr.c index f56598df6880..df4810d5a387 100644 --- a/fs/ext4/xattr.c +++ b/fs/ext4/xattr.c | |||
@@ -739,7 +739,7 @@ ext4_xattr_block_set(handle_t *handle, struct inode *inode, | |||
739 | ce = NULL; | 739 | ce = NULL; |
740 | } | 740 | } |
741 | ea_bdebug(bs->bh, "cloning"); | 741 | ea_bdebug(bs->bh, "cloning"); |
742 | s->base = kmalloc(bs->bh->b_size, GFP_KERNEL); | 742 | s->base = kmalloc(bs->bh->b_size, GFP_NOFS); |
743 | error = -ENOMEM; | 743 | error = -ENOMEM; |
744 | if (s->base == NULL) | 744 | if (s->base == NULL) |
745 | goto cleanup; | 745 | goto cleanup; |
@@ -751,7 +751,7 @@ ext4_xattr_block_set(handle_t *handle, struct inode *inode, | |||
751 | } | 751 | } |
752 | } else { | 752 | } else { |
753 | /* Allocate a buffer where we construct the new block. */ | 753 | /* Allocate a buffer where we construct the new block. */ |
754 | s->base = kzalloc(sb->s_blocksize, GFP_KERNEL); | 754 | s->base = kzalloc(sb->s_blocksize, GFP_NOFS); |
755 | /* assert(header == s->base) */ | 755 | /* assert(header == s->base) */ |
756 | error = -ENOMEM; | 756 | error = -ENOMEM; |
757 | if (s->base == NULL) | 757 | if (s->base == NULL) |