Skip to content

Commit 6374ca0

Browse files
Eric Sandeendjwong
authored andcommitted
xfs: remove unused flags arg from xfs_get_aghdr_buf()
The flags arg is always passed as zero, so remove it. (xfs_buf_get_uncached takes flags to support XBF_NO_IOACCT for the sb, but that should never be relevant for xfs_get_aghdr_buf) Signed-off-by: Eric Sandeen <[email protected]> Reviewed-by: Carlos Maiolino <[email protected]> Reviewed-by: Christoph Hellwig <[email protected]> Reviewed-by: Darrick J. Wong <[email protected]> Signed-off-by: Darrick J. Wong <[email protected]>
1 parent e093c4b commit 6374ca0

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

fs/xfs/libxfs/xfs_ag.c

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -28,12 +28,11 @@ xfs_get_aghdr_buf(
2828
struct xfs_mount *mp,
2929
xfs_daddr_t blkno,
3030
size_t numblks,
31-
int flags,
3231
const struct xfs_buf_ops *ops)
3332
{
3433
struct xfs_buf *bp;
3534

36-
bp = xfs_buf_get_uncached(mp->m_ddev_targp, numblks, flags);
35+
bp = xfs_buf_get_uncached(mp->m_ddev_targp, numblks, 0);
3736
if (!bp)
3837
return NULL;
3938

@@ -345,7 +344,7 @@ xfs_ag_init_hdr(
345344
{
346345
struct xfs_buf *bp;
347346

348-
bp = xfs_get_aghdr_buf(mp, id->daddr, id->numblks, 0, ops);
347+
bp = xfs_get_aghdr_buf(mp, id->daddr, id->numblks, ops);
349348
if (!bp)
350349
return -ENOMEM;
351350

0 commit comments

Comments
 (0)