From: Jie Liu Date: Fri, 25 Oct 2013 06:52:44 +0000 (+0800) Subject: xfs: fix the extent count when allocating an new indirection array entry X-Git-Tag: v3.13-rc1~87^2~4 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=bb86d21cba22a045b09d11b71decf5ca7c3d5def;p=pandora-kernel.git xfs: fix the extent count when allocating an new indirection array entry At xfs_iext_add(), if extent(s) are being appended to the last page in the indirection array and the new extent(s) don't fit in the page, the number of extents(erp->er_extcount) in a new allocated entry should be the minimum value between count and XFS_LINEAR_EXTS, instead of count. For now, there is no existing test case can demonstrates a problem with the er_extcount being set incorrectly here, but it obviously like a bug. Signed-off-by: Jie Liu Reviewed-by: Ben Myers Signed-off-by: Ben Myers --- Reading git-diff-tree failed