From: Matthew Wilcox (Oracle) Date: Thu, 5 Nov 2020 15:58:37 +0000 (+0000) Subject: bcachefs: Remove page_state_init_for_read X-Git-Tag: v6.7-rc1~201^2~1949 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=96fee47e44939c087d1a0f9ed69555374e751843;p=thirdparty%2Flinux.git bcachefs: Remove page_state_init_for_read This is dead code; delete the function. Signed-off-by: Matthew Wilcox (Oracle) Signed-off-by: Kent Overstreet --- diff --git a/fs/bcachefs/fs-io.c b/fs/bcachefs/fs-io.c index edc3d73d26ba9..1fae450df8a65 100644 --- a/fs/bcachefs/fs-io.c +++ b/fs/bcachefs/fs-io.c @@ -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;