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 131897c commit 181993bCopy full SHA for 181993b
fs/erofs/super.c
@@ -1018,10 +1018,22 @@ static int erofs_show_options(struct seq_file *seq, struct dentry *root)
1018
return 0;
1019
}
1020
1021
+static void erofs_evict_inode(struct inode *inode)
1022
+{
1023
+#ifdef CONFIG_FS_DAX
1024
+ if (IS_DAX(inode))
1025
+ dax_break_layout_final(inode);
1026
+#endif
1027
+
1028
+ truncate_inode_pages_final(&inode->i_data);
1029
+ clear_inode(inode);
1030
+}
1031
1032
const struct super_operations erofs_sops = {
1033
.put_super = erofs_put_super,
1034
.alloc_inode = erofs_alloc_inode,
1035
.free_inode = erofs_free_inode,
1036
+ .evict_inode = erofs_evict_inode,
1037
.statfs = erofs_statfs,
1038
.show_options = erofs_show_options,
1039
};
0 commit comments