diff mbox series

[21/36] xfs_db: use TYP_FINOBT for finobt metadump

Message ID 155259755947.31886.6074285457193991395.stgit@magnolia (mailing list archive)
State Accepted, archived
Headers show
Series xfsprogs-5.0: fix various problems | expand

Commit Message

Darrick J. Wong March 14, 2019, 9:05 p.m. UTC
From: Darrick J. Wong <darrick.wong@oracle.com>

Use the correct xfs_db type for dumping free inode btree blocks.

Signed-off-by: Darrick J. Wong <darrick.wong@oracle.com>
---
 db/metadump.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Comments

Eric Sandeen March 26, 2019, 5:11 p.m. UTC | #1
On 3/14/19 4:05 PM, Darrick J. Wong wrote:
> From: Darrick J. Wong <darrick.wong@oracle.com>
> 
> Use the correct xfs_db type for dumping free inode btree blocks.
> 
> Signed-off-by: Darrick J. Wong <darrick.wong@oracle.com>

wow this looks familiar too but ... this one isn't in yet :)

Reviewed-by: Eric Sandeen <sandeen@redhat.com>

> ---
>  db/metadump.c |    2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
> 
> 
> diff --git a/db/metadump.c b/db/metadump.c
> index 6ecd5685..3cce3012 100644
> --- a/db/metadump.c
> +++ b/db/metadump.c
> @@ -2607,7 +2607,7 @@ copy_inodes(
>  		levels = be32_to_cpu(agi->agi_free_level);
>  
>  		finobt = 1;
> -		if (!scan_btree(agno, root, levels, TYP_INOBT, &finobt,
> +		if (!scan_btree(agno, root, levels, TYP_FINOBT, &finobt,
>  				scanfunc_ino))
>  			return 0;
>  	}
>
diff mbox series

Patch

diff --git a/db/metadump.c b/db/metadump.c
index 6ecd5685..3cce3012 100644
--- a/db/metadump.c
+++ b/db/metadump.c
@@ -2607,7 +2607,7 @@  copy_inodes(
 		levels = be32_to_cpu(agi->agi_free_level);
 
 		finobt = 1;
-		if (!scan_btree(agno, root, levels, TYP_INOBT, &finobt,
+		if (!scan_btree(agno, root, levels, TYP_FINOBT, &finobt,
 				scanfunc_ino))
 			return 0;
 	}