]> git.baikalelectronics.ru Git - kernel.git/commit
ext4: don't calculate total xattr header size unless needed
authorTheodore Ts'o <tytso@mit.edu>
Thu, 20 Feb 2014 01:15:21 +0000 (20:15 -0500)
committerTheodore Ts'o <tytso@mit.edu>
Thu, 20 Feb 2014 01:15:21 +0000 (20:15 -0500)
commitd673075ff97df08acab6eae2c817ac31c05210f7
treebc988ef69f77ffc55c94a88ae3f5f1a0f78df053
parent892d24558a389bd7536cdfb29fbc08225141382f
ext4: don't calculate total xattr header size unless needed

The function ext4_expand_extra_isize_ea() doesn't need the size of all
of the extended attribute headers.  So if we don't calculate it when
it is unneeded, it we can skip some undeeded memory references, and as
a bonus, we eliminate some kvetching by static code analysis tools.

Addresses-Coverity-Id: #741291

Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
fs/ext4/xattr.c