bcachefs: Remove page_state_init_for_read
authorMatthew Wilcox (Oracle) <willy@infradead.org>
Thu, 5 Nov 2020 15:58:37 +0000 (15:58 +0000)
committerKent Overstreet <kent.overstreet@linux.dev>
Sun, 22 Oct 2023 21:08:46 +0000 (17:08 -0400)
This is dead code; delete the function.

Signed-off-by: Matthew Wilcox (Oracle) <willy@infradead.org>
Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>
fs/bcachefs/fs-io.c

index edc3d73..1fae450 100644 (file)
@@ -624,12 +624,6 @@ static void bch2_readpages_end_io(struct bio *bio)
        bio_put(bio);
 }
 
-static inline void page_state_init_for_read(struct page *page)
-{
-       SetPagePrivate(page);
-       page->private = 0;
-}
-
 struct readpages_iter {
        struct address_space    *mapping;
        struct page             **pages;