]> git.proxmox.com Git - mirror_ubuntu-bionic-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)
commit2d5f4b5bebccfe983715ebc9255151e611234643
treed9d14cb0a8905ac022f9275cac674590958f327e
parent22a6c83777ac7c17d6c63891beeeac24cf5da450
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