Skip to content
Commit 7b1b2c1b authored by Theodore Ts'o's avatar Theodore Ts'o
Browse files

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: default avatar"Theodore Ts'o" <tytso@mit.edu>
parent 9a6633b1
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment