]> 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)
commit235042dc20ad5c2804be97393d9f91d161166b38
tree2dd911a2e81da889e3ed26f94f1f31037029cd09
parentf4f2936b5a8cfb80e9cdcbef4ee005509c371b15
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