Prevent the incore superblock sb_fdblocks count from leaking
when we are getting ENOSPC errors on writes. When we fail to
allocate space for indirect blocks in xfs_bmapi() make sure
we release the direct block allocation before returning.
Date: Fri Jun 24 16:36:10 AEST 2005
Workarea: chook.melbourne.sgi.com:/build/dgc/isms/2.6.x-xfs
Inspected by: nathans
The following file(s) were checked into:
longdrop.melbourne.sgi.com:/isms/linux/2.6.x-xfs-melb
Modid: xfs-linux-melb:xfs-kern:22986a
fs/xfs/xfs_bmap.c - 1.326 - changed
http://oss.sgi.com/cgi-bin/cvsweb.cgi/xfs-linux/xfs_bmap.c.diff?r1=text&tr1=1.326&r2=text&tr2=1.325&f=h
- If we fail to allocate space for indirect blocks in xfs_bmapi(),
make sure we release the direct block allocation before returning.
|