]> 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)
commit0ece9b0903d59388631713e0f713a99638ab0e1c
tree2dd911a2e81da889e3ed26f94f1f31037029cd09
parent3cf82b1c64e2cf51e5e5b34e68996559f0eda68a
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