mirror of
https://github.com/torvalds/linux.git
synced 2024-11-22 12:11:40 +00:00
block: Use PAGE_SECTORS_SHIFT
The bare use of '9' confuses some people. We also don't need this cast, since the compiler does exactly that cast for us. Signed-off-by: Matthew Wilcox (Oracle) <willy@infradead.org>
This commit is contained in:
parent
98d8ba69ff
commit
069fc464f1
@ -712,8 +712,7 @@ void *read_part_sector(struct parsed_partitions *state, sector_t n, Sector *p)
|
||||
goto out;
|
||||
}
|
||||
|
||||
page = read_mapping_page(mapping,
|
||||
(pgoff_t)(n >> (PAGE_SHIFT - 9)), NULL);
|
||||
page = read_mapping_page(mapping, n >> PAGE_SECTORS_SHIFT, NULL);
|
||||
if (IS_ERR(page))
|
||||
goto out;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user