[XFS] Fix check for block zero access in xfs_write_iomap_allocate()
authorDavid Chinner <dgc@sgi.com>
Tue, 29 Apr 2008 02:53:21 +0000 (12:53 +1000)
committerLachlan McIlroy <lachlan@redback.melbourne.sgi.com>
Tue, 29 Apr 2008 05:58:40 +0000 (15:58 +1000)
commit86c4d62305649848164ae311a0959fc569b0d964
tree068a54455ff120adf456135b96396b92e37fd8b3
parentd349404ff14758dc9a2d3df032073ed795085860
[XFS] Fix check for block zero access in xfs_write_iomap_allocate()

The check for block zero access should be done on non-realtime inodes. Fix
the logic error in xfs_write_iomap_allocate(), and simplify the logic on
all checks for block zero access in xfs_iomap.c

SGI-PV: 980888
SGI-Modid: xfs-linux-melb:xfs-kern:30998a

Signed-off-by: David Chinner <dgc@sgi.com>
Signed-off-by: Lachlan McIlroy <lachlan@sgi.com>
fs/xfs/xfs_iomap.c