Tim Shimmin 6d1337b29b [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 <tes@sgi.com>
Signed-off-by: Eric Sandeen <sandeen@sandeen.net>
Signed-off-by: Lachlan McIlroy <lachlan@sgi.com>
2008-04-18 12:04:08 +10:00
..
2008-02-07 18:22:38 +11:00
2008-02-07 16:46:39 +11:00
2008-02-07 18:14:38 +11:00
2007-10-16 11:40:24 +10:00
2008-02-07 18:14:38 +11:00
2008-02-07 18:14:38 +11:00
2008-02-07 18:14:38 +11:00
2008-02-07 16:44:23 +11:00
2008-04-18 12:02:30 +10:00
2008-02-07 18:14:38 +11:00
2008-02-07 16:47:15 +11:00
2008-02-07 18:14:38 +11:00
2008-02-07 18:24:00 +11:00
2008-02-07 16:42:19 +11:00