]> git.baikalelectronics.ru Git - kernel.git/commit
xfs: remove unused parameter from xfs_writepage_map
authorDarrick J. Wong <darrick.wong@oracle.com>
Mon, 27 Nov 2017 17:50:22 +0000 (09:50 -0800)
committerDarrick J. Wong <darrick.wong@oracle.com>
Thu, 30 Nov 2017 16:43:52 +0000 (08:43 -0800)
commit1ca905d4c35f2d8bf9c38701b99d650c8f07eaed
treed9d14cb0a8905ac022f9275cac674590958f327e
parentbf551f89fba9700630f8bbede4900bf4ed1c6923
xfs: remove unused parameter from xfs_writepage_map

The first thing that xfs_writepage_map does is clobber the offset
parameter.  Since we never use the passed-in value, turn the parameter
into a local variable.  This gets rid of an UBSAN warning in generic/466.

Signed-off-by: Darrick J. Wong <darrick.wong@oracle.com>
Reviewed-by: Brian Foster <bfoster@redhat.com>
fs/xfs/xfs_aops.c