mirror of
https://github.com/Fishwaldo/Star64_linux.git
synced 2025-06-20 13:41:30 +00:00
fs/adfs: use format_version from disc_record
We only use the format version in one place during filesystem mount, so it is pointless storing it in the superblock structure. Also, we should be using the version from the disc record in the map rather than the boot block. Signed-off-by: Russell King <rmk+kernel@armlinux.org.uk> Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
This commit is contained in:
parent
275f5b99d6
commit
cb88b5a387
2 changed files with 1 additions and 3 deletions
|
@ -435,7 +435,6 @@ static int adfs_fill_super(struct super_block *sb, void *data, int silent)
|
|||
asb->s_idlen = dr->idlen;
|
||||
asb->s_map_size = dr->nzones | (dr->nzones_high << 8);
|
||||
asb->s_map2blk = dr->log2bpmb - dr->log2secsize;
|
||||
asb->s_version = dr->format_version;
|
||||
asb->s_log2sharesize = dr->log2sharesize;
|
||||
|
||||
asb->s_map = adfs_read_map(sb, dr);
|
||||
|
@ -467,7 +466,7 @@ static int adfs_fill_super(struct super_block *sb, void *data, int silent)
|
|||
* If this is a F+ disk with variable length directories,
|
||||
* get the root_size from the disc record.
|
||||
*/
|
||||
if (asb->s_version) {
|
||||
if (dr->format_version) {
|
||||
root_obj.size = le32_to_cpu(dr->root_size);
|
||||
asb->s_dir = &adfs_fplus_dir_ops;
|
||||
asb->s_namelen = ADFS_FPLUS_NAME_LEN;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue