iomap: Don't opencode SECTOR_SIZE macro
Subsystems (2)
PATCH 1/1 iomap: Don't opencode SECTOR_SIZE macro
Signed-off-by Nikolay Borisov <[email protected]>
--- fs/iomap/buffered-io.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
fs/iomap/buffered-io.c +1 -1
@@ -29,7 +29,7 @@ struct iomap_page {atomic_t read_count;atomic_t write_count;spinlock_t uptodate_lock; -DECLARE_BITMAP (uptodate,PAGE_SIZE /512 ); +DECLARE_BITMAP (uptodate,PAGE_SIZE /SECTOR_SIZE ); };static inline struct iomap_page *to_iomap_page (struct page *page)
Signature · 1 line
2.17.1
Quoted 10 lines · Nikolay Borisov
Signed-off-by Nikolay Borisov <[email protected]>--- fs/iomap/buffered-io.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)fs/iomap/buffered-io.c +0
-0
fs/iomap/buffered-io.c struct iomap_page { · line 32
Quoted 5 lines
fs/iomap/buffered-io.c +1
-1@@ -29,7 +29,7 @@ struct iomap_page {atomic_t read_count;atomic_t write_count;spinlock_t uptodate_lock; -DECLARE_BITMAP (uptodate,PAGE_SIZE /512 ); +DECLARE_BITMAP (uptodate,PAGE_SIZE /SECTOR_SIZE );
FYI, Matthew Wilcox is (probably) going to replace this with a VLA in 5.10 as part of refactorings for THP support ("THP iomap patches for 5.10"), so I think I'll take that series instead.
--D
Quoted 6 lines
fs/iomap/buffered-io.c +0
-0};static inline struct iomap_page *to_iomap_page (struct page *page)Signature · 1 line
2.17.1