diff options
Diffstat (limited to 'fs/reiserfs/journal.c')
-rw-r--r-- | fs/reiserfs/journal.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/fs/reiserfs/journal.c b/fs/reiserfs/journal.c index 3261518478f4..70b896076676 100644 --- a/fs/reiserfs/journal.c +++ b/fs/reiserfs/journal.c | |||
@@ -2628,7 +2628,8 @@ static int journal_init_dev(struct super_block *super, | |||
2628 | return 0; | 2628 | return 0; |
2629 | } | 2629 | } |
2630 | 2630 | ||
2631 | journal->j_dev_bd = open_bdev_excl(jdev_name, 0, journal); | 2631 | journal->j_dev_bd = open_bdev_exclusive(jdev_name, |
2632 | FMODE_READ|FMODE_WRITE, journal); | ||
2632 | if (IS_ERR(journal->j_dev_bd)) { | 2633 | if (IS_ERR(journal->j_dev_bd)) { |
2633 | result = PTR_ERR(journal->j_dev_bd); | 2634 | result = PTR_ERR(journal->j_dev_bd); |
2634 | journal->j_dev_bd = NULL; | 2635 | journal->j_dev_bd = NULL; |