We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e388164 commit cecd491Copy full SHA for cecd491
fs/fuse/dax.c
@@ -1327,11 +1327,19 @@ static const struct address_space_operations fuse_dax_file_aops = {
1327
.invalidatepage = noop_invalidatepage,
1328
};
1329
1330
-void fuse_dax_inode_init(struct inode *inode)
+static bool fuse_should_enable_dax(struct inode *inode)
1331
{
1332
struct fuse_conn *fc = get_fuse_conn(inode);
1333
1334
if (!fc->dax)
1335
+ return false;
1336
+
1337
+ return true;
1338
+}
1339
1340
+void fuse_dax_inode_init(struct inode *inode)
1341
+{
1342
+ if (!fuse_should_enable_dax(inode))
1343
return;
1344
1345
inode->i_flags |= S_DAX;
0 commit comments