diff options
author | Alex Elder <elder@dreamhost.com> | 2012-01-23 15:49:28 -0600 |
---|---|---|
committer | Alex Elder <elder@dreamhost.com> | 2012-03-22 10:47:46 -0500 |
commit | 3ce6cd1233046eb97d6d2bd5d80c1cd40528ea2f (patch) | |
tree | 43025c030db1741222b96156931b6aa2c8b85e51 /fs/ext3 | |
parent | aa4066ed7ba60421423c35f66b789bb3dd21d89e (diff) | |
download | blackbird-op-linux-3ce6cd1233046eb97d6d2bd5d80c1cd40528ea2f.tar.gz blackbird-op-linux-3ce6cd1233046eb97d6d2bd5d80c1cd40528ea2f.zip |
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 <elder@dreamhost.com>
Signed-off-by: Sage Weil <sage@newdream.net>
Diffstat (limited to 'fs/ext3')
0 files changed, 0 insertions, 0 deletions