Re: [PATCH] btrfs: use need_full_stripe() in __btrfs_map_block()

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Thu, Oct 12, 2017 at 12:03:31PM +0300, Nikolay Borisov wrote:
> 
> 
> On 12.10.2017 11:43, Anand Jain wrote:
> > A cleanup patch, use need_full_stripe() to replace the open code.
> 
> The code is equivalent by merit of De Morgan's law (I had to actually go
> look up the equivalence classes before I convinced myself it was correct)
> 
> ~A ^ ~B == ~(A or B)

You confused me first by the bitwise operators here, while the patch is
actually for the logical ones (and correct).
--
To unsubscribe from this list: send the line "unsubscribe linux-btrfs" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html




[Index of Archives]     [Linux Filesystem Development]     [Linux NFS]     [Linux NILFS]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux