Re: [PATCH v7 04/19] iov_iter: Turn iov_iter_fault_in_readable into fault_in_iov_iter_readable

From: Linus Torvalds
Date: Fri Aug 27 2021 - 14:57:42 EST


On Fri, Aug 27, 2021 at 11:53 AM Al Viro <viro@xxxxxxxxxxxxxxxxxx> wrote:
>
> I really disagree with these calling conventions. "Number not faulted in"
> is bloody useless

It's what we already have for copy_to/from_user(), so it's actually
consistent with that.

And it avoids changing all the existing tests where people really
cared only about the "everything ok" case.

Andreas' first patch did that changed version, and was ugly as hell.

But if you have a version that avoids the ugliness...

Linus