xfs: factor common write setup code
authorDave Chinner <dchinner@redhat.com>
Mon, 10 Jan 2011 23:23:42 +0000 (10:23 +1100)
committerDave Chinner <david@fromorbit.com>
Mon, 10 Jan 2011 23:23:42 +0000 (10:23 +1100)
The buffered IO and direct IO write paths share a common set of
checks and limiting code prior to issuing the write. Factor that
into a common helper function.

Signed-off-by: Dave Chinner <dchinner@redhat.com>
Reviewed-by: Alex Elder <aelder@sgi.com>
Reviewed-by: Christoph Hellwig <hch@lst.de>

No differences found