linux-fsdevel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH v2 0/2] zonefs: Fix data corruption and error return
@ 2023-03-30  1:54 Damien Le Moal
  2023-03-30  1:54 ` [PATCH v2 1/2] zonefs: Always invalidate last cached page on append write Damien Le Moal
                   ` (2 more replies)
  0 siblings, 3 replies; 7+ messages in thread
From: Damien Le Moal @ 2023-03-30  1:54 UTC (permalink / raw)
  To: linux-fsdevel; +Cc: Johannes Thumshirn, Hans Holmberg, Christoph Hellwig

Patch 1 fixes a potential data corruption when the last page of the
inode is cached and a sync append direct write partially modify the
data of that page on disk. The second patch avoids propagating to user
space the -ENOTBLK error potentially returned by iomap_dio_rw().

Changes from v1:
 - Reworked patch 1 commit message and use an exact end argument for the
   call to invalidate_inode_pages2_range().
 - Added patch 2.

Damien Le Moal (2):
  zonefs: Always invalidate last cached page on append write
  zonefs: Do not propagate iomap_dio_rw() ENOTBLK error to user space

 fs/zonefs/file.c | 28 ++++++++++++++++++++++++++--
 1 file changed, 26 insertions(+), 2 deletions(-)

-- 
2.39.2


^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2023-03-30 11:26 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-03-30  1:54 [PATCH v2 0/2] zonefs: Fix data corruption and error return Damien Le Moal
2023-03-30  1:54 ` [PATCH v2 1/2] zonefs: Always invalidate last cached page on append write Damien Le Moal
2023-03-30  1:58   ` Christoph Hellwig
2023-03-30  1:54 ` [PATCH v2 2/2] zonefs: Do not propagate iomap_dio_rw() ENOTBLK error to user space Damien Le Moal
2023-03-30  1:58   ` Christoph Hellwig
2023-03-30  8:45 ` [PATCH v2 0/2] zonefs: Fix data corruption and error return Johannes Thumshirn
2023-03-30 11:25   ` Hans Holmberg

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).