Signed-off-by: Jan Kara <jack@xxxxxxx> --- fs/minix/inode.c | 7 +++++++ fs/minix/minix.h | 1 + 2 files changed, 8 insertions(+) diff --git a/fs/minix/inode.c b/fs/minix/inode.c index 0332109162a5..49c65ae282c8 100644 --- a/fs/minix/inode.c +++ b/fs/minix/inode.c @@ -19,6 +19,11 @@ #include <linux/vfs.h> #include <linux/writeback.h> +static int minix_inode_fields[IF_FIELD_NR] = { + [IF_META_BHS] = (int)offsetof(struct minix_inode_info, i_mbh) - + (int)offsetof(struct minix_inode_info, vfs_inode), +}; + static int minix_write_inode(struct inode *inode, struct writeback_control *wbc); static int minix_statfs(struct dentry *dentry, struct kstatfs *buf); @@ -83,6 +88,7 @@ static void init_once(void *foo) { struct minix_inode_info *ei = (struct minix_inode_info *) foo; + inode_mbhs_init_once(&ei->i_mbh); inode_init_once(&ei->vfs_inode); } @@ -169,6 +175,7 @@ static int minix_fill_super(struct super_block *s, void *data, int silent) if (!sbi) return -ENOMEM; s->s_fs_info = sbi; + sb_init_inode_fields(s, minix_inode_fields); BUILD_BUG_ON(32 != sizeof (struct minix_inode)); BUILD_BUG_ON(64 != sizeof(struct minix2_inode)); diff --git a/fs/minix/minix.h b/fs/minix/minix.h index 1ebd11854622..542d8b58ecd5 100644 --- a/fs/minix/minix.h +++ b/fs/minix/minix.h @@ -18,6 +18,7 @@ struct minix_inode_info { __u16 i1_data[16]; __u32 i2_data[16]; } u; + struct inode_meta_bhs i_mbh; struct inode vfs_inode; }; -- 1.8.1.4 -- To unsubscribe from this list: send the line "unsubscribe linux-fsdevel" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html