]> www.infradead.org Git - users/jedix/linux-maple.git/commit
bcachefs: Do not check folio_has_private()
authorMatthew Wilcox (Oracle) <willy@infradead.org>
Tue, 20 Aug 2024 04:10:11 +0000 (05:10 +0100)
committerKent Overstreet <kent.overstreet@linux.dev>
Mon, 9 Sep 2024 13:41:49 +0000 (09:41 -0400)
commita8cdf0ff46643305be6ae2d580d140bb3832af39
treeb1fc47fa68060b760529b7e5b5b7ecb5f416eccf
parentfdbc9c390ade238383f5a24e4b32e49550dc90e4
bcachefs: Do not check folio_has_private()

folio_has_private() is an attractive nuisance; filesystem authors
generally don't realise that it actually checks two flags (one of which
is never set by bcachefs).  There's no need to check the private flag at
all; for folios owned by bcachefs, we know that folio->private is NULL
when the private flag is clear and non-NULL when the private flag is set.

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