Skip to content

Commit 2d5f4b5

Browse files
committed
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>
1 parent 22a6c83 commit 2d5f4b5

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

fs/xfs/xfs_aops.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -896,13 +896,13 @@ xfs_writepage_map(
896896
struct writeback_control *wbc,
897897
struct inode *inode,
898898
struct page *page,
899-
loff_t offset,
900-
uint64_t end_offset)
899+
uint64_t end_offset)
901900
{
902901
LIST_HEAD(submit_list);
903902
struct xfs_ioend *ioend, *next;
904903
struct buffer_head *bh, *head;
905904
ssize_t len = i_blocksize(inode);
905+
uint64_t offset;
906906
int error = 0;
907907
int count = 0;
908908
int uptodate = 1;
@@ -1146,7 +1146,7 @@ xfs_do_writepage(
11461146
end_offset = offset;
11471147
}
11481148

1149-
return xfs_writepage_map(wpc, wbc, inode, page, offset, end_offset);
1149+
return xfs_writepage_map(wpc, wbc, inode, page, end_offset);
11501150

11511151
redirty:
11521152
redirty_page_for_writepage(wbc, page);

0 commit comments

Comments
 (0)