ocfs2: Don't printk the error when listing too many xattrs.
authorTao Ma <tao.ma@oracle.com>
Sun, 3 May 2009 21:18:09 +0000 (05:18 +0800)
committerJoel Becker <joel.becker@oracle.com>
Tue, 5 May 2009 21:43:24 +0000 (14:43 -0700)
commita46fa684fcb7001d79c97f2968696997b3b79064
treeddd425db2bdf65385ee06a7225e43ea39ce801f9
parentb4348f32dae3cb6eb4bc21c7ed8f76c0b11e9d6a
ocfs2: Don't printk the error when listing too many xattrs.

Currently the kernel defines XATTR_LIST_MAX as 65536
in include/linux/limits.h.  This is the largest buffer that is used for
listing xattrs.

But with ocfs2 xattr tree, we actually have no limit for the number.  If
filesystem has more names than can fit in the buffer, the kernel
logs will be pollluted with something like this when listing:

(27738,0):ocfs2_iterate_xattr_buckets:3158 ERROR: status = -34
(27738,0):ocfs2_xattr_tree_list_index_block:3264 ERROR: status = -34

So don't print "ERROR" message as this is not an ocfs2 error.

Signed-off-by: Tao Ma <tao.ma@oracle.com>
Signed-off-by: Joel Becker <joel.becker@oracle.com>
fs/ocfs2/xattr.c