diff options
author | Josef Bacik <josef@redhat.com> | 2010-05-23 17:00:54 +0200 |
---|---|---|
committer | Chris Mason <chris.mason@oracle.com> | 2010-05-25 16:34:55 +0200 |
commit | 66f998f611897319b555364cefd5d6e88a205866 (patch) | |
tree | 3d2a46624bf6cf1ea1645cc8dad975af858dc114 /mm/mm_init.c | |
parent | Btrfs: Metadata ENOSPC handling for balance (diff) | |
download | linux-66f998f611897319b555364cefd5d6e88a205866.tar.xz linux-66f998f611897319b555364cefd5d6e88a205866.zip |
fs: allow short direct-io reads to be completed via buffered IO
This is similar to what already happens in the write case. If we have a short
read while doing O_DIRECT, instead of just returning, fallthrough and try to
read the rest via buffered IO. BTRFS needs this because if we encounter a
compressed or inline extent during DIO, we need to fallback on buffered. If the
extent is compressed we need to read the entire thing into memory and
de-compress it into the users pages. I have tested this with fsx and everything
works great. Thanks,
Signed-off-by: Josef Bacik <josef@redhat.com>
Signed-off-by: Chris Mason <chris.mason@oracle.com>
Diffstat (limited to 'mm/mm_init.c')
0 files changed, 0 insertions, 0 deletions