+@@ -76,7 +76,7 @@ mini_fo_read_inode(inode_t *inode)
+ * to write some of our own stuff to disk.
+ */
+ STATIC void
+-mini_fo_write_inode(inode_t *inode, int sync)
++mini_fo_write_inode(inode_t *inode, struct writeback_control *wbc)
+ {
+ print_entry_location();
+ print_exit_location();
+@@ -112,13 +112,14 @@ mini_fo_put_inode(inode_t *inode)
+ * on our and the lower inode.
+ */
+ STATIC void
+-mini_fo_delete_inode(inode_t *inode)
++mini_fo_evict_inode(inode_t *inode)
+ {
+ print_entry_location();
+
+- fist_checkinode(inode, "mini_fo_delete_inode IN");
+- inode->i_size = 0; /* every f/s seems to do that */
+- clear_inode(inode);
++ fist_checkinode(inode, "mini_fo_evict_inode IN");
++ truncate_inode_pages(&inode->i_data, 0); /* FIXME: do we need this? */
++ invalidate_inode_buffers(inode);
++ end_writeback(inode);
+
+ print_exit_location();
+ }
+@@ -300,11 +301,10 @@ struct super_operations mini_fo_sops =