diff options
author | Linus Torvalds <torvalds@linux-foundation.org> | 2022-03-26 20:41:52 +0100 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2022-03-26 20:41:52 +0100 |
commit | a060c9409e25d573c23fccb8e02f098aa33f812e (patch) | |
tree | 71c107fa653cc1e02ac0e1b7971b2c14eb0d7465 /fs/iomap | |
parent | Merge tag 'array-bounds-v5.18-rc1' of git://git.kernel.org/pub/scm/linux/kern... (diff) | |
parent | fs/iomap: Fix buffered write page prefaulting (diff) | |
download | linux-a060c9409e25d573c23fccb8e02f098aa33f812e.tar.xz linux-a060c9409e25d573c23fccb8e02f098aa33f812e.zip |
Merge tag 'write-page-prefaulting' of git://git.kernel.org/pub/scm/linux/kernel/git/gfs2/linux-gfs2
Pull iomap fixlet from Andreas Gruenbacher:
"Fix buffered write page prefaulting.
I forgot to send it the previous merge window. I've only improved the
patch description since"
* tag 'write-page-prefaulting' of git://git.kernel.org/pub/scm/linux/kernel/git/gfs2/linux-gfs2:
fs/iomap: Fix buffered write page prefaulting
Diffstat (limited to 'fs/iomap')
-rw-r--r-- | fs/iomap/buffered-io.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/iomap/buffered-io.c b/fs/iomap/buffered-io.c index d5fbd860c8cd..49dccd9050f1 100644 --- a/fs/iomap/buffered-io.c +++ b/fs/iomap/buffered-io.c @@ -765,7 +765,7 @@ again: * same page as we're writing to, without it being marked * up-to-date. */ - if (unlikely(fault_in_iov_iter_readable(i, bytes))) { + if (unlikely(fault_in_iov_iter_readable(i, bytes) == bytes)) { status = -EFAULT; break; } |