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.
Signed-off-by: Niv Sardi <xaiki@xxxxxxx>
Date: Wed Jul 23 17:30:19 AEST 2008
Workarea: itchy.melbourne.sgi.com:/i386/home/xaiki/Wrk/ptools/xfs-2.6
Inspected by: hch,tes,xaiki
The following file(s) were checked into:
longdrop.melbourne.sgi.com:/isms/linux/2.6.x-xfs-melb
Modid: xfs-linux-melb:xfs-kern:31727a
fs/xfs/xfs_attr.c - 1.155 - changed
http://oss.sgi.com/cgi-bin/cvsweb.cgi/xfs-linux/xfs_attr.c.diff?r1=text&tr1=1.155&r2=text&tr2=1.154&f=h
fs/xfs/xfs_attr.h - 1.45 - changed
http://oss.sgi.com/cgi-bin/cvsweb.cgi/xfs-linux/xfs_attr.h.diff?r1=text&tr1=1.45&r2=text&tr2=1.44&f=h
|