Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 3fefdeee authored by Eric Sandeen's avatar Eric Sandeen Committed by Ben Myers
Browse files

xfs: simplify xfs_setsize_buftarg callchain; remove unused arg



The "verbose" argument to xfs_setsize_buftarg_flags() has been
unused since:

ffe37436 xfs: stop using the page cache to back the buffer cache

Remove it, and fold the function into xfs_setsize_buftarg()
now that there's no need for different types of callers.

Fix inconsistent comment spacing while we're at it.

Signed-off-by: default avatarEric Sandeen <sandeen@redhat.com>
Reviewed-by: default avatarBrian Foster <bfoster@redhat.com>
Signed-off-by: default avatarBen Myers <bpm@sgi.com>
parent dc1ccc48
Loading
Loading
Loading
Loading
+8 −18
Original line number Original line Diff line number Diff line
@@ -1602,12 +1602,11 @@ xfs_free_buftarg(
	kmem_free(btp);
	kmem_free(btp);
}
}


STATIC int
int
xfs_setsize_buftarg_flags(
xfs_setsize_buftarg(
	xfs_buftarg_t		*btp,
	xfs_buftarg_t		*btp,
	unsigned int		blocksize,
	unsigned int		blocksize,
	unsigned int		sectorsize,
	unsigned int		sectorsize)
	int			verbose)
{
{
	btp->bt_bsize = blocksize;
	btp->bt_bsize = blocksize;
	btp->bt_sshift = ffs(sectorsize) - 1;
	btp->bt_sshift = ffs(sectorsize) - 1;
@@ -1637,17 +1636,8 @@ xfs_setsize_buftarg_early(
	xfs_buftarg_t		*btp,
	xfs_buftarg_t		*btp,
	struct block_device	*bdev)
	struct block_device	*bdev)
{
{
	return xfs_setsize_buftarg_flags(btp,
	return xfs_setsize_buftarg(btp, PAGE_SIZE,
			PAGE_SIZE, bdev_logical_block_size(bdev), 0);
				   bdev_logical_block_size(bdev));
}

int
xfs_setsize_buftarg(
	xfs_buftarg_t		*btp,
	unsigned int		blocksize,
	unsigned int		sectorsize)
{
	return xfs_setsize_buftarg_flags(btp, blocksize, sectorsize, 1);
}
}


xfs_buftarg_t *
xfs_buftarg_t *