diff options
author | Andreas Gruenbacher <agruenba@redhat.com> | 2018-10-10 21:18:18 +0100 |
---|---|---|
committer | Andreas Gruenbacher <agruenba@redhat.com> | 2018-10-12 17:14:42 +0200 |
commit | fee5150c484c75c473dc1e2d07cb6151384ef85f (patch) | |
tree | ef93c3fcfb79344406aa6e6aaba50da1cce979b1 /mm/zpool.c | |
parent | dc480feb454a975b7ee2c18a2f98fb34e04d3baf (diff) |
gfs2: Fix iomap buffered write support for journaled files (2)
It turns out that the fix in commit 6636c3cc56 is bad; the assertion
that the iomap code no longer creates buffer heads is incorrect for
filesystems that set the IOMAP_F_BUFFER_HEAD flag.
Instead, what's happening is that gfs2_iomap_begin_write treats all
files that have the jdata flag set as journaled files, which is
incorrect as long as those files are inline ("stuffed"). We're handling
stuffed files directly via the page cache, which is why we ended up with
pages without buffer heads in gfs2_page_add_databufs.
Fix this by handling stuffed journaled files correctly in
gfs2_iomap_begin_write.
This reverts commit 6636c3cc5690c11631e6366cf9a28fb99c8b25bb.
Signed-off-by: Andreas Gruenbacher <agruenba@redhat.com>
Diffstat (limited to 'mm/zpool.c')
0 files changed, 0 insertions, 0 deletions