projects
/
deliverable
/
linux.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
staging: lustre: llite: Use kzalloc and rewrite null tests
[deliverable/linux.git]
/
drivers
/
staging
/
lustre
/
lustre
/
llite
/
xattr_cache.c
diff --git
a/drivers/staging/lustre/lustre/llite/xattr_cache.c
b/drivers/staging/lustre/lustre/llite/xattr_cache.c
index 1d2c7b047eb15adf1a1f2bb2668cd510b55f1d39..627cbe242f2202e784f28c3170e4fefb283f2a05 100644
(file)
--- a/
drivers/staging/lustre/lustre/llite/xattr_cache.c
+++ b/
drivers/staging/lustre/lustre/llite/xattr_cache.c
@@
-128,13
+128,13
@@
static int ll_xattr_cache_add(struct list_head *cache,
xattr->xe_namelen = strlen(xattr_name) + 1;
xattr->xe_namelen = strlen(xattr_name) + 1;
-
OBD_ALLOC(xattr->xe_name, xattr->xe_namelen
);
+
xattr->xe_name = kzalloc(xattr->xe_namelen, GFP_NOFS
);
if (!xattr->xe_name) {
CDEBUG(D_CACHE, "failed to alloc xattr name %u\n",
xattr->xe_namelen);
goto err_name;
}
if (!xattr->xe_name) {
CDEBUG(D_CACHE, "failed to alloc xattr name %u\n",
xattr->xe_namelen);
goto err_name;
}
-
OBD_ALLOC(xattr->xe_value, xattr_val_len
);
+
xattr->xe_value = kzalloc(xattr_val_len, GFP_NOFS
);
if (!xattr->xe_value) {
CDEBUG(D_CACHE, "failed to alloc xattr value %d\n",
xattr_val_len);
if (!xattr->xe_value) {
CDEBUG(D_CACHE, "failed to alloc xattr value %d\n",
xattr_val_len);
This page took
0.02837 seconds
and
5
git commands to generate.