All of lore.kernel.org
 help / color / mirror / Atom feed
* open sets ext4_da_aops for DAX existing files
@ 2018-09-07 21:23 ` Kani, Toshi
  0 siblings, 0 replies; 18+ messages in thread
From: Kani, Toshi @ 2018-09-07 21:23 UTC (permalink / raw)
  To: linux-nvdimm, linux-fsdevel

I noticed that both ext4_da_aops and ext4_dax_aops are used on DAX
mounted ext4 files.  Looking at open() path:

New file
--------
  lookup_open
    ext4_create
      __ext4_new_inode
        ext4_set_inode_flags   // Set S_DAX flag
      ext4_set_aops            // Set aops to ext4_dax_aops

Existing file
-------------
  lookup_open
    ext4_lookup
      ext4_iget
        ext4_set_aops          // Set aops to ext4_da_aops
        ext4_set_inode_flags   // Set S_DAX flag

So, we set ext4_da_aops for existing files since S_DAX flag is set after
ext4_set_aops().

Thanks,
-Toshi


_______________________________________________
Linux-nvdimm mailing list
Linux-nvdimm@lists.01.org
https://lists.01.org/mailman/listinfo/linux-nvdimm

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

end of thread, other threads:[~2018-09-11 21:34 UTC | newest]

Thread overview: 18+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-09-07 21:23 open sets ext4_da_aops for DAX existing files Kani, Toshi
2018-09-07 21:23 ` Kani, Toshi
2018-09-10 12:54 ` Jeff Moyer
2018-09-10 12:54   ` Jeff Moyer
2018-09-10 14:21   ` Kani, Toshi
2018-09-10 14:21     ` Kani, Toshi
2018-09-10 14:26     ` Dan Williams
2018-09-10 14:26       ` Dan Williams
2018-09-10 14:29 ` Jan Kara
2018-09-10 14:29   ` Jan Kara
2018-09-10 14:51   ` Kani, Toshi
2018-09-10 14:51     ` Kani, Toshi
2018-09-10 17:58     ` Elliott, Robert (Persistent Memory)
2018-09-10 17:58       ` Elliott, Robert (Persistent Memory)
2018-09-11 15:27       ` Jan Kara
2018-09-11 15:27         ` Jan Kara
2018-09-11 16:34         ` Kani, Toshi
2018-09-11 16:34           ` Kani, Toshi

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.