Re: [PATCH rdma-next 2/4] IB/core: Enable ODP sync without faulting

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

 



On 9/16/2020 7:47 PM, Christoph Hellwig wrote:
+		if (fault) {
+			/*
+			 * Since we asked for hmm_range_fault() to populate pages,
Totally pointless line over 80 characters.
I'll leave the comment as was asked by Leon, will fix to match 80 characters.
+			access_mask = (range.hmm_pfns[pfn_index] & HMM_PFN_WRITE) ?
+				(ODP_READ_ALLOWED_BIT | ODP_WRITE_ALLOWED_BIT) :
+				 ODP_READ_ALLOWED_BIT;
+		}
Another weird overly long line, caused by rather osfucated code.  This
really should be something like:

			access_mask = ODP_READ_ALLOWED_BIT;
			if (range.hmm_pfns[pfn_index] & HMM_PFN_WRITE)
				access_mask |= ODP_WRITE_ALLOWED_BIT;

No problem, will be part of V1.




[Index of Archives]     [Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Photo]     [Yosemite News]     [Yosemite Photos]     [Linux Kernel]     [Linux SCSI]     [XFree86]

  Powered by Linux