From: Sage Weil Date: Thu, 13 Jan 2011 23:27:29 +0000 (-0800) Subject: ceph: fix xattr rbtree search X-Git-Tag: v2.6.38-rc3~24^2~5 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=17db143fc091238c43ab9f373974ca2224a4c3f8;p=pandora-kernel.git ceph: fix xattr rbtree search Fix xattr name comparison in rbtree search for strings that share a prefix. The *name argument is null terminated, but the xattr name is not, so we need to use strncmp, but that means adjusting for the case where name is a prefix of xattr->name. The corresponding case in __set_xattr() already handles this properly (although in that case *name is also not null terminated). Reported-by: Sergiy Kibrik Signed-off-by: Sage Weil --- Reading git-diff-tree failed