super.c (3b2ce58b0f3c1633750529713be0e467282abd78) | super.c (574e6c3145c5754141361c695b58736c294a8ae1) |
---|---|
1/* 2 * super.c - NILFS module and super block management. 3 * 4 * Copyright (C) 2005-2008 Nippon Telegraph and Telephone Corporation. 5 * 6 * This program is free software; you can redistribute it and/or modify 7 * it under the terms of the GNU General Public License as published by 8 * the Free Software Foundation; either version 2 of the License, or --- 715 unchanged lines hidden (view full) --- 724 return NULL; 725 return (struct nilfs_super_block *)((char *)(*pbh)->b_data + offset); 726} 727 728int nilfs_store_magic_and_option(struct super_block *sb, 729 struct nilfs_super_block *sbp, 730 char *data) 731{ | 1/* 2 * super.c - NILFS module and super block management. 3 * 4 * Copyright (C) 2005-2008 Nippon Telegraph and Telephone Corporation. 5 * 6 * This program is free software; you can redistribute it and/or modify 7 * it under the terms of the GNU General Public License as published by 8 * the Free Software Foundation; either version 2 of the License, or --- 715 unchanged lines hidden (view full) --- 724 return NULL; 725 return (struct nilfs_super_block *)((char *)(*pbh)->b_data + offset); 726} 727 728int nilfs_store_magic_and_option(struct super_block *sb, 729 struct nilfs_super_block *sbp, 730 char *data) 731{ |
732 struct nilfs_sb_info *sbi = NILFS_SB(sb); | 732 struct the_nilfs *nilfs = NILFS_SB(sb)->s_nilfs; |
733 734 sb->s_magic = le16_to_cpu(sbp->s_magic); 735 736 /* FS independent flags */ 737#ifdef NILFS_ATIME_DISABLE 738 sb->s_flags |= MS_NOATIME; 739#endif 740 741 nilfs_set_default_options(sb, sbp); 742 | 733 734 sb->s_magic = le16_to_cpu(sbp->s_magic); 735 736 /* FS independent flags */ 737#ifdef NILFS_ATIME_DISABLE 738 sb->s_flags |= MS_NOATIME; 739#endif 740 741 nilfs_set_default_options(sb, sbp); 742 |
743 sbi->s_resuid = le16_to_cpu(sbp->s_def_resuid); 744 sbi->s_resgid = le16_to_cpu(sbp->s_def_resgid); 745 sbi->s_interval = le32_to_cpu(sbp->s_c_interval); 746 sbi->s_watermark = le32_to_cpu(sbp->s_c_block_max); | 743 nilfs->ns_resuid = le16_to_cpu(sbp->s_def_resuid); 744 nilfs->ns_resgid = le16_to_cpu(sbp->s_def_resgid); 745 nilfs->ns_interval = le32_to_cpu(sbp->s_c_interval); 746 nilfs->ns_watermark = le32_to_cpu(sbp->s_c_block_max); |
747 748 return !parse_options(data, sb, 0) ? -EINVAL : 0 ; 749} 750 751int nilfs_check_feature_compatibility(struct super_block *sb, 752 struct nilfs_super_block *sbp) 753{ 754 __u64 features; --- 613 unchanged lines hidden --- | 747 748 return !parse_options(data, sb, 0) ? -EINVAL : 0 ; 749} 750 751int nilfs_check_feature_compatibility(struct super_block *sb, 752 struct nilfs_super_block *sbp) 753{ 754 __u64 features; --- 613 unchanged lines hidden --- |