From: boxi liu Date: Mon, 1 Jul 2013 12:12:37 +0000 (-0400) Subject: ext4: improve free space calculation for inline_data X-Git-Tag: omap-for-v3.11/fixes-for-merge-window~83^2~11 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=c4932dbe63dae2d23b4f596caa5d286ebfe042cf;p=pandora-kernel.git 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: liulei Signed-off-by: "Theodore Ts'o" Reviewed-by: Tao Ma --- Reading git-diff-tree failed