aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--fs/reiserfs/bitmap.c8
-rw-r--r--fs/reiserfs/do_balan.c3
-rw-r--r--fs/reiserfs/file.c2
-rw-r--r--fs/reiserfs/fix_node.c2
-rw-r--r--fs/reiserfs/inode.c8
-rw-r--r--fs/reiserfs/journal.c18
-rw-r--r--fs/reiserfs/namei.c6
-rw-r--r--fs/reiserfs/objectid.c4
-rw-r--r--fs/reiserfs/reiserfs.h2
-rw-r--r--fs/reiserfs/resize.c6
-rw-r--r--fs/reiserfs/stree.c2
-rw-r--r--fs/reiserfs/super.c12
12 files changed, 35 insertions, 38 deletions
diff --git a/fs/reiserfs/bitmap.c b/fs/reiserfs/bitmap.c
index 70daba6fa6a5..46359bf3e9e5 100644
--- a/fs/reiserfs/bitmap.c
+++ b/fs/reiserfs/bitmap.c
@@ -256,14 +256,14 @@ static int scan_bitmap_block(struct reiserfs_transaction_handle *th,
256 } 256 }
257 } 257 }
258 bi->free_count -= (end - *beg); 258 bi->free_count -= (end - *beg);
259 journal_mark_dirty(th, s, bh); 259 journal_mark_dirty(th, bh);
260 brelse(bh); 260 brelse(bh);
261 261
262 /* free block count calculation */ 262 /* free block count calculation */
263 reiserfs_prepare_for_journal(s, SB_BUFFER_WITH_SB(s), 263 reiserfs_prepare_for_journal(s, SB_BUFFER_WITH_SB(s),
264 1); 264 1);
265 PUT_SB_FREE_BLOCKS(s, SB_FREE_BLOCKS(s) - (end - *beg)); 265 PUT_SB_FREE_BLOCKS(s, SB_FREE_BLOCKS(s) - (end - *beg));
266 journal_mark_dirty(th, s, SB_BUFFER_WITH_SB(s)); 266 journal_mark_dirty(th, SB_BUFFER_WITH_SB(s));
267 267
268 return end - (*beg); 268 return end - (*beg);
269 } else { 269 } else {
@@ -453,14 +453,14 @@ static void _reiserfs_free_block(struct reiserfs_transaction_handle *th,
453 "block %lu: bit already cleared", block); 453 "block %lu: bit already cleared", block);
454 } 454 }
455 apbi[nr].free_count++; 455 apbi[nr].free_count++;
456 journal_mark_dirty(th, s, bmbh); 456 journal_mark_dirty(th, bmbh);
457 brelse(bmbh); 457 brelse(bmbh);
458 458
459 reiserfs_prepare_for_journal(s, sbh, 1); 459 reiserfs_prepare_for_journal(s, sbh, 1);
460 /* update super block */ 460 /* update super block */
461 set_sb_free_blocks(rs, sb_free_blocks(rs) + 1); 461 set_sb_free_blocks(rs, sb_free_blocks(rs) + 1);
462 462
463 journal_mark_dirty(th, s, sbh); 463 journal_mark_dirty(th, sbh);
464 if (for_unformatted) { 464 if (for_unformatted) {
465 int depth = reiserfs_write_unlock_nested(s); 465 int depth = reiserfs_write_unlock_nested(s);
466 dquot_free_block_nodirty(inode, 1); 466 dquot_free_block_nodirty(inode, 1);
diff --git a/fs/reiserfs/do_balan.c b/fs/reiserfs/do_balan.c
index 399b2009b677..7decd932bf82 100644
--- a/fs/reiserfs/do_balan.c
+++ b/fs/reiserfs/do_balan.c
@@ -56,8 +56,7 @@ static inline void buffer_info_init_bh(struct tree_balance *tb,
56inline void do_balance_mark_leaf_dirty(struct tree_balance *tb, 56inline void do_balance_mark_leaf_dirty(struct tree_balance *tb,
57 struct buffer_head *bh, int flag) 57 struct buffer_head *bh, int flag)
58{ 58{
59 journal_mark_dirty(tb->transaction_handle, 59 journal_mark_dirty(tb->transaction_handle, bh);
60 tb->transaction_handle->t_super, bh);
61} 60}
62 61
63#define do_balance_mark_internal_dirty do_balance_mark_leaf_dirty 62#define do_balance_mark_internal_dirty do_balance_mark_leaf_dirty
diff --git a/fs/reiserfs/file.c b/fs/reiserfs/file.c
index a059320d7b44..db8e3aeff9ff 100644
--- a/fs/reiserfs/file.c
+++ b/fs/reiserfs/file.c
@@ -212,7 +212,7 @@ int reiserfs_commit_page(struct inode *inode, struct page *page,
212 set_buffer_uptodate(bh); 212 set_buffer_uptodate(bh);
213 if (logit) { 213 if (logit) {
214 reiserfs_prepare_for_journal(s, bh, 1); 214 reiserfs_prepare_for_journal(s, bh, 1);
215 journal_mark_dirty(&th, s, bh); 215 journal_mark_dirty(&th, bh);
216 } else if (!buffer_dirty(bh)) { 216 } else if (!buffer_dirty(bh)) {
217 mark_buffer_dirty(bh); 217 mark_buffer_dirty(bh);
218 /* 218 /*
diff --git a/fs/reiserfs/fix_node.c b/fs/reiserfs/fix_node.c
index 144bd62c3e39..38163d7b2514 100644
--- a/fs/reiserfs/fix_node.c
+++ b/fs/reiserfs/fix_node.c
@@ -2572,7 +2572,7 @@ int fix_nodes(int op_mode, struct tree_balance *tb,
2572 */ 2572 */
2573 reiserfs_prepare_for_journal(tb->tb_sb, 2573 reiserfs_prepare_for_journal(tb->tb_sb,
2574 SB_BUFFER_WITH_SB(tb->tb_sb), 1); 2574 SB_BUFFER_WITH_SB(tb->tb_sb), 1);
2575 journal_mark_dirty(tb->transaction_handle, tb->tb_sb, 2575 journal_mark_dirty(tb->transaction_handle,
2576 SB_BUFFER_WITH_SB(tb->tb_sb)); 2576 SB_BUFFER_WITH_SB(tb->tb_sb));
2577 if (FILESYSTEM_CHANGED_TB(tb)) 2577 if (FILESYSTEM_CHANGED_TB(tb))
2578 return REPEAT_SEARCH; 2578 return REPEAT_SEARCH;
diff --git a/fs/reiserfs/inode.c b/fs/reiserfs/inode.c
index 5cc5583f252a..ee532c9780a9 100644
--- a/fs/reiserfs/inode.c
+++ b/fs/reiserfs/inode.c
@@ -816,7 +816,7 @@ int reiserfs_get_block(struct inode *inode, sector_t block,
816 reiserfs_add_ordered_list(inode, bh_result); 816 reiserfs_add_ordered_list(inode, bh_result);
817 put_block_num(item, pos_in_item, allocated_block_nr); 817 put_block_num(item, pos_in_item, allocated_block_nr);
818 unfm_ptr = allocated_block_nr; 818 unfm_ptr = allocated_block_nr;
819 journal_mark_dirty(th, inode->i_sb, bh); 819 journal_mark_dirty(th, bh);
820 reiserfs_update_sd(th, inode); 820 reiserfs_update_sd(th, inode);
821 } 821 }
822 set_block_dev_mapped(bh_result, unfm_ptr, inode); 822 set_block_dev_mapped(bh_result, unfm_ptr, inode);
@@ -1505,7 +1505,7 @@ void reiserfs_update_sd_size(struct reiserfs_transaction_handle *th,
1505 break; 1505 break;
1506 } 1506 }
1507 update_stat_data(&path, inode, size); 1507 update_stat_data(&path, inode, size);
1508 journal_mark_dirty(th, th->t_super, bh); 1508 journal_mark_dirty(th, bh);
1509 pathrelse(&path); 1509 pathrelse(&path);
1510 return; 1510 return;
1511} 1511}
@@ -2457,7 +2457,7 @@ static int map_block_for_writepage(struct inode *inode,
2457 memcpy(ih_item_body(bh, ih) + pos_in_item, p + bytes_copied, 2457 memcpy(ih_item_body(bh, ih) + pos_in_item, p + bytes_copied,
2458 copy_size); 2458 copy_size);
2459 2459
2460 journal_mark_dirty(&th, inode->i_sb, bh); 2460 journal_mark_dirty(&th, bh);
2461 bytes_copied += copy_size; 2461 bytes_copied += copy_size;
2462 set_block_dev_mapped(bh_result, 0, inode); 2462 set_block_dev_mapped(bh_result, 0, inode);
2463 2463
@@ -2627,7 +2627,7 @@ static int reiserfs_write_full_page(struct page *page,
2627 2627
2628 if (checked) { 2628 if (checked) {
2629 reiserfs_prepare_for_journal(s, bh, 1); 2629 reiserfs_prepare_for_journal(s, bh, 1);
2630 journal_mark_dirty(&th, s, bh); 2630 journal_mark_dirty(&th, bh);
2631 continue; 2631 continue;
2632 } 2632 }
2633 /* 2633 /*
diff --git a/fs/reiserfs/journal.c b/fs/reiserfs/journal.c
index 5b4ccd5f642e..688c7d2f0fc5 100644
--- a/fs/reiserfs/journal.c
+++ b/fs/reiserfs/journal.c
@@ -1929,8 +1929,7 @@ static int do_journal_release(struct reiserfs_transaction_handle *th,
1929 reiserfs_prepare_for_journal(sb, 1929 reiserfs_prepare_for_journal(sb,
1930 SB_BUFFER_WITH_SB(sb), 1930 SB_BUFFER_WITH_SB(sb),
1931 1); 1931 1);
1932 journal_mark_dirty(&myth, sb, 1932 journal_mark_dirty(&myth, SB_BUFFER_WITH_SB(sb));
1933 SB_BUFFER_WITH_SB(sb));
1934 do_journal_end(&myth, FLUSH_ALL); 1933 do_journal_end(&myth, FLUSH_ALL);
1935 flushed = 1; 1934 flushed = 1;
1936 } 1935 }
@@ -1943,8 +1942,7 @@ static int do_journal_release(struct reiserfs_transaction_handle *th,
1943 reiserfs_prepare_for_journal(sb, 1942 reiserfs_prepare_for_journal(sb,
1944 SB_BUFFER_WITH_SB(sb), 1943 SB_BUFFER_WITH_SB(sb),
1945 1); 1944 1);
1946 journal_mark_dirty(&myth, sb, 1945 journal_mark_dirty(&myth, SB_BUFFER_WITH_SB(sb));
1947 SB_BUFFER_WITH_SB(sb));
1948 do_journal_end(&myth, FLUSH_ALL); 1946 do_journal_end(&myth, FLUSH_ALL);
1949 } 1947 }
1950 } 1948 }
@@ -3268,8 +3266,9 @@ int journal_begin(struct reiserfs_transaction_handle *th,
3268 * if j_len, is bigger than j_len_alloc, it pushes j_len_alloc to 10 + j_len. 3266 * if j_len, is bigger than j_len_alloc, it pushes j_len_alloc to 10 + j_len.
3269 */ 3267 */
3270int journal_mark_dirty(struct reiserfs_transaction_handle *th, 3268int journal_mark_dirty(struct reiserfs_transaction_handle *th,
3271 struct super_block *sb, struct buffer_head *bh) 3269 struct buffer_head *bh)
3272{ 3270{
3271 struct super_block *sb = th->t_super;
3273 struct reiserfs_journal *journal = SB_JOURNAL(sb); 3272 struct reiserfs_journal *journal = SB_JOURNAL(sb);
3274 struct reiserfs_journal_cnode *cn = NULL; 3273 struct reiserfs_journal_cnode *cn = NULL;
3275 int count_already_incd = 0; 3274 int count_already_incd = 0;
@@ -3522,7 +3521,7 @@ int journal_end_sync(struct reiserfs_transaction_handle *th)
3522 if (journal->j_len == 0) { 3521 if (journal->j_len == 0) {
3523 reiserfs_prepare_for_journal(sb, SB_BUFFER_WITH_SB(sb), 3522 reiserfs_prepare_for_journal(sb, SB_BUFFER_WITH_SB(sb),
3524 1); 3523 1);
3525 journal_mark_dirty(th, sb, SB_BUFFER_WITH_SB(sb)); 3524 journal_mark_dirty(th, SB_BUFFER_WITH_SB(sb));
3526 } 3525 }
3527 return do_journal_end(th, COMMIT_NOW | WAIT); 3526 return do_journal_end(th, COMMIT_NOW | WAIT);
3528} 3527}
@@ -3576,8 +3575,7 @@ void reiserfs_flush_old_commits(struct super_block *sb)
3576 reiserfs_prepare_for_journal(sb, 3575 reiserfs_prepare_for_journal(sb,
3577 SB_BUFFER_WITH_SB(sb), 3576 SB_BUFFER_WITH_SB(sb),
3578 1); 3577 1);
3579 journal_mark_dirty(&th, sb, 3578 journal_mark_dirty(&th, SB_BUFFER_WITH_SB(sb));
3580 SB_BUFFER_WITH_SB(sb));
3581 3579
3582 /* 3580 /*
3583 * we're only being called from kreiserfsd, it makes 3581 * we're only being called from kreiserfsd, it makes
@@ -3863,7 +3861,7 @@ static int __commit_trans_jl(struct inode *inode, unsigned long id,
3863 if (journal->j_trans_id != id) { 3861 if (journal->j_trans_id != id) {
3864 reiserfs_prepare_for_journal(sb, SB_BUFFER_WITH_SB(sb), 3862 reiserfs_prepare_for_journal(sb, SB_BUFFER_WITH_SB(sb),
3865 1); 3863 1);
3866 journal_mark_dirty(&th, sb, SB_BUFFER_WITH_SB(sb)); 3864 journal_mark_dirty(&th, SB_BUFFER_WITH_SB(sb));
3867 ret = journal_end(&th); 3865 ret = journal_end(&th);
3868 goto flush_commit_only; 3866 goto flush_commit_only;
3869 } 3867 }
@@ -4014,7 +4012,7 @@ static int do_journal_end(struct reiserfs_transaction_handle *th, int flags)
4014 if (journal->j_len == 0) { 4012 if (journal->j_len == 0) {
4015 reiserfs_prepare_for_journal(sb, SB_BUFFER_WITH_SB(sb), 4013 reiserfs_prepare_for_journal(sb, SB_BUFFER_WITH_SB(sb),
4016 1); 4014 1);
4017 journal_mark_dirty(th, sb, SB_BUFFER_WITH_SB(sb)); 4015 journal_mark_dirty(th, SB_BUFFER_WITH_SB(sb));
4018 } 4016 }
4019 4017
4020 lock_journal(sb); 4018 lock_journal(sb);
diff --git a/fs/reiserfs/namei.c b/fs/reiserfs/namei.c
index df321eb54496..b8a873df089d 100644
--- a/fs/reiserfs/namei.c
+++ b/fs/reiserfs/namei.c
@@ -1531,10 +1531,10 @@ static int reiserfs_rename(struct inode *old_dir, struct dentry *old_dentry,
1531 1531
1532 mark_de_visible(new_de.de_deh + new_de.de_entry_num); 1532 mark_de_visible(new_de.de_deh + new_de.de_entry_num);
1533 set_ino_in_dir_entry(&new_de, INODE_PKEY(old_inode)); 1533 set_ino_in_dir_entry(&new_de, INODE_PKEY(old_inode));
1534 journal_mark_dirty(&th, old_dir->i_sb, new_de.de_bh); 1534 journal_mark_dirty(&th, new_de.de_bh);
1535 1535
1536 mark_de_hidden(old_de.de_deh + old_de.de_entry_num); 1536 mark_de_hidden(old_de.de_deh + old_de.de_entry_num);
1537 journal_mark_dirty(&th, old_dir->i_sb, old_de.de_bh); 1537 journal_mark_dirty(&th, old_de.de_bh);
1538 ctime = CURRENT_TIME_SEC; 1538 ctime = CURRENT_TIME_SEC;
1539 old_dir->i_ctime = old_dir->i_mtime = ctime; 1539 old_dir->i_ctime = old_dir->i_mtime = ctime;
1540 new_dir->i_ctime = new_dir->i_mtime = ctime; 1540 new_dir->i_ctime = new_dir->i_mtime = ctime;
@@ -1558,7 +1558,7 @@ static int reiserfs_rename(struct inode *old_dir, struct dentry *old_dentry,
1558 if (S_ISDIR(old_inode_mode)) { 1558 if (S_ISDIR(old_inode_mode)) {
1559 /* adjust ".." of renamed directory */ 1559 /* adjust ".." of renamed directory */
1560 set_ino_in_dir_entry(&dot_dot_de, INODE_PKEY(new_dir)); 1560 set_ino_in_dir_entry(&dot_dot_de, INODE_PKEY(new_dir));
1561 journal_mark_dirty(&th, new_dir->i_sb, dot_dot_de.de_bh); 1561 journal_mark_dirty(&th, dot_dot_de.de_bh);
1562 1562
1563 /* 1563 /*
1564 * there (in new_dir) was no directory, so it got new link 1564 * there (in new_dir) was no directory, so it got new link
diff --git a/fs/reiserfs/objectid.c b/fs/reiserfs/objectid.c
index 99f66f885785..99a5d5dae46a 100644
--- a/fs/reiserfs/objectid.c
+++ b/fs/reiserfs/objectid.c
@@ -89,7 +89,7 @@ __u32 reiserfs_get_unused_objectid(struct reiserfs_transaction_handle *th)
89 set_sb_oid_cursize(rs, sb_oid_cursize(rs) - 2); 89 set_sb_oid_cursize(rs, sb_oid_cursize(rs) - 2);
90 } 90 }
91 91
92 journal_mark_dirty(th, s, SB_BUFFER_WITH_SB(s)); 92 journal_mark_dirty(th, SB_BUFFER_WITH_SB(s));
93 return unused_objectid; 93 return unused_objectid;
94} 94}
95 95
@@ -107,7 +107,7 @@ void reiserfs_release_objectid(struct reiserfs_transaction_handle *th,
107 check_objectid_map(s, map); 107 check_objectid_map(s, map);
108 108
109 reiserfs_prepare_for_journal(s, SB_BUFFER_WITH_SB(s), 1); 109 reiserfs_prepare_for_journal(s, SB_BUFFER_WITH_SB(s), 1);
110 journal_mark_dirty(th, s, SB_BUFFER_WITH_SB(s)); 110 journal_mark_dirty(th, SB_BUFFER_WITH_SB(s));
111 111
112 /* 112 /*
113 * start at the beginning of the objectid map (i = 0) and go to 113 * start at the beginning of the objectid map (i = 0) and go to
diff --git a/fs/reiserfs/reiserfs.h b/fs/reiserfs/reiserfs.h
index 7755fe580d0d..86929c5a1851 100644
--- a/fs/reiserfs/reiserfs.h
+++ b/fs/reiserfs/reiserfs.h
@@ -2864,7 +2864,7 @@ void reiserfs_free_jh(struct buffer_head *bh);
2864int reiserfs_add_tail_list(struct inode *inode, struct buffer_head *bh); 2864int reiserfs_add_tail_list(struct inode *inode, struct buffer_head *bh);
2865int reiserfs_add_ordered_list(struct inode *inode, struct buffer_head *bh); 2865int reiserfs_add_ordered_list(struct inode *inode, struct buffer_head *bh);
2866int journal_mark_dirty(struct reiserfs_transaction_handle *, 2866int journal_mark_dirty(struct reiserfs_transaction_handle *,
2867 struct super_block *, struct buffer_head *bh); 2867 struct buffer_head *bh);
2868 2868
2869static inline int reiserfs_file_data_log(struct inode *inode) 2869static inline int reiserfs_file_data_log(struct inode *inode)
2870{ 2870{
diff --git a/fs/reiserfs/resize.c b/fs/reiserfs/resize.c
index 99eb32596c6e..6052d323bc9a 100644
--- a/fs/reiserfs/resize.c
+++ b/fs/reiserfs/resize.c
@@ -193,7 +193,7 @@ int reiserfs_resize(struct super_block *s, unsigned long block_count_new)
193 reiserfs_clear_le_bit(i, bh->b_data); 193 reiserfs_clear_le_bit(i, bh->b_data);
194 info->free_count += s->s_blocksize * 8 - block_r; 194 info->free_count += s->s_blocksize * 8 - block_r;
195 195
196 journal_mark_dirty(&th, s, bh); 196 journal_mark_dirty(&th, bh);
197 brelse(bh); 197 brelse(bh);
198 198
199 /* Correct new last bitmap block - It may not be full */ 199 /* Correct new last bitmap block - It may not be full */
@@ -209,7 +209,7 @@ int reiserfs_resize(struct super_block *s, unsigned long block_count_new)
209 reiserfs_prepare_for_journal(s, bh, 1); 209 reiserfs_prepare_for_journal(s, bh, 1);
210 for (i = block_r_new; i < s->s_blocksize * 8; i++) 210 for (i = block_r_new; i < s->s_blocksize * 8; i++)
211 reiserfs_set_le_bit(i, bh->b_data); 211 reiserfs_set_le_bit(i, bh->b_data);
212 journal_mark_dirty(&th, s, bh); 212 journal_mark_dirty(&th, bh);
213 brelse(bh); 213 brelse(bh);
214 214
215 info->free_count -= s->s_blocksize * 8 - block_r_new; 215 info->free_count -= s->s_blocksize * 8 - block_r_new;
@@ -222,7 +222,7 @@ int reiserfs_resize(struct super_block *s, unsigned long block_count_new)
222 PUT_SB_BLOCK_COUNT(s, block_count_new); 222 PUT_SB_BLOCK_COUNT(s, block_count_new);
223 PUT_SB_BMAP_NR(s, bmap_would_wrap(bmap_nr_new) ? : bmap_nr_new); 223 PUT_SB_BMAP_NR(s, bmap_would_wrap(bmap_nr_new) ? : bmap_nr_new);
224 224
225 journal_mark_dirty(&th, s, SB_BUFFER_WITH_SB(s)); 225 journal_mark_dirty(&th, SB_BUFFER_WITH_SB(s));
226 226
227 SB_JOURNAL(s)->j_must_wait = 1; 227 SB_JOURNAL(s)->j_must_wait = 1;
228 return journal_end(&th); 228 return journal_end(&th);
diff --git a/fs/reiserfs/stree.c b/fs/reiserfs/stree.c
index 28c593a75c7a..6d697d7328a0 100644
--- a/fs/reiserfs/stree.c
+++ b/fs/reiserfs/stree.c
@@ -1101,7 +1101,7 @@ static char prepare_for_delete_or_cut(struct reiserfs_transaction_handle *th,
1101 if (block != 0) { 1101 if (block != 0) {
1102 reiserfs_prepare_for_journal(sb, bh, 1); 1102 reiserfs_prepare_for_journal(sb, bh, 1);
1103 put_block_num(unfm, 0, 0); 1103 put_block_num(unfm, 0, 0);
1104 journal_mark_dirty(th, sb, bh); 1104 journal_mark_dirty(th, bh);
1105 reiserfs_free_block(th, inode, block, 1); 1105 reiserfs_free_block(th, inode, block, 1);
1106 } 1106 }
1107 1107
diff --git a/fs/reiserfs/super.c b/fs/reiserfs/super.c
index 4d13cfff24e0..fa651790b907 100644
--- a/fs/reiserfs/super.c
+++ b/fs/reiserfs/super.c
@@ -136,7 +136,7 @@ static int reiserfs_freeze(struct super_block *s)
136 } else { 136 } else {
137 reiserfs_prepare_for_journal(s, SB_BUFFER_WITH_SB(s), 137 reiserfs_prepare_for_journal(s, SB_BUFFER_WITH_SB(s),
138 1); 138 1);
139 journal_mark_dirty(&th, s, SB_BUFFER_WITH_SB(s)); 139 journal_mark_dirty(&th, SB_BUFFER_WITH_SB(s));
140 reiserfs_block_writes(&th); 140 reiserfs_block_writes(&th);
141 journal_end_sync(&th); 141 journal_end_sync(&th);
142 } 142 }
@@ -551,7 +551,7 @@ static void reiserfs_put_super(struct super_block *s)
551 1); 551 1);
552 set_sb_umount_state(SB_DISK_SUPER_BLOCK(s), 552 set_sb_umount_state(SB_DISK_SUPER_BLOCK(s),
553 REISERFS_SB(s)->s_mount_state); 553 REISERFS_SB(s)->s_mount_state);
554 journal_mark_dirty(&th, s, SB_BUFFER_WITH_SB(s)); 554 journal_mark_dirty(&th, SB_BUFFER_WITH_SB(s));
555 } 555 }
556 } 556 }
557 557
@@ -1477,7 +1477,7 @@ static int reiserfs_remount(struct super_block *s, int *mount_flags, char *arg)
1477 /* Mounting a rw partition read-only. */ 1477 /* Mounting a rw partition read-only. */
1478 reiserfs_prepare_for_journal(s, SB_BUFFER_WITH_SB(s), 1); 1478 reiserfs_prepare_for_journal(s, SB_BUFFER_WITH_SB(s), 1);
1479 set_sb_umount_state(rs, REISERFS_SB(s)->s_mount_state); 1479 set_sb_umount_state(rs, REISERFS_SB(s)->s_mount_state);
1480 journal_mark_dirty(&th, s, SB_BUFFER_WITH_SB(s)); 1480 journal_mark_dirty(&th, SB_BUFFER_WITH_SB(s));
1481 } else { 1481 } else {
1482 /* remount read-write */ 1482 /* remount read-write */
1483 if (!(s->s_flags & MS_RDONLY)) { 1483 if (!(s->s_flags & MS_RDONLY)) {
@@ -1509,7 +1509,7 @@ static int reiserfs_remount(struct super_block *s, int *mount_flags, char *arg)
1509 if (!old_format_only(s)) 1509 if (!old_format_only(s))
1510 set_sb_mnt_count(rs, sb_mnt_count(rs) + 1); 1510 set_sb_mnt_count(rs, sb_mnt_count(rs) + 1);
1511 /* mark_buffer_dirty (SB_BUFFER_WITH_SB (s), 1); */ 1511 /* mark_buffer_dirty (SB_BUFFER_WITH_SB (s), 1); */
1512 journal_mark_dirty(&th, s, SB_BUFFER_WITH_SB(s)); 1512 journal_mark_dirty(&th, SB_BUFFER_WITH_SB(s));
1513 REISERFS_SB(s)->s_mount_state = REISERFS_VALID_FS; 1513 REISERFS_SB(s)->s_mount_state = REISERFS_VALID_FS;
1514 } 1514 }
1515 /* this will force a full flush of all journal lists */ 1515 /* this will force a full flush of all journal lists */
@@ -2106,7 +2106,7 @@ static int reiserfs_fill_super(struct super_block *s, void *data, int silent)
2106 set_sb_mnt_count(rs, sb_mnt_count(rs) + 1); 2106 set_sb_mnt_count(rs, sb_mnt_count(rs) + 1);
2107 2107
2108 2108
2109 journal_mark_dirty(&th, s, SB_BUFFER_WITH_SB(s)); 2109 journal_mark_dirty(&th, SB_BUFFER_WITH_SB(s));
2110 errval = journal_end(&th); 2110 errval = journal_end(&th);
2111 if (errval) { 2111 if (errval) {
2112 dput(s->s_root); 2112 dput(s->s_root);
@@ -2481,7 +2481,7 @@ static ssize_t reiserfs_quota_write(struct super_block *sb, int type,
2481 unlock_buffer(bh); 2481 unlock_buffer(bh);
2482 reiserfs_write_lock(sb); 2482 reiserfs_write_lock(sb);
2483 reiserfs_prepare_for_journal(sb, bh, 1); 2483 reiserfs_prepare_for_journal(sb, bh, 1);
2484 journal_mark_dirty(current->journal_info, sb, bh); 2484 journal_mark_dirty(current->journal_info, bh);
2485 if (!journal_quota) 2485 if (!journal_quota)
2486 reiserfs_add_ordered_list(inode, bh); 2486 reiserfs_add_ordered_list(inode, bh);
2487 reiserfs_write_unlock(sb); 2487 reiserfs_write_unlock(sb);