zonefs: set FMODE_CAN_ODIRECT instead of a dummy direct_IO method
authorChristoph Hellwig <hch@lst.de>
Mon, 12 Jun 2023 05:35:15 +0000 (07:35 +0200)
committerDamien Le Moal <dlemoal@kernel.org>
Tue, 13 Jun 2023 23:51:18 +0000 (08:51 +0900)
commit8812387d056957355ef1d026cd38bed3830649db
treebacecb7c9a68add8007909f2e50100d0fc96f1c3
parent16d7fd3cfa7259729c8e2a7620bd5b4ca480da85
zonefs: set FMODE_CAN_ODIRECT instead of a dummy direct_IO method

Since commit a2ad63daa88b ("VFS: add FMODE_CAN_ODIRECT file flag") file
systems can just set the FMODE_CAN_ODIRECT flag at open time instead of
wiring up a dummy direct_IO method to indicate support for direct I/O.
Do that for zonefs so that noop_direct_IO can eventually be removed.

Signed-off-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Damien Le Moal <dlemoal@kernel.org>
fs/zonefs/file.c