--- linux/fs/minix/minix_op.c 2018/04/24 18:03:52 1.1 +++ linux/fs/minix/minix_op.c 2018/04/24 18:06:05 1.1.1.2 @@ -7,6 +7,12 @@ #include #include +void minix_put_inode(struct inode *inode) +{ + minix_truncate(inode); + minix_free_inode(inode); +} + /* * These are the low-level inode operations for minix filesystem inodes. */ @@ -23,16 +29,21 @@ struct inode_operations minix_inode_oper minix_readlink, minix_open, minix_release, - minix_follow_link + minix_follow_link, + minix_bmap, + minix_truncate, + minix_write_inode, + minix_put_inode }; /* - * We have just NULL's here: the current defaults are ok for + * We have mostly NULL's here: the current defaults are ok for * the minix filesystem. */ struct file_operations minix_file_operations = { NULL, /* lseek */ NULL, /* read */ - NULL /* write */ + NULL, /* write */ + minix_readdir };