iomap: Remove unnecessary test from iomap_release_folio()
authorMatthew Wilcox (Oracle) <willy@infradead.org>
Fri, 2 Jun 2023 22:07:48 +0000 (18:07 -0400)
committerMatthew Wilcox (Oracle) <willy@infradead.org>
Mon, 24 Jul 2023 22:04:30 +0000 (18:04 -0400)
commit7a8eb01b078f6280089347feee02aebda0024880
tree59e2eaf2d5fec3a24b231d3f4a7f54b6cb16819b
parent32b29cc9db455f69ac792c637aea11493bfaf1bc
iomap: Remove unnecessary test from iomap_release_folio()

The check for the folio being under writeback is unnecessary; the caller
has checked this and the folio is locked, so the folio cannot be under
writeback at this point.

The comment is somewhat misleading in that it talks about one specific
situation in which we can see a dirty folio.  There are others, so change
the comment to explain why we can't release the iomap_page.

Signed-off-by: Matthew Wilcox (Oracle) <willy@infradead.org>
Reviewed-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: Darrick J. Wong <djwong@kernel.org>
fs/iomap/buffered-io.c