summaryrefslogtreecommitdiffstats
path: root/fs/fuse/dax.c
diff options
context:
space:
mode:
Diffstat (limited to 'fs/fuse/dax.c')
-rw-r--r--fs/fuse/dax.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/fuse/dax.c b/fs/fuse/dax.c
index ff17bc7a0b6e..663270dc6e20 100644
--- a/fs/fuse/dax.c
+++ b/fs/fuse/dax.c
@@ -1349,7 +1349,7 @@ static bool fuse_should_enable_dax(struct inode *inode, unsigned int flags)
return true;
/* dax_mode is FUSE_DAX_INODE* */
- return flags & FUSE_ATTR_DAX;
+ return fc->inode_dax && (flags & FUSE_ATTR_DAX);
}
void fuse_dax_inode_init(struct inode *inode, unsigned int flags)