[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-ID: <fb90cc2d-b12c-738f-21a4-dd7a8ae0556a@kernel.dk>
Date: Mon, 3 Aug 2020 17:02:11 -0600
From: Jens Axboe <axboe@...nel.dk>
To: Theodore Ts'o <tytso@....edu>
Cc: linux-ext4@...r.kernel.org,
"linux-kernel@...r.kernel.org" <linux-kernel@...r.kernel.org>
Subject: [PATCH] ext4: flag as supporting buffered async reads
ext4 uses generic_file_read_iter(), which already supports this.
Cc: Theodore Ts'o <tytso@....edu>
Signed-off-by: Jens Axboe <axboe@...nel.dk>
---
Resending this one, as I've been carrying it privately since May. The
necessary bits are now upstream (and XFS/btrfs equiv changes as well),
please consider this one for 5.9. Thanks!
diff --git a/fs/ext4/file.c b/fs/ext4/file.c
index 2a01e31a032c..1e827410e9e1 100644
--- a/fs/ext4/file.c
+++ b/fs/ext4/file.c
@@ -839,7 +839,7 @@ static int ext4_file_open(struct inode * inode, struct file * filp)
return ret;
}
- filp->f_mode |= FMODE_NOWAIT;
+ filp->f_mode |= FMODE_NOWAIT | FMODE_BUF_RASYNC;
return dquot_file_open(inode, filp);
}
--
Jens Axboe
Powered by blists - more mailing lists