xfs: remove xfs_flush_space
authorDave Chinner <david@fromorbit.com>
Mon, 6 Apr 2009 16:49:12 +0000 (18:49 +0200)
committerChristoph Hellwig <hch@brick.lst.de>
Mon, 6 Apr 2009 16:49:12 +0000 (18:49 +0200)
commit8de2bf937a6bea8f0f775fd5399ba20c1a0c3d77
treed48f944faf9c324cfcd197ab802ff7c4504e04ec
parent153fec43ce5264dfe9f3530b281a2e940b25a0a8
xfs: remove xfs_flush_space

The only thing we need to do now when we get an ENOSPC condition during delayed
allocation reservation is flush all the other inodes with delalloc blocks on
them and retry without EOF preallocation. Remove the unneeded mess that is
xfs_flush_space() and just call xfs_flush_inodes() directly from
xfs_iomap_write_delay().

Also, change the location of the retry label to avoid trying to do EOF
preallocation because we don't want to do that at ENOSPC. This enables us to
remove the BMAPI_SYNC flag as it is no longer used.

Signed-off-by: Dave Chinner <david@fromorbit.com>
Reviewed-by: Christoph Hellwig <hch@lst.de>
fs/xfs/xfs_iomap.c
fs/xfs/xfs_iomap.h