From: Tim Shimmin Date: Thu, 17 Apr 2008 06:50:16 +0000 (+1000) Subject: [XFS] xfs_bmap_compute_maxlevels should be based on di_forkoff X-Git-Tag: v2.6.26-rc1~1147^2~6 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=6d1337b29bf09a97682d39db36ac2d0dfc6659c0;p=pandora-kernel.git [XFS] xfs_bmap_compute_maxlevels should be based on di_forkoff Fix up xfs_bmap_compute_maxlevels() to account for the case when we go from using attr2 to using attr1. In that case attr1 will no longer necessarily be at m_attr_offset>>3, but could be at a different value for di_forkoff. Therefore, we return the worst case scenario using MINDBTPTRS and MINABTPTRS, as this function is used for determining the maximum log space. SGI-PV: 979606 SGI-Modid: xfs-linux-melb:xfs-kern:30862a Signed-off-by: Tim Shimmin Signed-off-by: Eric Sandeen Signed-off-by: Lachlan McIlroy --- Reading git-diff-tree failed