Skip to content
Commit 3bde4c48 authored by Andreas Gruenbacher's avatar Andreas Gruenbacher
Browse files

gfs2: Make sure not to return short direct writes



When direct writes fail with -ENOTBLK because we're writing into a
hole (gfs2_iomap_begin()) or because of a page invalidation failure
(iomap_dio_rw()), we're falling back to buffered writes.  In that case,
when we lose the inode glock in gfs2_file_buffered_write(), we want to
re-acquire it instead of returning a short write.

Signed-off-by: default avatarAndreas Gruenbacher <agruenba@redhat.com>
parent 11661835
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment