diff options
author | Christoph Hellwig <hch@lst.de> | 2016-09-19 11:26:41 +1000 |
---|---|---|
committer | Dave Chinner <david@fromorbit.com> | 2016-09-19 11:26:41 +1000 |
commit | e372843a407ddff1e4c4acc7cdf3df9987bf48cc (patch) | |
tree | b7b686f81f32ab70af5207d435e982d7bcc61f43 /fs/xfs/xfs_aops.h | |
parent | 66642c5c1dea411dd2842159f9f297ce8e914994 (diff) | |
download | linux-e372843a407ddff1e4c4acc7cdf3df9987bf48cc.tar.gz linux-e372843a407ddff1e4c4acc7cdf3df9987bf48cc.tar.bz2 linux-e372843a407ddff1e4c4acc7cdf3df9987bf48cc.zip |
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>
Diffstat (limited to 'fs/xfs/xfs_aops.h')
-rw-r--r-- | fs/xfs/xfs_aops.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/fs/xfs/xfs_aops.h b/fs/xfs/xfs_aops.h index bf2d9a141a73..1950e3bca2ac 100644 --- a/fs/xfs/xfs_aops.h +++ b/fs/xfs/xfs_aops.h @@ -62,6 +62,7 @@ int xfs_get_blocks_dax_fault(struct inode *inode, sector_t offset, int xfs_end_io_direct_write(struct kiocb *iocb, loff_t offset, ssize_t size, void *private); +int xfs_setfilesize(struct xfs_inode *ip, xfs_off_t offset, size_t size); extern void xfs_count_page_state(struct page *, int *, int *); extern struct block_device *xfs_find_bdev_for_inode(struct inode *); |