]> git.baikalelectronics.ru Git - kernel.git/commit
block: Simplify read_part_sector()
authorMatthew Wilcox (Oracle) <willy@infradead.org>
Wed, 18 May 2022 03:36:55 +0000 (23:36 -0400)
committerMatthew Wilcox (Oracle) <willy@infradead.org>
Tue, 2 Aug 2022 16:34:03 +0000 (12:34 -0400)
commit8b5d143c95533aa18ac3b39b82568391a7225a61
tree2dd911a2e81da889e3ed26f94f1f31037029cd09
parentcf948cbc35e80bbdde41fec0bb7f2a7c5e276ffb
block: Simplify read_part_sector()

That rather complicated expression is just trying to find the offset
of this sector within a page, and there are easier ways to express that.

Signed-off-by: Matthew Wilcox (Oracle) <willy@infradead.org>
block/partitions/core.c