@@ -485,7 +485,7 @@ STATIC void
485485xfs_bmap_validate_ret (
486486 xfs_fileoff_t bno ,
487487 xfs_filblks_t len ,
488- int flags ,
488+ uint32_t flags ,
489489 xfs_bmbt_irec_t * mval ,
490490 int nmap ,
491491 int ret_nmap )
@@ -1399,7 +1399,7 @@ xfs_bmap_add_extent_delay_real(
13991399 xfs_bmbt_irec_t r [3 ]; /* neighbor extent entries */
14001400 /* left is 0, right is 1, prev is 2 */
14011401 int rval = 0 ; /* return value (logging flags) */
1402- int state = xfs_bmap_fork_to_state (whichfork );
1402+ uint32_t state = xfs_bmap_fork_to_state (whichfork );
14031403 xfs_filblks_t da_new ; /* new count del alloc blocks used */
14041404 xfs_filblks_t da_old ; /* old count del alloc blocks used */
14051405 xfs_filblks_t temp = 0 ; /* value for da_new calculations */
@@ -1950,7 +1950,7 @@ xfs_bmap_add_extent_unwritten_real(
19501950 xfs_bmbt_irec_t r [3 ]; /* neighbor extent entries */
19511951 /* left is 0, right is 1, prev is 2 */
19521952 int rval = 0 ; /* return value (logging flags) */
1953- int state = xfs_bmap_fork_to_state (whichfork );
1953+ uint32_t state = xfs_bmap_fork_to_state (whichfork );
19541954 struct xfs_mount * mp = ip -> i_mount ;
19551955 struct xfs_bmbt_irec old ;
19561956
@@ -2479,7 +2479,7 @@ xfs_bmap_add_extent_hole_delay(
24792479 xfs_filblks_t newlen = 0 ; /* new indirect size */
24802480 xfs_filblks_t oldlen = 0 ; /* old indirect size */
24812481 xfs_bmbt_irec_t right ; /* right neighbor extent entry */
2482- int state = xfs_bmap_fork_to_state (whichfork );
2482+ uint32_t state = xfs_bmap_fork_to_state (whichfork );
24832483 xfs_filblks_t temp ; /* temp for indirect calculations */
24842484
24852485 ifp = XFS_IFORK_PTR (ip , whichfork );
@@ -2616,7 +2616,7 @@ xfs_bmap_add_extent_hole_real(
26162616 struct xfs_btree_cur * * curp ,
26172617 struct xfs_bmbt_irec * new ,
26182618 int * logflagsp ,
2619- int flags )
2619+ uint32_t flags )
26202620{
26212621 struct xfs_ifork * ifp = XFS_IFORK_PTR (ip , whichfork );
26222622 struct xfs_mount * mp = ip -> i_mount ;
@@ -2626,7 +2626,7 @@ xfs_bmap_add_extent_hole_real(
26262626 xfs_bmbt_irec_t left ; /* left neighbor extent entry */
26272627 xfs_bmbt_irec_t right ; /* right neighbor extent entry */
26282628 int rval = 0 ; /* return value (logging flags) */
2629- int state = xfs_bmap_fork_to_state (whichfork );
2629+ uint32_t state = xfs_bmap_fork_to_state (whichfork );
26302630 struct xfs_bmbt_irec old ;
26312631
26322632 ASSERT (!isnullstartblock (new -> br_startblock ));
@@ -3766,7 +3766,7 @@ xfs_bmapi_trim_map(
37663766 xfs_fileoff_t obno ,
37673767 xfs_fileoff_t end ,
37683768 int n ,
3769- int flags )
3769+ uint32_t flags )
37703770{
37713771 if ((flags & XFS_BMAPI_ENTIRE ) ||
37723772 got -> br_startoff + got -> br_blockcount <= obno ) {
@@ -3811,7 +3811,7 @@ xfs_bmapi_update_map(
38113811 xfs_fileoff_t obno ,
38123812 xfs_fileoff_t end ,
38133813 int * n ,
3814- int flags )
3814+ uint32_t flags )
38153815{
38163816 xfs_bmbt_irec_t * mval = * map ;
38173817
@@ -3864,7 +3864,7 @@ xfs_bmapi_read(
38643864 xfs_filblks_t len ,
38653865 struct xfs_bmbt_irec * mval ,
38663866 int * nmap ,
3867- int flags )
3867+ uint32_t flags )
38683868{
38693869 struct xfs_mount * mp = ip -> i_mount ;
38703870 int whichfork = xfs_bmapi_whichfork (flags );
@@ -4184,7 +4184,7 @@ xfs_bmapi_convert_unwritten(
41844184 struct xfs_bmalloca * bma ,
41854185 struct xfs_bmbt_irec * mval ,
41864186 xfs_filblks_t len ,
4187- int flags )
4187+ uint32_t flags )
41884188{
41894189 int whichfork = xfs_bmapi_whichfork (flags );
41904190 struct xfs_ifork * ifp = XFS_IFORK_PTR (bma -> ip , whichfork );
@@ -4312,7 +4312,7 @@ xfs_bmapi_write(
43124312 struct xfs_inode * ip , /* incore inode */
43134313 xfs_fileoff_t bno , /* starting file offs. mapped */
43144314 xfs_filblks_t len , /* length to map in file */
4315- int flags , /* XFS_BMAPI_... */
4315+ uint32_t flags , /* XFS_BMAPI_... */
43164316 xfs_extlen_t total , /* total blocks needed */
43174317 struct xfs_bmbt_irec * mval , /* output: map values */
43184318 int * nmap ) /* i/o: mval size/count */
@@ -4629,7 +4629,7 @@ xfs_bmapi_remap(
46294629 xfs_fileoff_t bno ,
46304630 xfs_filblks_t len ,
46314631 xfs_fsblock_t startblock ,
4632- int flags )
4632+ uint32_t flags )
46334633{
46344634 struct xfs_mount * mp = ip -> i_mount ;
46354635 struct xfs_ifork * ifp ;
@@ -4801,7 +4801,7 @@ xfs_bmap_del_extent_delay(
48014801 int64_t da_old , da_new , da_diff = 0 ;
48024802 xfs_fileoff_t del_endoff , got_endoff ;
48034803 xfs_filblks_t got_indlen , new_indlen , stolen ;
4804- int state = xfs_bmap_fork_to_state (whichfork );
4804+ uint32_t state = xfs_bmap_fork_to_state (whichfork );
48054805 int error = 0 ;
48064806 bool isrt ;
48074807
@@ -4926,7 +4926,7 @@ xfs_bmap_del_extent_cow(
49264926 struct xfs_ifork * ifp = XFS_IFORK_PTR (ip , XFS_COW_FORK );
49274927 struct xfs_bmbt_irec new ;
49284928 xfs_fileoff_t del_endoff , got_endoff ;
4929- int state = BMAP_COWFORK ;
4929+ uint32_t state = BMAP_COWFORK ;
49304930
49314931 XFS_STATS_INC (mp , xs_del_exlist );
49324932
@@ -4999,7 +4999,7 @@ xfs_bmap_del_extent_real(
49994999 xfs_bmbt_irec_t * del , /* data to remove from extents */
50005000 int * logflagsp , /* inode logging flags */
50015001 int whichfork , /* data or attr fork */
5002- int bflags ) /* bmapi flags */
5002+ uint32_t bflags ) /* bmapi flags */
50035003{
50045004 xfs_fsblock_t del_endblock = 0 ; /* first block past del */
50055005 xfs_fileoff_t del_endoff ; /* first offset past del */
@@ -5015,7 +5015,7 @@ xfs_bmap_del_extent_real(
50155015 xfs_bmbt_irec_t new ; /* new record to be inserted */
50165016 /* REFERENCED */
50175017 uint qfield ; /* quota field to update */
5018- int state = xfs_bmap_fork_to_state (whichfork );
5018+ uint32_t state = xfs_bmap_fork_to_state (whichfork );
50195019 struct xfs_bmbt_irec old ;
50205020
50215021 mp = ip -> i_mount ;
@@ -5281,7 +5281,7 @@ __xfs_bunmapi(
52815281 struct xfs_inode * ip , /* incore inode */
52825282 xfs_fileoff_t start , /* first file offset deleted */
52835283 xfs_filblks_t * rlen , /* i/o: amount remaining */
5284- int flags , /* misc flags */
5284+ uint32_t flags , /* misc flags */
52855285 xfs_extnum_t nexts ) /* number of extents max */
52865286{
52875287 struct xfs_btree_cur * cur ; /* bmap btree cursor */
@@ -5609,7 +5609,7 @@ xfs_bunmapi(
56095609 struct xfs_inode * ip ,
56105610 xfs_fileoff_t bno ,
56115611 xfs_filblks_t len ,
5612- int flags ,
5612+ uint32_t flags ,
56135613 xfs_extnum_t nexts ,
56145614 int * done )
56155615{
0 commit comments