summaryrefslogtreecommitdiffstats
path: root/fs/ext2/ext2.h
diff options
context:
space:
mode:
authorDan Williams2017-08-30 18:43:34 +0200
committerDan Williams2017-08-31 18:33:30 +0200
commit8cf037a8b22f71c6659bd0246bfaba9e79766f64 (patch)
tree29488639a0421bfd6316beb79131630d43039009 /fs/ext2/ext2.h
parentxfs: perform dax_device lookup at mount (diff)
downloadkernel-qcow2-linux-8cf037a8b22f71c6659bd0246bfaba9e79766f64.tar.gz
kernel-qcow2-linux-8cf037a8b22f71c6659bd0246bfaba9e79766f64.tar.xz
kernel-qcow2-linux-8cf037a8b22f71c6659bd0246bfaba9e79766f64.zip
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>
Diffstat (limited to 'fs/ext2/ext2.h')
-rw-r--r--fs/ext2/ext2.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/fs/ext2/ext2.h b/fs/ext2/ext2.h
index 23ebb92484c6..28de3edd4f4d 100644
--- a/fs/ext2/ext2.h
+++ b/fs/ext2/ext2.h
@@ -114,6 +114,7 @@ struct ext2_sb_info {
*/
spinlock_t s_lock;
struct mb_cache *s_ea_block_cache;
+ struct dax_device *s_daxdev;
};
static inline spinlock_t *