linux-fsdevel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 0/2] fs: cache dax_device lookup result
@ 2017-08-25  0:35 Dan Williams
  2017-08-25  0:35 ` [PATCH 1/2] xfs: " Dan Williams
  2017-08-25  0:35 ` [PATCH 2/2] ext2, ext4: " Dan Williams
  0 siblings, 2 replies; 7+ messages in thread
From: Dan Williams @ 2017-08-25  0:35 UTC (permalink / raw)
  To: linux-fsdevel
  Cc: jack, Darrick J. Wong, linux-nvdimm, linux-kernel, Andreas Dilger,
	Jan Kara, Theodore Ts'o, hch

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.

Fix this up to cache the result of the dax_device lookup in 'struct
xfs_mount' for xfs and 'struct super_block' for ext2/ext4.

---

Dan Williams (2):
      xfs: cache dax_device lookup result
      ext2, ext4: cache dax_device lookup result


 fs/ext2/inode.c    |   11 +++++++----
 fs/ext4/inode.c    |   11 +++++++----
 fs/xfs/xfs_aops.c  |   24 ++++++++++++++++++++++++
 fs/xfs/xfs_aops.h  |    1 +
 fs/xfs/xfs_buf.h   |    1 +
 fs/xfs/xfs_iomap.c |    9 +--------
 include/linux/fs.h |    3 +++
 7 files changed, 44 insertions(+), 16 deletions(-)

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

end of thread, other threads:[~2017-08-25  7:02 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2017-08-25  0:35 [PATCH 0/2] fs: cache dax_device lookup result Dan Williams
2017-08-25  0:35 ` [PATCH 1/2] xfs: " Dan Williams
2017-08-25  5:32   ` Darrick J. Wong
2017-08-25  6:24     ` Dan Williams
2017-08-25  7:02       ` Christoph Hellwig
2017-08-25  7:01   ` Christoph Hellwig
2017-08-25  0:35 ` [PATCH 2/2] ext2, ext4: " Dan Williams

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