]> git.kernelconcepts.de Git - karo-tx-linux.git/commitdiff
staging: lustre: llite: Remove unnecessary OOM message
authorQuentin Lambert <lambert.quentin@gmail.com>
Thu, 12 Feb 2015 14:56:07 +0000 (15:56 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 2 Mar 2015 01:29:07 +0000 (17:29 -0800)
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>
drivers/staging/lustre/lustre/llite/llite_close.c
drivers/staging/lustre/lustre/llite/xattr_cache.c

index 21b4a50267765d1f214b934be5221d83b6c9bb0d..a94ba02ccf02ea843db696875eb8a8cd1fef1cbe 100644 (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. */
index e2badf17d95e6b439d21c5214b2f3be07e80c6c4..7e2fcfeacfa54cf91a7c099eac8dc337e9344264 100644 (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;