Re: [PATCH 1/3] fuse: invalidate page cache pages before direct write

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

 



Hi Alan,


On 8/1/23 18:14, Alan Huang wrote:
2023年8月1日 16:06,Hao Xu <hao.xu@xxxxxxxxx> 写道:

From: Hao Xu <howeyxu@xxxxxxxxxxx>

In FOPEN_DIRECT_IO, page cache may still be there for a file since
private mmap is allowed. Direct write should respect that and invalidate
the corresponding pages so that page cache readers don't get stale data.
Do other filesystems also invalidate page cache in this case?


For now all filesystems that use iomap do this invalidation, see: __iomap_dio_rw()

e.g. ext4, xfs


Regards,

Hao




[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