File tree Expand file tree Collapse file tree 7 files changed +10
-10
lines changed Expand file tree Collapse file tree 7 files changed +10
-10
lines changed Original file line number Diff line number Diff line change @@ -1712,8 +1712,8 @@ xfs_configure_buftarg_atomic_writes(
1712
1712
max_bytes = 0 ;
1713
1713
}
1714
1714
1715
- btp -> bt_bdev_awu_min = min_bytes ;
1716
- btp -> bt_bdev_awu_max = max_bytes ;
1715
+ btp -> bt_awu_min = min_bytes ;
1716
+ btp -> bt_awu_max = max_bytes ;
1717
1717
}
1718
1718
1719
1719
/* Configure a buffer target that abstracts a block device. */
Original file line number Diff line number Diff line change @@ -112,9 +112,9 @@ struct xfs_buftarg {
112
112
struct percpu_counter bt_readahead_count ;
113
113
struct ratelimit_state bt_ioerror_rl ;
114
114
115
- /* Atomic write unit values, bytes */
116
- unsigned int bt_bdev_awu_min ;
117
- unsigned int bt_bdev_awu_max ;
115
+ /* Hardware atomic write unit values, bytes */
116
+ unsigned int bt_awu_min ;
117
+ unsigned int bt_awu_max ;
118
118
119
119
/* built-in cache, if we're not using the perag one */
120
120
struct xfs_buf_cache bt_cache [];
Original file line number Diff line number Diff line change @@ -752,7 +752,7 @@ xfs_file_dio_write_atomic(
752
752
* HW offload should be faster, so try that first if it is already
753
753
* known that the write length is not too large.
754
754
*/
755
- if (ocount > xfs_inode_buftarg (ip )-> bt_bdev_awu_max )
755
+ if (ocount > xfs_inode_buftarg (ip )-> bt_awu_max )
756
756
dops = & xfs_atomic_write_cow_iomap_ops ;
757
757
else
758
758
dops = & xfs_direct_write_iomap_ops ;
Original file line number Diff line number Diff line change @@ -358,7 +358,7 @@ static inline bool xfs_inode_has_bigrtalloc(const struct xfs_inode *ip)
358
358
359
359
static inline bool xfs_inode_can_hw_atomic_write (const struct xfs_inode * ip )
360
360
{
361
- return xfs_inode_buftarg (ip )-> bt_bdev_awu_max > 0 ;
361
+ return xfs_inode_buftarg (ip )-> bt_awu_max > 0 ;
362
362
}
363
363
364
364
/*
Original file line number Diff line number Diff line change @@ -827,7 +827,7 @@ xfs_bmap_hw_atomic_write_possible(
827
827
/*
828
828
* The ->iomap_begin caller should ensure this, but check anyway.
829
829
*/
830
- return len <= xfs_inode_buftarg (ip )-> bt_bdev_awu_max ;
830
+ return len <= xfs_inode_buftarg (ip )-> bt_awu_max ;
831
831
}
832
832
833
833
static int
Original file line number Diff line number Diff line change @@ -665,7 +665,7 @@ xfs_get_atomic_write_max_opt(
665
665
* less than our out of place write limit, but we don't want to exceed
666
666
* the awu_max.
667
667
*/
668
- return min (awu_max , xfs_inode_buftarg (ip )-> bt_bdev_awu_max );
668
+ return min (awu_max , xfs_inode_buftarg (ip )-> bt_awu_max );
669
669
}
670
670
671
671
static void
Original file line number Diff line number Diff line change @@ -699,7 +699,7 @@ xfs_calc_group_awu_max(
699
699
700
700
if (g -> blocks == 0 )
701
701
return 0 ;
702
- if (btp && btp -> bt_bdev_awu_min > 0 )
702
+ if (btp && btp -> bt_awu_min > 0 )
703
703
return max_pow_of_two_factor (g -> blocks );
704
704
return rounddown_pow_of_two (g -> blocks );
705
705
}
You can’t perform that action at this time.
0 commit comments