staging: lustre: llite: Remove unnecessary OOM message

This patch reduces the kernel size by removing error messages that duplicate
the normal OOM message.

Signed-off-by: Quentin Lambert <lambert.quentin@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
Quentin Lambert 2015-02-12 15:56:07 +01:00 committed by Greg Kroah-Hartman
parent b475d037f9
commit 695a06667e
2 changed files with 2 additions and 7 deletions

View File

@ -284,10 +284,8 @@ static void ll_done_writing(struct inode *inode)
LASSERT(exp_connect_som(ll_i2mdexp(inode)));
op_data = kzalloc(sizeof(*op_data), GFP_NOFS);
if (!op_data) {
CERROR("can't allocate op_data\n");
if (!op_data)
return;
}
ll_prepare_done_writing(inode, op_data, &och);
/* If there is no @och, we do not do D_W yet. */

View File

@ -133,11 +133,8 @@ static int ll_xattr_cache_add(struct list_head *cache,
goto err_name;
}
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)
goto err_value;
}
memcpy(xattr->xe_value, xattr_val, xattr_val_len);
xattr->xe_vallen = xattr_val_len;