aboutsummaryrefslogtreecommitdiffstats
path: root/fs/reiserfs/inode.c
diff options
context:
space:
mode:
authorJeff Mahoney <jeffm@suse.com>2014-04-23 10:00:38 -0400
committerJan Kara <jack@suse.cz>2014-05-06 17:08:00 -0400
commit58d854265c4c7d9792ecb5aa5ef67ba79b1a4c12 (patch)
tree413b08fdf616386f153a3f6681c6336490cb10e5 /fs/reiserfs/inode.c
parent706a5323384d9ae973a72005b73987d39e009019 (diff)
reiserfs: cleanup, remove sb argument from journal_end
journal_end doesn't need a separate sb argument; it's provided by the transaction handle. Signed-off-by: Jeff Mahoney <jeffm@suse.com> Signed-off-by: Jan Kara <jack@suse.cz>
Diffstat (limited to 'fs/reiserfs/inode.c')
-rw-r--r--fs/reiserfs/inode.c30
1 files changed, 15 insertions, 15 deletions
diff --git a/fs/reiserfs/inode.c b/fs/reiserfs/inode.c
index f0a8091c5ace..5cc5583f252a 100644
--- a/fs/reiserfs/inode.c
+++ b/fs/reiserfs/inode.c
@@ -72,7 +72,7 @@ void reiserfs_evict_inode(struct inode *inode)
72 reiserfs_write_lock_nested(inode->i_sb, depth); 72 reiserfs_write_lock_nested(inode->i_sb, depth);
73 } 73 }
74 74
75 if (journal_end(&th, inode->i_sb)) 75 if (journal_end(&th))
76 goto out; 76 goto out;
77 77
78 /* 78 /*
@@ -264,7 +264,7 @@ static int restart_transaction(struct reiserfs_transaction_handle *th,
264 return 0; 264 return 0;
265 } 265 }
266 reiserfs_update_sd(th, inode); 266 reiserfs_update_sd(th, inode);
267 err = journal_end(th, s); 267 err = journal_end(th);
268 if (!err) { 268 if (!err) {
269 err = journal_begin(th, s, JOURNAL_PER_BALANCE_CNT * 6); 269 err = journal_begin(th, s, JOURNAL_PER_BALANCE_CNT * 6);
270 if (!err) 270 if (!err)
@@ -1790,7 +1790,7 @@ int reiserfs_write_inode(struct inode *inode, struct writeback_control *wbc)
1790 reiserfs_write_lock(inode->i_sb); 1790 reiserfs_write_lock(inode->i_sb);
1791 if (!journal_begin(&th, inode->i_sb, jbegin_count)) { 1791 if (!journal_begin(&th, inode->i_sb, jbegin_count)) {
1792 reiserfs_update_sd(&th, inode); 1792 reiserfs_update_sd(&th, inode);
1793 journal_end_sync(&th, inode->i_sb); 1793 journal_end_sync(&th);
1794 } 1794 }
1795 reiserfs_write_unlock(inode->i_sb); 1795 reiserfs_write_unlock(inode->i_sb);
1796 } 1796 }
@@ -2097,7 +2097,7 @@ int reiserfs_new_inode(struct reiserfs_transaction_handle *th,
2097 if (retval) { 2097 if (retval) {
2098 err = retval; 2098 err = retval;
2099 reiserfs_check_path(&path_to_key); 2099 reiserfs_check_path(&path_to_key);
2100 journal_end(th, th->t_super); 2100 journal_end(th);
2101 goto out_inserted_sd; 2101 goto out_inserted_sd;
2102 } 2102 }
2103 2103
@@ -2108,7 +2108,7 @@ int reiserfs_new_inode(struct reiserfs_transaction_handle *th,
2108 if (retval) { 2108 if (retval) {
2109 err = retval; 2109 err = retval;
2110 reiserfs_check_path(&path_to_key); 2110 reiserfs_check_path(&path_to_key);
2111 journal_end(th, th->t_super); 2111 journal_end(th);
2112 goto out_inserted_sd; 2112 goto out_inserted_sd;
2113 } 2113 }
2114 } else if (inode->i_sb->s_flags & MS_POSIXACL) { 2114 } else if (inode->i_sb->s_flags & MS_POSIXACL) {
@@ -2125,7 +2125,7 @@ int reiserfs_new_inode(struct reiserfs_transaction_handle *th,
2125 if (retval) { 2125 if (retval) {
2126 err = retval; 2126 err = retval;
2127 reiserfs_check_path(&path_to_key); 2127 reiserfs_check_path(&path_to_key);
2128 retval = journal_end(th, th->t_super); 2128 retval = journal_end(th);
2129 if (retval) 2129 if (retval)
2130 err = retval; 2130 err = retval;
2131 goto out_inserted_sd; 2131 goto out_inserted_sd;
@@ -2147,7 +2147,7 @@ int reiserfs_new_inode(struct reiserfs_transaction_handle *th,
2147 reiserfs_write_lock_nested(inode->i_sb, depth); 2147 reiserfs_write_lock_nested(inode->i_sb, depth);
2148 2148
2149 out_end_trans: 2149 out_end_trans:
2150 journal_end(th, th->t_super); 2150 journal_end(th);
2151 /* 2151 /*
2152 * Drop can be outside and it needs more credits so it's better 2152 * Drop can be outside and it needs more credits so it's better
2153 * to have it outside 2153 * to have it outside
@@ -2317,7 +2317,7 @@ int reiserfs_truncate_file(struct inode *inode, int update_timestamps)
2317 */ 2317 */
2318 add_save_link(&th, inode, 1); 2318 add_save_link(&th, inode, 1);
2319 err2 = reiserfs_do_truncate(&th, inode, page, update_timestamps); 2319 err2 = reiserfs_do_truncate(&th, inode, page, update_timestamps);
2320 error = journal_end(&th, inode->i_sb); 2320 error = journal_end(&th);
2321 if (error) 2321 if (error)
2322 goto out; 2322 goto out;
2323 2323
@@ -2480,7 +2480,7 @@ static int map_block_for_writepage(struct inode *inode,
2480 out: 2480 out:
2481 pathrelse(&path); 2481 pathrelse(&path);
2482 if (trans_running) { 2482 if (trans_running) {
2483 int err = journal_end(&th, inode->i_sb); 2483 int err = journal_end(&th);
2484 if (err) 2484 if (err)
2485 retval = err; 2485 retval = err;
2486 trans_running = 0; 2486 trans_running = 0;
@@ -2650,7 +2650,7 @@ static int reiserfs_write_full_page(struct page *page,
2650 } while ((bh = bh->b_this_page) != head); 2650 } while ((bh = bh->b_this_page) != head);
2651 2651
2652 if (checked) { 2652 if (checked) {
2653 error = journal_end(&th, s); 2653 error = journal_end(&th);
2654 reiserfs_write_unlock(s); 2654 reiserfs_write_unlock(s);
2655 if (error) 2655 if (error)
2656 goto fail; 2656 goto fail;
@@ -2953,7 +2953,7 @@ static int reiserfs_write_end(struct file *file, struct address_space *mapping,
2953 mark_inode_dirty(inode); 2953 mark_inode_dirty(inode);
2954 reiserfs_update_sd(&myth, inode); 2954 reiserfs_update_sd(&myth, inode);
2955 update_sd = 1; 2955 update_sd = 1;
2956 ret = journal_end(&myth, inode->i_sb); 2956 ret = journal_end(&myth);
2957 if (ret) 2957 if (ret)
2958 goto journal_error; 2958 goto journal_error;
2959 } 2959 }
@@ -3042,7 +3042,7 @@ int reiserfs_commit_write(struct file *f, struct page *page,
3042 mark_inode_dirty(inode); 3042 mark_inode_dirty(inode);
3043 reiserfs_update_sd(&myth, inode); 3043 reiserfs_update_sd(&myth, inode);
3044 update_sd = 1; 3044 update_sd = 1;
3045 ret = journal_end(&myth, inode->i_sb); 3045 ret = journal_end(&myth);
3046 if (ret) 3046 if (ret)
3047 goto journal_error; 3047 goto journal_error;
3048 } 3048 }
@@ -3346,7 +3346,7 @@ int reiserfs_setattr(struct dentry *dentry, struct iattr *attr)
3346 err = journal_begin(&th, inode->i_sb, 4); 3346 err = journal_begin(&th, inode->i_sb, 4);
3347 if (!err) { 3347 if (!err) {
3348 reiserfs_discard_prealloc(&th, inode); 3348 reiserfs_discard_prealloc(&th, inode);
3349 err = journal_end(&th, inode->i_sb); 3349 err = journal_end(&th);
3350 } 3350 }
3351 if (err) 3351 if (err)
3352 error = err; 3352 error = err;
@@ -3398,7 +3398,7 @@ int reiserfs_setattr(struct dentry *dentry, struct iattr *attr)
3398 error = dquot_transfer(inode, attr); 3398 error = dquot_transfer(inode, attr);
3399 reiserfs_write_lock(inode->i_sb); 3399 reiserfs_write_lock(inode->i_sb);
3400 if (error) { 3400 if (error) {
3401 journal_end(&th, inode->i_sb); 3401 journal_end(&th);
3402 reiserfs_write_unlock(inode->i_sb); 3402 reiserfs_write_unlock(inode->i_sb);
3403 goto out; 3403 goto out;
3404 } 3404 }
@@ -3412,7 +3412,7 @@ int reiserfs_setattr(struct dentry *dentry, struct iattr *attr)
3412 if (attr->ia_valid & ATTR_GID) 3412 if (attr->ia_valid & ATTR_GID)
3413 inode->i_gid = attr->ia_gid; 3413 inode->i_gid = attr->ia_gid;
3414 mark_inode_dirty(inode); 3414 mark_inode_dirty(inode);
3415 error = journal_end(&th, inode->i_sb); 3415 error = journal_end(&th);
3416 reiserfs_write_unlock(inode->i_sb); 3416 reiserfs_write_unlock(inode->i_sb);
3417 if (error) 3417 if (error)
3418 goto out; 3418 goto out;