diff mbox series

[v6,16/16] xfs: Enable async buffered write support

Message ID 20220526173840.578265-17-shr@fb.com (mailing list archive)
State Deferred, archived
Headers show
Series io-uring/xfs: support async buffered writes | expand

Commit Message

Stefan Roesch May 26, 2022, 5:38 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 31, 2022, 7:05 a.m. UTC | #1
On Thu, May 26, 2022 at 10:38:40AM -0700, Stefan Roesch wrote:
> This turns on the async buffered write support for XFS.

I think this belongs into the previous patch, but otherwise this looks
obviously fine.
Stefan Roesch May 31, 2022, 7:18 p.m. UTC | #2
On 5/31/22 12:05 AM, Christoph Hellwig wrote:
> On Thu, May 26, 2022 at 10:38:40AM -0700, Stefan Roesch wrote:
>> This turns on the async buffered write support for XFS.
> 
> I think this belongs into the previous patch, but otherwise this looks
> obviously fine.

Merged it with the previous patch.
diff mbox series

Patch

diff --git a/fs/xfs/xfs_file.c b/fs/xfs/xfs_file.c
index e9d615f4c209..2297770364b0 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;
 }