ext4: perform dax_device lookup at mount
authorDan Williams <dan.j.williams@intel.com>
Thu, 24 Aug 2017 23:42:48 +0000 (16:42 -0700)
committerDan Williams <dan.j.williams@intel.com>
Thu, 31 Aug 2017 18:12:13 +0000 (11:12 -0700)
commit5e405595e5bf4c09fab9ca1e7dbe5b62872757b5
treed26852e38cf6c07551d0f42f1e03435e75067583
parent8cf037a8b22f71c6659bd0246bfaba9e79766f64
ext4: perform dax_device lookup at mount

The ->iomap_begin() operation is a hot path, so cache the
fs_dax_get_by_host() result at mount time to avoid the incurring the
hash lookup overhead on a per-i/o basis.

Cc: "Theodore Ts'o" <tytso@mit.edu>
Cc: Andreas Dilger <adilger.kernel@dilger.ca>
Reviewed-by: Jan Kara <jack@suse.cz>
Reported-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Dan Williams <dan.j.williams@intel.com>
fs/ext4/ext4.h
fs/ext4/inode.c
fs/ext4/super.c