diff options
-rw-r--r-- | fs/reiserfs/journal.c | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/fs/reiserfs/journal.c b/fs/reiserfs/journal.c index 5cd600baf8cf..ffb7f50abc2f 100644 --- a/fs/reiserfs/journal.c +++ b/fs/reiserfs/journal.c | |||
@@ -1120,8 +1120,11 @@ static int flush_commit_list(struct super_block *s, | |||
1120 | SB_ONDISK_JOURNAL_SIZE(s); | 1120 | SB_ONDISK_JOURNAL_SIZE(s); |
1121 | tbh = journal_find_get_block(s, bn); | 1121 | tbh = journal_find_get_block(s, bn); |
1122 | if (tbh) { | 1122 | if (tbh) { |
1123 | if (buffer_dirty(tbh)) | 1123 | if (buffer_dirty(tbh)) { |
1124 | ll_rw_block(WRITE, 1, &tbh) ; | 1124 | reiserfs_write_unlock(s); |
1125 | ll_rw_block(WRITE, 1, &tbh); | ||
1126 | reiserfs_write_lock(s); | ||
1127 | } | ||
1125 | put_bh(tbh) ; | 1128 | put_bh(tbh) ; |
1126 | } | 1129 | } |
1127 | } | 1130 | } |