From: Alex Elder Date: Mon, 23 Jan 2012 21:49:28 +0000 (-0600) Subject: ceph: avoid repeatedly computing the size of constant vxattr names X-Git-Tag: v3.4-rc1~76^2~47 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=3ce6cd1233046eb97d6d2bd5d80c1cd40528ea2f;p=pandora-kernel.git ceph: avoid repeatedly computing the size of constant vxattr names All names defined in the directory and file virtual extended attribute tables are constant, and the size of each is known at compile time. So there's no need to compute their length every time any file's attribute is listed. Record the length of each string and use it when needed to determine the space need to represent them. In addition, compute the aggregate size of strings in each table just once at initialization time. Signed-off-by: Alex Elder Signed-off-by: Sage Weil --- Reading git-diff-tree failed