[PATCH 3/4] Btrfs: remove unnecessary variant in btrfs_sector_sum structure

2013-03-28 Thread Miao Xie
bytenr in btrfs_sector_sum is unnecessary, because the extents that btrfs_sector_sum points to are continuous,we can find out the expected checksums by btrfs_ordered_sum's bytenr and the offset, so we can remove btrfs_sector_sum's bytenr. After removing bytenr, we don't use the while loop to get

Re: [PATCH 3/4] Btrfs: remove unnecessary variant in btrfs_sector_sum structure

2013-03-28 Thread Liu Bo
On Thu, Mar 28, 2013 at 04:11:38PM +0800, Miao Xie wrote: bytenr in btrfs_sector_sum is unnecessary, because the extents that btrfs_sector_sum points to are continuous,we can find out the expected checksums by btrfs_ordered_sum's bytenr and the offset, so we can remove btrfs_sector_sum's

Re: [PATCH 3/4] Btrfs: remove unnecessary variant in btrfs_sector_sum structure

2013-03-28 Thread Liu Bo
On Thu, Mar 28, 2013 at 10:38:34PM +0800, Liu Bo wrote: On Thu, Mar 28, 2013 at 04:11:38PM +0800, Miao Xie wrote: bytenr in btrfs_sector_sum is unnecessary, because the extents that btrfs_sector_sum points to are continuous,we can find out the expected checksums by btrfs_ordered_sum's

Re: [PATCH 3/4] Btrfs: remove unnecessary variant in btrfs_sector_sum structure

2013-03-28 Thread Miao Xie
On Thu, 28 Mar 2013 22:41:50 +0800, Liu Bo wrote: On Thu, Mar 28, 2013 at 10:38:34PM +0800, Liu Bo wrote: On Thu, Mar 28, 2013 at 04:11:38PM +0800, Miao Xie wrote: bytenr in btrfs_sector_sum is unnecessary, because the extents that btrfs_sector_sum points to are continuous,we can find out the