Re: [PATCH 07/42] btrfs: use u32 for length related members of btrfs_ordered_extent

2021-04-16 Thread Qu Wenruo
On 2021/4/16 下午9:54, Josef Bacik wrote: On 4/15/21 1:04 AM, Qu Wenruo wrote: Unlike btrfs_file_extent_item, btrfs_ordered_extent has its length limit (BTRFS_MAX_EXTENT_SIZE), which is far smaller than U32_MAX. Using u64 for those length related members are just a waste of memory. This patch

Re: [PATCH 07/42] btrfs: use u32 for length related members of btrfs_ordered_extent

2021-04-16 Thread Josef Bacik
On 4/15/21 1:04 AM, Qu Wenruo wrote: Unlike btrfs_file_extent_item, btrfs_ordered_extent has its length limit (BTRFS_MAX_EXTENT_SIZE), which is far smaller than U32_MAX. Using u64 for those length related members are just a waste of memory. This patch will make the following members u32: - num_