]> git.karo-electronics.de Git - mv-sheeva.git/commit - fs/xfs/linux-2.6/xfs_file.c
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)
commit4d8d15812fd9bc96d0da11467d23e0373feae933
tree8f81ae552502cd13259f289cfee110a89579ea59
parent637bbc75d9fda57c7bc77ce5ee37e29a77a0520d
xfs: factor common write setup code

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>
fs/xfs/linux-2.6/xfs_file.c