super.c (10ce3cc919f50c2043b41ca968b43c26a3672600) super.c (8de52778798fe39660a8d6b26f290e0c93202761)
1/*
2 * super.c
3 *
4 * PURPOSE
5 * Super block routines for the OSTA-UDF(tm) filesystem.
6 *
7 * DESCRIPTION
8 * OSTA-UDF(tm) = Optical Storage Technology Association

--- 61 unchanged lines hidden (view full) ---

70#define VDS_POS_PARTITION_DESC 3
71#define VDS_POS_IMP_USE_VOL_DESC 4
72#define VDS_POS_VOL_DESC_PTR 5
73#define VDS_POS_TERMINATING_DESC 6
74#define VDS_POS_LENGTH 7
75
76#define UDF_DEFAULT_BLOCKSIZE 2048
77
1/*
2 * super.c
3 *
4 * PURPOSE
5 * Super block routines for the OSTA-UDF(tm) filesystem.
6 *
7 * DESCRIPTION
8 * OSTA-UDF(tm) = Optical Storage Technology Association

--- 61 unchanged lines hidden (view full) ---

70#define VDS_POS_PARTITION_DESC 3
71#define VDS_POS_IMP_USE_VOL_DESC 4
72#define VDS_POS_VOL_DESC_PTR 5
73#define VDS_POS_TERMINATING_DESC 6
74#define VDS_POS_LENGTH 7
75
76#define UDF_DEFAULT_BLOCKSIZE 2048
77
78enum { UDF_MAX_LINKS = 0xffff };
79
78/* These are the "meat" - everything else is stuffing */
79static int udf_fill_super(struct super_block *, void *, int);
80static void udf_put_super(struct super_block *);
81static int udf_sync_fs(struct super_block *, int);
82static int udf_remount_fs(struct super_block *, int *, char *);
83static void udf_load_logicalvolint(struct super_block *, struct kernel_extent_ad);
84static int udf_find_fileset(struct super_block *, struct kernel_lb_addr *,
85 struct kernel_lb_addr *);

--- 1951 unchanged lines hidden (view full) ---

2037 /* Allocate a dentry for the root inode */
2038 sb->s_root = d_alloc_root(inode);
2039 if (!sb->s_root) {
2040 udf_err(sb, "Couldn't allocate root dentry\n");
2041 iput(inode);
2042 goto error_out;
2043 }
2044 sb->s_maxbytes = MAX_LFS_FILESIZE;
80/* These are the "meat" - everything else is stuffing */
81static int udf_fill_super(struct super_block *, void *, int);
82static void udf_put_super(struct super_block *);
83static int udf_sync_fs(struct super_block *, int);
84static int udf_remount_fs(struct super_block *, int *, char *);
85static void udf_load_logicalvolint(struct super_block *, struct kernel_extent_ad);
86static int udf_find_fileset(struct super_block *, struct kernel_lb_addr *,
87 struct kernel_lb_addr *);

--- 1951 unchanged lines hidden (view full) ---

2039 /* Allocate a dentry for the root inode */
2040 sb->s_root = d_alloc_root(inode);
2041 if (!sb->s_root) {
2042 udf_err(sb, "Couldn't allocate root dentry\n");
2043 iput(inode);
2044 goto error_out;
2045 }
2046 sb->s_maxbytes = MAX_LFS_FILESIZE;
2047 sb->s_max_links = UDF_MAX_LINKS;
2045 return 0;
2046
2047error_out:
2048 if (sbi->s_vat_inode)
2049 iput(sbi->s_vat_inode);
2050 if (sbi->s_partitions)
2051 for (i = 0; i < sbi->s_partitions; i++)
2052 udf_free_partition(&sbi->s_partmaps[i]);

--- 243 unchanged lines hidden ---
2048 return 0;
2049
2050error_out:
2051 if (sbi->s_vat_inode)
2052 iput(sbi->s_vat_inode);
2053 if (sbi->s_partitions)
2054 for (i = 0; i < sbi->s_partitions; i++)
2055 udf_free_partition(&sbi->s_partmaps[i]);

--- 243 unchanged lines hidden ---