Skip to contentSkip to conversation

ubifs: remove error message in ubifs_xattr_get

PATCH New [email protected] 1 participant 1 message Jan 11, 2018

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 ubifs: remove error message in ubifs_xattr_get

From: Rock Lee <[email protected]>

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.

---
 fs/ubifs/xattr.c | 2 --
 1 file changed, 2 deletions(-)
fs/ubifs/xattr.c +0 -2
index c13eae8..1615270 100644
@@ -380,8 +380,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;
 		}
Signature · 1 line
1.9.1