]> git.ipfire.org Git - thirdparty/xfsprogs-dev.git/commitdiff
xfs: xfs_bmapi_read doesn't take a fork id as the last argument
authorChristoph Hellwig <hch@lst.de>
Mon, 10 Aug 2020 20:32:05 +0000 (16:32 -0400)
committerEric Sandeen <sandeen@sandeen.net>
Mon, 10 Aug 2020 20:32:05 +0000 (16:32 -0400)
Source kernel commit: b90c2a9c8b4422bb9398b50fe3d6163e46dcddec

The last argument to xfs_bmapi_raad contains XFS_BMAPI_* flags, not the
fork.  Given that XFS_DATA_FORK evaluates to 0 no real harm is done,
but let's fix this anyway.

Signed-off-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: Brian Foster <bfoster@redhat.com>
Reviewed-by: Darrick J. Wong <darrick.wong@oracle.com>
Signed-off-by: Darrick J. Wong <darrick.wong@oracle.com>
Signed-off-by: Eric Sandeen <sandeen@sandeen.net>
libxfs/xfs_rtbitmap.c

index 44ad96fc1936c479fbd76879b49bb5539c735255..4df279cd9a1099e46c92dbc1f943fc53fd11ef52 100644 (file)
@@ -64,7 +64,7 @@ xfs_rtbuf_get(
 
        ip = issum ? mp->m_rsumip : mp->m_rbmip;
 
-       error = xfs_bmapi_read(ip, block, 1, &map, &nmap, XFS_DATA_FORK);
+       error = xfs_bmapi_read(ip, block, 1, &map, &nmap, 0);
        if (error)
                return error;