Thread (18 messages) 18 messages, 7 authors, 2017-08-21

Re: [RFC PATCH 0/7] dax, ext4: Synchronous page faults

From: Christoph Hellwig <hch@infradead.org>
Date: 2017-08-01 11:02:44
Also in: linux-fsdevel, linux-xfs, nvdimm

Possibly related (same subject, not in this thread)

On Fri, Jul 28, 2017 at 11:38:21AM +0200, Jan Kara wrote:
Well, you are right I can make the implementation work with struct file
flag as well - let's call it O_DAXDSYNC. However there are filesystem
operations where you may need to answer question: Is there any fd with
O_DAXDSYNC open against this inode (for operations that change file offset
-> block mapping)? And in that case inode flag is straightforward while
file flag is a bit awkward (you need to implement counter of fd's with that
flag in the inode).
We can still keep and inode flag as the internal implementation
detail.  As mentioned earlier the right flag to control behavior
of a mapping is an mmap flag.  And the initial naive implementation
would simply mark the inode as sync once the first MAP_SYNC open happens
on it.  We could then move to more precise tracking if/when needed.
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help