]> asedeno.scripts.mit.edu Git - linux.git/commitdiff
ubifs: remove error message in ubifs_xattr_get
authorRock Lee <rli@sierrawireless.com>
Thu, 11 Jan 2018 02:08:24 +0000 (21:08 -0500)
committerRichard Weinberger <richard@nod.at>
Wed, 17 Jan 2018 23:18:49 +0000 (00:18 +0100)
There is a situation that other modules, like overlayfs, try to get
xattr value with a small buffer, if they get -ERANGE, they will try
again with the proper buffer size. No need to report an error.

Signed-off-by: Rock Lee <rli@sierrawireless.com>
Signed-off-by: Richard Weinberger <richard@nod.at>
fs/ubifs/xattr.c

index 5ddc89d564fd4827f3d95beb6e4ce64d8fe963c3..759f1a209dbb6384554ac30fc0de8ffe8077d0e4 100644 (file)
@@ -381,8 +381,6 @@ ssize_t ubifs_xattr_get(struct inode *host, const char *name, void *buf,
        if (buf) {
                /* If @buf is %NULL we are supposed to return the length */
                if (ui->data_len > size) {
-                       ubifs_err(c, "buffer size %zd, xattr len %d",
-                                 size, ui->data_len);
                        err = -ERANGE;
                        goto out_iput;
                }