diff options
Diffstat (limited to 'fs/ocfs2/super.c')
-rw-r--r-- | fs/ocfs2/super.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/fs/ocfs2/super.c b/fs/ocfs2/super.c index 4eaf0e602bd0..53892d874ffc 100644 --- a/fs/ocfs2/super.c +++ b/fs/ocfs2/super.c | |||
@@ -1918,6 +1918,12 @@ static int ocfs2_initialize_super(struct super_block *sb, | |||
1918 | bbits = le32_to_cpu(di->id2.i_super.s_blocksize_bits); | 1918 | bbits = le32_to_cpu(di->id2.i_super.s_blocksize_bits); |
1919 | sb->s_maxbytes = ocfs2_max_file_offset(bbits, cbits); | 1919 | sb->s_maxbytes = ocfs2_max_file_offset(bbits, cbits); |
1920 | 1920 | ||
1921 | osb->osb_dx_mask = (1 << (cbits - bbits)) - 1; | ||
1922 | |||
1923 | for (i = 0; i < 3; i++) | ||
1924 | osb->osb_dx_seed[i] = le32_to_cpu(di->id2.i_super.s_dx_seed[i]); | ||
1925 | osb->osb_dx_seed[3] = le32_to_cpu(di->id2.i_super.s_uuid_hash); | ||
1926 | |||
1921 | osb->sb = sb; | 1927 | osb->sb = sb; |
1922 | /* Save off for ocfs2_rw_direct */ | 1928 | /* Save off for ocfs2_rw_direct */ |
1923 | osb->s_sectsize_bits = blksize_bits(sector_size); | 1929 | osb->s_sectsize_bits = blksize_bits(sector_size); |