[PATCH 15/17] sysv: Use own optional list for metadata bhs

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Signed-off-by: Jan Kara <jack@xxxxxxx>
---
 fs/sysv/inode.c | 1 +
 fs/sysv/super.c | 6 ++++++
 fs/sysv/sysv.h  | 1 +
 3 files changed, 8 insertions(+)

diff --git a/fs/sysv/inode.c b/fs/sysv/inode.c
index c327d4ee1235..d091e37a1d6f 100644
--- a/fs/sysv/inode.c
+++ b/fs/sysv/inode.c
@@ -333,6 +333,7 @@ static void init_once(void *p)
 {
 	struct sysv_inode_info *si = (struct sysv_inode_info *)p;
 
+	inode_mbhs_init_once(&si->i_mbh);
 	inode_init_once(&si->vfs_inode);
 }
 
diff --git a/fs/sysv/super.c b/fs/sysv/super.c
index eda10959714f..2b8618282a97 100644
--- a/fs/sysv/super.c
+++ b/fs/sysv/super.c
@@ -44,6 +44,11 @@ enum {
 	JAN_1_1980 = (10*365 + 2) * 24 * 60 * 60
 };
 
+static int sysv_inode_fields[IF_FIELD_NR] = {
+	[IF_META_BHS] = (int)offsetof(struct fat_inode_info, i_mbh) -
+			(int)offsetof(struct fat_inode_info, vfs_inode),
+};
+
 static void detected_xenix(struct sysv_sb_info *sbi, unsigned *max_links)
 {
 	struct buffer_head *bh1 = sbi->s_bh1;
@@ -370,6 +375,7 @@ static int sysv_fill_super(struct super_block *sb, void *data, int silent)
 	sbi->s_block_base = 0;
 	mutex_init(&sbi->s_lock);
 	sb->s_fs_info = sbi;
+	sb_init_inode_fields(sb, sysv_inode_fields);
 
 	sb_set_blocksize(sb, BLOCK_SIZE);
 
diff --git a/fs/sysv/sysv.h b/fs/sysv/sysv.h
index 69d488986cce..93b7fd8e584a 100644
--- a/fs/sysv/sysv.h
+++ b/fs/sysv/sysv.h
@@ -67,6 +67,7 @@ struct sysv_sb_info {
 struct sysv_inode_info {
 	__fs32		i_data[13];
 	u32		i_dir_start_lookup;
+	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




[Index of Archives]     [Linux Ext4 Filesystem]     [Union Filesystem]     [Filesystem Testing]     [Ceph Users]     [Ecryptfs]     [AutoFS]     [Kernel Newbies]     [Share Photos]     [Security]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux Cachefs]     [Reiser Filesystem]     [Linux RAID]     [Samba]     [Device Mapper]     [CEPH Development]
  Powered by Linux