Commit 6c4971a8 authored by Alexander Viro's avatar Alexander Viro Committed by Linus Torvalds

[PATCH] (5/7) kdev_t removals

* in reiserfs: a new caller of getblk() converted to sb_getblk() +
  a bunch of places converted to use of ->s_id.
parent c9fc74af
......@@ -103,7 +103,7 @@ static void _reiserfs_free_block (struct reiserfs_transaction_handle *th, unsign
if (nr >= sb_bmap_nr (rs)) {
reiserfs_warning ("vs-4075: reiserfs_free_block: "
"block %lu is out of range on %s\n",
block, bdevname(s->s_dev));
block, s->s_id);
return;
}
......
......@@ -662,7 +662,7 @@ static int read_bitmaps (struct super_block * s)
return 1;
for (i = 0, bmp = REISERFS_DISK_OFFSET_IN_BYTES / s->s_blocksize + 1;
i < SB_BMAP_NR(s); i++, bmp = s->s_blocksize * 8 * i) {
SB_AP_BITMAP (s)[i] = getblk (s->s_dev, bmp, s->s_blocksize);
SB_AP_BITMAP (s)[i] = sb_getblk(s, bmp);
if (!buffer_uptodate(SB_AP_BITMAP(s)[i]))
ll_rw_block(READ, 1, SB_AP_BITMAP(s) + i);
}
......@@ -770,7 +770,7 @@ static int read_super_block (struct super_block * s, int offset)
brelse(bh) ;
printk("dev %s: Unfinished reiserfsck --rebuild-tree run detected. Please run\n"
"reiserfsck --rebuild-tree and wait for a completion. If that fais\n"
"get newer reiserfsprogs package\n", kdevname (s->s_dev));
"get newer reiserfsprogs package\n", s->s_id);
return 1;
}
......@@ -881,7 +881,7 @@ __u32 find_hash_out (struct super_block * s)
( (r5hash == yurahash) && (yurahash == GET_HASH_VALUE( deh_offset(&(de.de_deh[de.de_entry_num])))) ) ) {
reiserfs_warning("reiserfs: Unable to automatically detect hash"
"function for device %s\n"
"please mount with -o hash={tea,rupasov,r5}\n", kdevname (s->s_dev));
"please mount with -o hash={tea,rupasov,r5}\n", s->s_id);
hash = UNSET_HASH;
break;
}
......@@ -893,7 +893,7 @@ __u32 find_hash_out (struct super_block * s)
hash = R5_HASH;
else {
reiserfs_warning("reiserfs: Unrecognised hash function for "
"device %s\n", kdevname (s->s_dev));
"device %s\n", s->s_id);
hash = UNSET_HASH;
}
} while (0);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment