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 2dbafe6 commit 91c34cdCopy full SHA for 91c34cd
fs/erofs/super.c
@@ -999,10 +999,22 @@ static int erofs_show_options(struct seq_file *seq, struct dentry *root)
999
return 0;
1000
}
1001
1002
+static void erofs_evict_inode(struct inode *inode)
1003
+{
1004
+#ifdef CONFIG_FS_DAX
1005
+ if (IS_DAX(inode))
1006
+ dax_break_layout_final(inode);
1007
+#endif
1008
+
1009
+ truncate_inode_pages_final(&inode->i_data);
1010
+ clear_inode(inode);
1011
+}
1012
1013
const struct super_operations erofs_sops = {
1014
.put_super = erofs_put_super,
1015
.alloc_inode = erofs_alloc_inode,
1016
.free_inode = erofs_free_inode,
1017
+ .evict_inode = erofs_evict_inode,
1018
.statfs = erofs_statfs,
1019
.show_options = erofs_show_options,
1020
};
0 commit comments