RE: [PATCH] fs: prefer read_iter over read and write_iter over write

From: David Laight
Date: Fri May 20 2022 - 17:25:02 EST


From: Jason A. Donenfeld
> Sent: 20 May 2022 14:51
>
> Most kernel code prefers read_iter over read and write_iter over write,
> yet the read function pointer is tested first. Reverse these so that the
> iter function is always used first.

There will be a measurable performance hit for the xxx_iter versions.

David

-
Registered Address Lakeside, Bramley Road, Mount Farm, Milton Keynes, MK1 1PT, UK
Registration No: 1397386 (Wales)