xfs: refactor xfs_setfilesize
authorChristoph Hellwig <hch@lst.de>
Mon, 19 Sep 2016 01:26:41 +0000 (11:26 +1000)
committerDave Chinner <david@fromorbit.com>
Mon, 19 Sep 2016 01:26:41 +0000 (11:26 +1000)
commite372843a407ddff1e4c4acc7cdf3df9987bf48cc
treeb7b686f81f32ab70af5207d435e982d7bcc61f43
parent66642c5c1dea411dd2842159f9f297ce8e914994
xfs: refactor xfs_setfilesize

Rename the current function to __xfs_setfilesize and add a non-static
wrapper that also takes care of creating the transaction.  This new
helper will be used by the new iomap-based DAX path.

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_aops.c
fs/xfs/xfs_aops.h