Messages in this thread | | | From | David Laight <> | Subject | RE: [PATCH] fs: prefer read_iter over read and write_iter over write | Date | Fri, 20 May 2022 21:24:50 +0000 |
| |
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)
| |