On Thu, Aug 24, 2017 at 6:45 AM, Christoph Hellwig <hch@xxxxxx> wrote: > Hi Dan, > > 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. Sure, I'll get that fixed up. I believe I arrived at this scheme as a side-effect / misunderstanding of this comment: https://groups.google.com/d/msg/linux.kernel/9ho8SFe6RSw/6zTgNaNTCgAJ