[PATCH v2 0/2] zonefs: Fix data corruption and error return

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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




[Index of Archives]     [Linux Ext4 Filesystem]     [Union Filesystem]     [Filesystem Testing]     [Ceph Users]     [Ecryptfs]     [NTFS 3]     [AutoFS]     [Kernel Newbies]     [Share Photos]     [Security]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux Cachefs]     [Reiser Filesystem]     [Linux RAID]     [NTFS 3]     [Samba]     [Device Mapper]     [CEPH Development]

  Powered by Linux