xfs: do not require an ioend for new EOF calculation
authorChristoph Hellwig <hch@infradead.org>
Wed, 29 Feb 2012 09:53:49 +0000 (09:53 +0000)
committerBen Myers <bpm@sgi.com>
Mon, 5 Mar 2012 17:19:26 +0000 (11:19 -0600)
commit6923e686f19cb7017fc9777a10e06c2e2b2a2936
tree14398306804485fd7c0f04538d76f042f5cec6d9
parentaa6bf01d391935a8929333bc2e243084ea0c58db
xfs: do not require an ioend for new EOF calculation

Replace xfs_ioend_new_eof with a new inline xfs_new_eof helper that
doesn't require and ioend, and is available also outside of xfs_aops.c.

Also make the code a bit more clear by using a normal if statement
instead of a slightly misleading MIN().

Reviewed-by: Dave Chinner <dchinner@redhat.com>
Reviewed-by: Mark Tinguely <tinguely@sgi.com>
Signed-off-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Ben Myers <bpm@sgi.com>
fs/xfs/xfs_aops.c
fs/xfs/xfs_inode.h