aboutsummaryrefslogtreecommitdiffstats
path: root/fs/adfs/super.c
diff options
context:
space:
mode:
authorRussell King <rmk+kernel@armlinux.org.uk>2019-06-04 09:49:41 -0400
committerAl Viro <viro@zeniv.linux.org.uk>2019-06-26 20:14:13 -0400
commitcb88b5a387dd9ba9c36fd76c4cdc187cdce5974c (patch)
tree9b830ae34b2826122147f63929cb08ea09623f67 /fs/adfs/super.c
parent275f5b99d6d4e6fccb7cea6783460939856c1306 (diff)
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>
Diffstat (limited to 'fs/adfs/super.c')
-rw-r--r--fs/adfs/super.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/fs/adfs/super.c b/fs/adfs/super.c
index 7f6d00467baa..c5607685788e 100644
--- a/fs/adfs/super.c
+++ b/fs/adfs/super.c
@@ -435,7 +435,6 @@ static int adfs_fill_super(struct super_block *sb, void *data, int silent)
435 asb->s_idlen = dr->idlen; 435 asb->s_idlen = dr->idlen;
436 asb->s_map_size = dr->nzones | (dr->nzones_high << 8); 436 asb->s_map_size = dr->nzones | (dr->nzones_high << 8);
437 asb->s_map2blk = dr->log2bpmb - dr->log2secsize; 437 asb->s_map2blk = dr->log2bpmb - dr->log2secsize;
438 asb->s_version = dr->format_version;
439 asb->s_log2sharesize = dr->log2sharesize; 438 asb->s_log2sharesize = dr->log2sharesize;
440 439
441 asb->s_map = adfs_read_map(sb, dr); 440 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)
467 * If this is a F+ disk with variable length directories, 466 * If this is a F+ disk with variable length directories,
468 * get the root_size from the disc record. 467 * get the root_size from the disc record.
469 */ 468 */
470 if (asb->s_version) { 469 if (dr->format_version) {
471 root_obj.size = le32_to_cpu(dr->root_size); 470 root_obj.size = le32_to_cpu(dr->root_size);
472 asb->s_dir = &adfs_fplus_dir_ops; 471 asb->s_dir = &adfs_fplus_dir_ops;
473 asb->s_namelen = ADFS_FPLUS_NAME_LEN; 472 asb->s_namelen = ADFS_FPLUS_NAME_LEN;