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

Bart Van Assche
2023-09-29T17:51:50Z

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.