summaryrefslogtreecommitdiffstats
path: root/include/linux/fs.h
diff options
context:
space:
mode:
authorTakashi Iwai <tiwai@suse.de>2016-02-08 08:16:55 +0100
committerTakashi Iwai <tiwai@suse.de>2016-02-08 08:16:55 +0100
commitc9e9daccc7a6a670a6619723138ace6752f4773b (patch)
treeed38356575314aec55deda66ef856a9bfeaaf282 /include/linux/fs.h
parent1f5e35636cc2737ccf1f67815cb33b978621f0f6 (diff)
parentddce57a6f0a2d8d1bfacfa77f06043bc760403c2 (diff)
downloadop-kernel-dev-c9e9daccc7a6a670a6619723138ace6752f4773b.zip
op-kernel-dev-c9e9daccc7a6a670a6619723138ace6752f4773b.tar.gz
Merge branch 'topic/core-fixes' into for-next
Diffstat (limited to 'include/linux/fs.h')
-rw-r--r--include/linux/fs.h5
1 files changed, 1 insertions, 4 deletions
diff --git a/include/linux/fs.h b/include/linux/fs.h
index 1a20462..ae68100 100644
--- a/include/linux/fs.h
+++ b/include/linux/fs.h
@@ -484,9 +484,6 @@ struct block_device {
int bd_fsfreeze_count;
/* Mutex for freeze */
struct mutex bd_fsfreeze_mutex;
-#ifdef CONFIG_FS_DAX
- int bd_map_count;
-#endif
};
/*
@@ -2907,7 +2904,7 @@ extern void replace_mount_options(struct super_block *sb, char *options);
static inline bool io_is_direct(struct file *filp)
{
- return (filp->f_flags & O_DIRECT) || IS_DAX(file_inode(filp));
+ return (filp->f_flags & O_DIRECT) || IS_DAX(filp->f_mapping->host);
}
static inline int iocb_flags(struct file *file)
OpenPOWER on IntegriCloud