]> git.baikalelectronics.ru Git - kernel.git/commit
ext2: perform dax_device lookup at mount
authorDan Williams <dan.j.williams@intel.com>
Wed, 30 Aug 2017 16:43:34 +0000 (09:43 -0700)
committerDan Williams <dan.j.williams@intel.com>
Thu, 31 Aug 2017 16:33:30 +0000 (09:33 -0700)
commitd8a2c055ae5f0c0991ca731a0d22cec22a8227a3
tree29488639a0421bfd6316beb79131630d43039009
parent24894ee43005b349cbf2dcb775d9dd93dccd4d86
ext2: 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/ext2/ext2.h
fs/ext2/inode.c
fs/ext2/super.c