Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 733
b: refs/heads/master
c: 74f9f97
h: refs/heads/master
i:
  731: 2895e20
v: v3
  • Loading branch information
Edward Shishkin authored and Linus Torvalds committed May 1, 2005
1 parent c375325 commit f343a97
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 8 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 439bd3708792e31057db424d1165473122d531a3
refs/heads/master: 74f9f974a64dc3de554aa1977bf108334436e47b
12 changes: 5 additions & 7 deletions trunk/fs/reiserfs/journal.c
Original file line number Diff line number Diff line change
Expand Up @@ -2306,13 +2306,16 @@ static int journal_init_dev( struct super_block *super,
if( !IS_ERR( journal -> j_dev_file ) ) {
struct inode *jdev_inode = journal->j_dev_file->f_mapping->host;
if( !S_ISBLK( jdev_inode -> i_mode ) ) {
reiserfs_warning (super, "journal_init_dev: '%s' is "
"not a block device", jdev_name );
reiserfs_warning(super, "journal_init_dev: '%s' is "
"not a block device", jdev_name );
result = -ENOTBLK;
release_journal_dev( super, journal );
} else {
/* ok */
journal->j_dev_bd = I_BDEV(jdev_inode);
set_blocksize(journal->j_dev_bd, super->s_blocksize);
reiserfs_info(super, "journal_init_dev: journal device: %s\n",
bdevname(journal->j_dev_bd, b));
}
} else {
result = PTR_ERR( journal -> j_dev_file );
Expand All @@ -2321,11 +2324,6 @@ static int journal_init_dev( struct super_block *super,
"journal_init_dev: Cannot open '%s': %i",
jdev_name, result );
}
if( result != 0 ) {
release_journal_dev( super, journal );
}
reiserfs_info(super, "journal_init_dev: journal device: %s\n",
bdevname(journal->j_dev_bd, b));
return result;
}

Expand Down

0 comments on commit f343a97

Please sign in to comment.