xfs: simplify xfs_zero_remaining_bytes
authorChristoph Hellwig <hch@infradead.org>
Wed, 1 Oct 2014 23:05:44 +0000 (09:05 +1000)
committerDave Chinner <david@fromorbit.com>
Wed, 1 Oct 2014 23:05:44 +0000 (09:05 +1000)
commit8c15612546bce1ecafb7dee3cce8a2a9b560e15e
treea0a7725332387d0a1bf9632e307343a7562544e3
parentba3726742c1712c43c5a18245476f3fe9fe74773
xfs: simplify xfs_zero_remaining_bytes

xfs_zero_remaining_bytes() open codes a log of buffer manupulations
to do a read forllowed by a write. It can simply be replaced by an
uncached read followed by a xfs_bwrite() call.

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