Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

ubifs: remove error message in ubifs_xattr_get

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>

authored by

Rock Lee and committed by
Richard Weinberger
b3e73839 f78e5623

-2
-2
fs/ubifs/xattr.c
··· 381 381 if (buf) { 382 382 /* If @buf is %NULL we are supposed to return the length */ 383 383 if (ui->data_len > size) { 384 - ubifs_err(c, "buffer size %zd, xattr len %d", 385 - size, ui->data_len); 386 384 err = -ERANGE; 387 385 goto out_iput; 388 386 }