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 ...@@ -103,7 +103,7 @@ static void _reiserfs_free_block (struct reiserfs_transaction_handle *th, unsign
if (nr >= sb_bmap_nr (rs)) { if (nr >= sb_bmap_nr (rs)) {
reiserfs_warning ("vs-4075: reiserfs_free_block: " reiserfs_warning ("vs-4075: reiserfs_free_block: "
"block %lu is out of range on %s\n", "block %lu is out of range on %s\n",
block, bdevname(s->s_dev)); block, s->s_id);
return; return;
} }
......
...@@ -662,7 +662,7 @@ static int read_bitmaps (struct super_block * s) ...@@ -662,7 +662,7 @@ static int read_bitmaps (struct super_block * s)
return 1; return 1;
for (i = 0, bmp = REISERFS_DISK_OFFSET_IN_BYTES / s->s_blocksize + 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) { 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])) if (!buffer_uptodate(SB_AP_BITMAP(s)[i]))
ll_rw_block(READ, 1, 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) ...@@ -770,7 +770,7 @@ static int read_super_block (struct super_block * s, int offset)
brelse(bh) ; brelse(bh) ;
printk("dev %s: Unfinished reiserfsck --rebuild-tree run detected. Please run\n" printk("dev %s: Unfinished reiserfsck --rebuild-tree run detected. Please run\n"
"reiserfsck --rebuild-tree and wait for a completion. If that fais\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; return 1;
} }
...@@ -881,7 +881,7 @@ __u32 find_hash_out (struct super_block * s) ...@@ -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])))) ) ) { ( (r5hash == yurahash) && (yurahash == GET_HASH_VALUE( deh_offset(&(de.de_deh[de.de_entry_num])))) ) ) {
reiserfs_warning("reiserfs: Unable to automatically detect hash" reiserfs_warning("reiserfs: Unable to automatically detect hash"
"function for device %s\n" "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; hash = UNSET_HASH;
break; break;
} }
...@@ -893,7 +893,7 @@ __u32 find_hash_out (struct super_block * s) ...@@ -893,7 +893,7 @@ __u32 find_hash_out (struct super_block * s)
hash = R5_HASH; hash = R5_HASH;
else { else {
reiserfs_warning("reiserfs: Unrecognised hash function for " reiserfs_warning("reiserfs: Unrecognised hash function for "
"device %s\n", kdevname (s->s_dev)); "device %s\n", s->s_id);
hash = UNSET_HASH; hash = UNSET_HASH;
} }
} while (0); } 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