[XFS] Move attr log alloc size calculator to another function.
authorNiv Sardi <xaiki@sgi.com>
Wed, 13 Aug 2008 06:03:35 +0000 (16:03 +1000)
committerLachlan McIlroy <lachlan@redback.melbourne.sgi.com>
Wed, 13 Aug 2008 06:03:35 +0000 (16:03 +1000)
commit5e9da7b7a1edfc75a839b0269935393fa347f38b
tree3d74c413b4e5c5413094eb4b6c8065778e2c5637
parent6785073ba138a2f0dc575c332c1812b713670b6a
[XFS] Move attr log alloc size calculator to another function.

We will need that to be able to calculate the size of log we need for a
specific attr (for Create+EA). The local flag is needed so that we can
fail if we run into ENOSPC when trying to alloc blocks.

SGI-PV: 981498

SGI-Modid: xfs-linux-melb:xfs-kern:31727a

Signed-off-by: Niv Sardi <xaiki@sgi.com>
Signed-off-by: Christoph Hellwig <hch@infradead.org>
Signed-off-by: Tim Shimmin <tes@sgi.com>
Signed-off-by: Lachlan McIlroy <lachlan@sgi.com>
fs/xfs/xfs_attr.c
fs/xfs/xfs_attr.h