diff mbox series

[RFC,v3,18/18] xfs: Enable async buffered write support

Message ID 20220518233709.1937634-19-shr@fb.com (mailing list archive)
State New
Headers show
Series io-uring/xfs: support async buffered writes | expand

Commit Message

Stefan Roesch May 18, 2022, 11:37 p.m. UTC
This turns on the async buffered write support for XFS.

Signed-off-by: Stefan Roesch <shr@fb.com>
---
 fs/xfs/xfs_file.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Comments

Christoph Hellwig May 19, 2022, 8:32 a.m. UTC | #1
On Wed, May 18, 2022 at 04:37:09PM -0700, Stefan Roesch wrote:
> This turns on the async buffered write support for XFS.

Can you group the patches by code they are touching, i.e, first
VFS enablement, the MM, then iomap, then xfs?  That shoud make
things a bit easier to review sequentially.
Stefan Roesch May 20, 2022, 6:32 p.m. UTC | #2
On 5/19/22 1:32 AM, Christoph Hellwig wrote:
> On Wed, May 18, 2022 at 04:37:09PM -0700, Stefan Roesch wrote:
>> This turns on the async buffered write support for XFS.
> 
> Can you group the patches by code they are touching, i.e, first
> VFS enablement, the MM, then iomap, then xfs?  That shoud make
> things a bit easier to review sequentially.

I reordered the patches.
diff mbox series

Patch

diff --git a/fs/xfs/xfs_file.c b/fs/xfs/xfs_file.c
index ad3175b7d366..af4fdc852da5 100644
--- a/fs/xfs/xfs_file.c
+++ b/fs/xfs/xfs_file.c
@@ -1169,7 +1169,7 @@  xfs_file_open(
 		return -EFBIG;
 	if (xfs_is_shutdown(XFS_M(inode->i_sb)))
 		return -EIO;
-	file->f_mode |= FMODE_NOWAIT | FMODE_BUF_RASYNC;
+	file->f_mode |= FMODE_NOWAIT | FMODE_BUF_RASYNC | FMODE_BUF_WASYNC;
 	return 0;
 }