On Fri, Sep 09, 2016 at 06:34:43PM +0200, Christoph Hellwig wrote: > 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 <[email protected]> > --- > fs/xfs/xfs_aops.c | 33 ++++++++++++++++++++++----------- > fs/xfs/xfs_aops.h | 1 + > 2 files changed, 23 insertions(+), 11 deletions(-) > > diff --git a/fs/xfs/xfs_aops.c b/fs/xfs/xfs_aops.c > index 7575cfc..0bd3e27 100644 > --- a/fs/xfs/xfs_aops.c > +++ b/fs/xfs/xfs_aops.c > @@ -199,8 +199,8 @@ xfs_setfilesize_trans_alloc( > /* > * Update on-disk file size now that data has been written to disk. > */ > -STATIC int
This can remain STATIC, as it is only used in this file. > -xfs_setfilesize( > +int > +__xfs_setfilesize( > struct xfs_inode *ip, > struct xfs_trans *tp, > xfs_off_t offset, _______________________________________________ Linux-nvdimm mailing list [email protected] https://lists.01.org/mailman/listinfo/linux-nvdimm
