Skip to content
Commit c4932dbe authored by boxi liu's avatar boxi liu Committed by Theodore Ts'o
Browse files

ext4: improve free space calculation for inline_data



In ext4 feature inline_data,it use the xattr's space to store the
inline data in inode.When we calculate the inline data as the xattr,we
add the pad.But in get_max_inline_xattr_value_size() function we count
the free space without pad.It cause some contents are moved to a block
even if it can be
stored in the inode.

Signed-off-by: default avatarliulei <lewis.liulei@huawei.com>
Signed-off-by: default avatar"Theodore Ts'o" <tytso@mit.edu>
Reviewed-by: default avatarTao Ma <boyu.mt@taobao.com>
parent e7c96e8e
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