linux-fsdevel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH v2 0/2] fs, dax: lookup dax_device at mount time
@ 2017-08-28  3:48 Dan Williams
  2017-08-28  3:48 ` [PATCH v2 1/2] fs, xfs: perform dax_device lookup at mount Dan Williams
  2017-08-28  3:48 ` [PATCH v2 2/2] ext2, ext4: use the super_block dax_device Dan Williams
  0 siblings, 2 replies; 10+ messages in thread
From: Dan Williams @ 2017-08-28  3:48 UTC (permalink / raw)
  To: linux-fsdevel
  Cc: jack, Darrick J. Wong, linux-nvdimm, linux-xfs, Andreas Dilger,
	Jan Kara, Theodore Ts'o, linux-ext4, hch

Changes since v1:
* Move the lookup to mount time. (Christoph)

---

Christoph notes:

    I just noticed that we now do a fs_dax_get_by_host in every
    iomap_begin call for DAX. This function iterates a list, does a
    string compared and igrab. I really think we need to cache this in
    the superblock (possible even the fs superblock) similar to what we
    do for the block device.

This passes the libnvdimm unit tests.

---

Dan Williams (2):
      fs, xfs: perform dax_device lookup at mount
      ext2, ext4: use the super_block dax_device


 drivers/dax/super.c |   10 ++++++++++
 fs/ext2/inode.c     |   10 ++--------
 fs/ext4/inode.c     |   10 ++--------
 fs/super.c          |   26 +++++++++++++++++++++++---
 fs/xfs/xfs_aops.c   |   13 +++++++++++++
 fs/xfs/xfs_aops.h   |    1 +
 fs/xfs/xfs_buf.c    |    4 +++-
 fs/xfs/xfs_buf.h    |    3 ++-
 fs/xfs/xfs_iomap.c  |   10 +---------
 fs/xfs/xfs_super.c  |   21 +++++++++++++++++----
 include/linux/dax.h |    6 ++++++
 include/linux/fs.h  |    1 +
 12 files changed, 81 insertions(+), 34 deletions(-)

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

end of thread, other threads:[~2017-08-29 21:36 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2017-08-28  3:48 [PATCH v2 0/2] fs, dax: lookup dax_device at mount time Dan Williams
2017-08-28  3:48 ` [PATCH v2 1/2] fs, xfs: perform dax_device lookup at mount Dan Williams
2017-08-28  8:31   ` Jan Kara
2017-08-28 16:28   ` Darrick J. Wong
2017-08-29 21:26   ` Christoph Hellwig
2017-08-29 21:31     ` Dan Williams
2017-08-29 21:35       ` Dan Williams
2017-08-29 21:36         ` Christoph Hellwig
2017-08-28  3:48 ` [PATCH v2 2/2] ext2, ext4: use the super_block dax_device Dan Williams
2017-08-28  8:27   ` Jan Kara

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).