xfsdump: remove BMV_IF_NO_DMAPI_READ flag
PATCH 1/1 xfsdump: remove BMV_IF_NO_DMAPI_READ flag
Use of the flag has had no effect since kernel commit 288699fecaff ("xfs: drop dmapi hooks") which removed all dmapi related code, so we can remove it.
Signed-off-by Anthony Iliopoulos <[email protected]>
--- dump/content.c | 1 - dump/inomap.c | 1 - 2 files changed, 2 deletions(-)
dump/content.c +0 -1
@@ -4287,7 +4287,6 @@ init_extent_group_context(jdm_fshandle_t *fshandlep, gcp->eg_bmap[0 ].bmv_offset =0 ; gcp->eg_bmap[0 ].bmv_length =-1 ; gcp->eg_bmap[0 ].bmv_count =BMAP_LEN ; - gcp->eg_bmap[0 ].bmv_iflags =BMV_IF_NO_DMAPI_READ ; gcp->eg_nextbmapp = &gcp->eg_bmap[1 ]; gcp->eg_endbmapp = &gcp->eg_bmap[1 ]; gcp->eg_bmapix =0 ;
dump/inomap.c +0 -1
@@ -1647,7 +1647,6 @@ quantity2offset(jdm_fshandle_t *fshandlep, struct xfs_bstat *statp, off64_t qty) bmap[0 ].bmv_offset =0 ; bmap[0 ].bmv_length =-1 ; bmap[0 ].bmv_count =BMAP_LEN ; - bmap[0 ].bmv_iflags =BMV_IF_NO_DMAPI_READ ; bmap[0 ].bmv_entries =-1 ; fd =jdm_open (fshandlep, statp,O_RDONLY );if (fd <0 ) {
Signature · 1 line
2.31.0
Quoted 27 lines · Anthony Iliopoulos
Use of the flag has had no effect since kernel commit
288699fecaff("xfs: drop dmapi hooks") which removed all dmapi related code, so we can remove it.Signed-off-by Anthony Iliopoulos <[email protected]>--- dump/content.c | 1 - dump/inomap.c | 1 - 2 files changed, 2 deletions(-)dump/content.c +0
-1@@ -4287,7 +4287,6 @@ init_extent_group_context(jdm_fshandle_t *fshandlep, gcp->eg_bmap[0 ].bmv_offset =0 ; gcp->eg_bmap[0 ].bmv_length =-1 ; gcp->eg_bmap[0 ].bmv_count =BMAP_LEN ; - gcp->eg_bmap[0 ].bmv_iflags =BMV_IF_NO_DMAPI_READ ; gcp->eg_nextbmapp = &gcp->eg_bmap[1 ]; gcp->eg_endbmapp = &gcp->eg_bmap[1 ]; gcp->eg_bmapix =0 ;dump/inomap.c +0
-0
dump/inomap.c quantity2offset(jdm_fshandle_t *fshandlep, struct xfs_bstat *statp, off64_t qty) · line 1650
Quoted 4 lines
dump/inomap.c +0
-1@@ -1647,7 +1647,6 @@ quantity2offset(jdm_fshandle_t *fshandlep, struct xfs_bstat *statp, off64_t qty) bmap[0 ].bmv_offset =0 ; bmap[0 ].bmv_length =-1 ; bmap[0 ].bmv_count =BMAP_LEN ; - bmap[0 ].bmv_iflags =BMV_IF_NO_DMAPI_READ ;
I don't think bmap[0] is guaranteed to be initialized at this point, so deleting this statement leaves bmv_iflags with random stack junk.
--D
Quoted 6 lines
dump/inomap.c +0
-0bmap[0 ].bmv_entries =-1 ; fd =jdm_open (fshandlep, statp,O_RDONLY );if (fd <0 ) {Signature · 1 line
2.31.0