Skip to content

Commit b3f8f29

Browse files
Christoph Hellwigcmaiolino
authored andcommitted
xfs: remove the flags argument to xfs_buf_get_uncached
No callers passes flags to xfs_buf_get_uncached, which makes sense given that the flags apply to behavior not used for uncached buffers. Signed-off-by: Christoph Hellwig <[email protected]> Reviewed-by: Carlos Maiolino <[email protected]> Signed-off-by: Carlos Maiolino <[email protected]>
1 parent 8d54b48 commit b3f8f29

File tree

4 files changed

+5
-6
lines changed

4 files changed

+5
-6
lines changed

fs/xfs/libxfs/xfs_ag.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -301,7 +301,7 @@ xfs_get_aghdr_buf(
301301
struct xfs_buf *bp;
302302
int error;
303303

304-
error = xfs_buf_get_uncached(mp->m_ddev_targp, numblks, 0, &bp);
304+
error = xfs_buf_get_uncached(mp->m_ddev_targp, numblks, &bp);
305305
if (error)
306306
return error;
307307

fs/xfs/xfs_buf.c

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -810,7 +810,7 @@ xfs_buf_read_uncached(
810810

811811
*bpp = NULL;
812812

813-
error = xfs_buf_get_uncached(target, numblks, 0, &bp);
813+
error = xfs_buf_get_uncached(target, numblks, &bp);
814814
if (error)
815815
return error;
816816

@@ -836,13 +836,12 @@ int
836836
xfs_buf_get_uncached(
837837
struct xfs_buftarg *target,
838838
size_t numblks,
839-
xfs_buf_flags_t flags,
840839
struct xfs_buf **bpp)
841840
{
842841
int error;
843842
DEFINE_SINGLE_BUF_MAP(map, XFS_BUF_DADDR_NULL, numblks);
844843

845-
error = xfs_buf_alloc(target, &map, 1, flags, bpp);
844+
error = xfs_buf_alloc(target, &map, 1, 0, bpp);
846845
if (!error)
847846
trace_xfs_buf_get_uncached(*bpp, _RET_IP_);
848847
return error;

fs/xfs/xfs_buf.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -273,7 +273,7 @@ xfs_buf_readahead(
273273
}
274274

275275
int xfs_buf_get_uncached(struct xfs_buftarg *target, size_t numblks,
276-
xfs_buf_flags_t flags, struct xfs_buf **bpp);
276+
struct xfs_buf **bpp);
277277
int xfs_buf_read_uncached(struct xfs_buftarg *target, xfs_daddr_t daddr,
278278
size_t numblks, struct xfs_buf **bpp,
279279
const struct xfs_buf_ops *ops);

fs/xfs/xfs_rtalloc.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -839,7 +839,7 @@ xfs_growfs_rt_init_rtsb(
839839
return 0;
840840

841841
error = xfs_buf_get_uncached(mp->m_rtdev_targp, XFS_FSB_TO_BB(mp, 1),
842-
0, &rtsb_bp);
842+
&rtsb_bp);
843843
if (error)
844844
return error;
845845

0 commit comments

Comments
 (0)