iomap: Remove IOMAP_DIO_NOSYNC unused dio flag
authorRitesh Harjani (IBM) <ritesh.list@gmail.com>
Fri, 21 Apr 2023 15:52:43 +0000 (08:52 -0700)
committerDarrick J. Wong <djwong@kernel.org>
Fri, 21 Apr 2023 15:54:47 +0000 (08:54 -0700)
commitd3bff1fc50d4fcaccddbd63917dd94172e80c40e
tree2230bd2216e1d392eea1a9780a8ce70a7365cc08
parentf6c73a11133ef991284311387ca707b48bf53912
iomap: Remove IOMAP_DIO_NOSYNC unused dio flag

IOMAP_DIO_NOSYNC earlier was added for use in btrfs. But it seems for
aio dsync writes this is not useful anyway. For aio dsync case, we
we queue the request and return -EIOCBQUEUED. Now, since IOMAP_DIO_NOSYNC
doesn't let iomap_dio_complete() to call generic_write_sync(),
hence we may lose the sync write.

Hence kill this flag as it is not in use by any FS now.

Tested-by: Disha Goel <disgoel@linux.ibm.com>
Reviewed-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: Darrick J. Wong <djwong@kernel.org>
Signed-off-by: Ritesh Harjani (IBM) <ritesh.list@gmail.com>
Signed-off-by: Darrick J. Wong <djwong@kernel.org>
fs/iomap/direct-io.c
include/linux/iomap.h