summaryrefslogtreecommitdiff
path: root/fs/btrfs/sysfs.c
diff options
context:
space:
mode:
authorFilipe Manana <fdmanana@suse.com>2022-10-31 11:43:56 +0000
committerDavid Sterba <dsterba@suse.com>2022-12-05 18:00:48 +0100
commit20af93d97f46a824647326278df7d377ba3269ff (patch)
treedf9e1e22a486bce7b7e7aef5f1bc409021839f29 /fs/btrfs/sysfs.c
parentc30ff698da87aeabb459cca75fe4a77a858609fb (diff)
btrfs: update stale comment for nowait direct IO writes
If when doing a direct IO write we need to fallback to buffered IO, we this comment at btrfs_direct_write() that says we can't directly fallback to buffered IO if we have a NOWAIT iocb, because we have no support for NOWAIT buffered writes. That is not true anymore, as support for NOWAIT buffered writes was added recently in commit 926078b21db9 ("btrfs: enable nowait async buffered writes"). However we still can't fallback to a buffered write in case we have a NOWAIT iocb, because we'll need to flush delalloc and wait for it to complete after doing the buffered write, and that can block for several reasons, the main reason being waiting for IO to complete. So update the comment to mention all that. Signed-off-by: Filipe Manana <fdmanana@suse.com> Signed-off-by: David Sterba <dsterba@suse.com>
Diffstat (limited to 'fs/btrfs/sysfs.c')
0 files changed, 0 insertions, 0 deletions