diff options
author | Jaegeuk Kim <jaegeuk@kernel.org> | 2016-04-29 18:16:42 -0400 |
---|---|---|
committer | Jaegeuk Kim <jaegeuk@kernel.org> | 2016-05-07 13:32:20 -0400 |
commit | 0414b004a894746921bbc05f05dced1e7907b092 (patch) | |
tree | 2ddc7616360f01d41b8e56a188d1595b3afdf474 /fs/f2fs/acl.c | |
parent | f00d6fa727a4c4977241bd21910cafc139f77989 (diff) |
f2fs: introduce f2fs_kmalloc to wrap kmalloc
This patch adds f2fs_kmalloc.
Signed-off-by: Jaegeuk Kim <jaegeuk@kernel.org>
Diffstat (limited to 'fs/f2fs/acl.c')
-rw-r--r-- | fs/f2fs/acl.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/fs/f2fs/acl.c b/fs/f2fs/acl.c index c8f25f7241f0..d757d79a4d71 100644 --- a/fs/f2fs/acl.c +++ b/fs/f2fs/acl.c | |||
@@ -115,7 +115,7 @@ static void *f2fs_acl_to_disk(const struct posix_acl *acl, size_t *size) | |||
115 | struct f2fs_acl_entry *entry; | 115 | struct f2fs_acl_entry *entry; |
116 | int i; | 116 | int i; |
117 | 117 | ||
118 | f2fs_acl = kmalloc(sizeof(struct f2fs_acl_header) + acl->a_count * | 118 | f2fs_acl = f2fs_kmalloc(sizeof(struct f2fs_acl_header) + acl->a_count * |
119 | sizeof(struct f2fs_acl_entry), GFP_NOFS); | 119 | sizeof(struct f2fs_acl_entry), GFP_NOFS); |
120 | if (!f2fs_acl) | 120 | if (!f2fs_acl) |
121 | return ERR_PTR(-ENOMEM); | 121 | return ERR_PTR(-ENOMEM); |
@@ -175,7 +175,7 @@ static struct posix_acl *__f2fs_get_acl(struct inode *inode, int type, | |||
175 | 175 | ||
176 | retval = f2fs_getxattr(inode, name_index, "", NULL, 0, dpage); | 176 | retval = f2fs_getxattr(inode, name_index, "", NULL, 0, dpage); |
177 | if (retval > 0) { | 177 | if (retval > 0) { |
178 | value = kmalloc(retval, GFP_F2FS_ZERO); | 178 | value = f2fs_kmalloc(retval, GFP_F2FS_ZERO); |
179 | if (!value) | 179 | if (!value) |
180 | return ERR_PTR(-ENOMEM); | 180 | return ERR_PTR(-ENOMEM); |
181 | retval = f2fs_getxattr(inode, name_index, "", value, | 181 | retval = f2fs_getxattr(inode, name_index, "", value, |