On 5/12/23 07:32, Christoph Hellwig wrote: > On Fri, May 12, 2023 at 01:29:57AM -0700, Chaitanya Kulkarni wrote: >> zram_bio_read() and zram_bio_write() are 26 lines rach and share most of >> the code except call to zram_bdev_read() and zram_bvec_write() calls. >> Consolidate code into single zram_bio_rw() to remove the duplicate code >> and an extra function that is only needed for 2 lines of code :- > And it adds an extra conditional to every page in the fast path.. will create a version without additional branch in v2 .. -ck