Thread (104 messages) 104 messages, 13 authors, 2023-12-05

Re: [PATCH 10/21] block: Add fops atomic write support

From: Bart Van Assche <bvanassche@acm.org>
Date: 2023-09-29 17:51:51
Also in: linux-block, linux-fsdevel, linux-nvme, linux-xfs, lkml

On 9/29/23 03:27, John Garry wrote:
+	if (pos % atomic_write_unit_min_bytes)
+		return false;
+	if (iov_iter_count(iter) % atomic_write_unit_min_bytes)
+		return false;
+	if (!is_power_of_2(iov_iter_count(iter)))
+		return false;
[ ... ]
+	if (pos % iov_iter_count(iter))
+		return false;
Where do these rules come from? Is there any standard that requires
any of the above?

Thanks,

Bart.
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help