diff options
author | Goldwyn Rodrigues <rgoldwyn@suse.de> | 2013-11-12 18:06:52 -0500 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2013-11-12 22:09:00 -0500 |
commit | 06f9da6e826a0b459652b98a21541bca274bd440 (patch) | |
tree | 6fe8423a67c3c50e664b43ea0d772b09e63e5849 /fs/ocfs2/refcounttree.c | |
parent | 59c36455d061e200f386e1817362f6afd6265b6a (diff) |
fs/ocfs2: remove unnecessary variable bits_wanted from ocfs2_calc_extend_credits
Code cleanup to remove unnecessary variable passed but never used
to ocfs2_calc_extend_credits.
Signed-off-by: Goldwyn Rodrigues <rgoldwyn@suse.com>
Cc: Joel Becker <jlbec@evilplan.org>
Cc: Mark Fasheh <mfasheh@suse.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'fs/ocfs2/refcounttree.c')
-rw-r--r-- | fs/ocfs2/refcounttree.c | 9 |
1 files changed, 3 insertions, 6 deletions
diff --git a/fs/ocfs2/refcounttree.c b/fs/ocfs2/refcounttree.c index bf4dfc14bb2c..0022192e7ac8 100644 --- a/fs/ocfs2/refcounttree.c +++ b/fs/ocfs2/refcounttree.c | |||
@@ -2502,8 +2502,7 @@ static int ocfs2_calc_refcount_meta_credits(struct super_block *sb, | |||
2502 | ocfs2_init_refcount_extent_tree(&et, ci, ref_root_bh); | 2502 | ocfs2_init_refcount_extent_tree(&et, ci, ref_root_bh); |
2503 | *meta_add += ocfs2_extend_meta_needed(et.et_root_el); | 2503 | *meta_add += ocfs2_extend_meta_needed(et.et_root_el); |
2504 | *credits += ocfs2_calc_extend_credits(sb, | 2504 | *credits += ocfs2_calc_extend_credits(sb, |
2505 | et.et_root_el, | 2505 | et.et_root_el); |
2506 | ref_blocks); | ||
2507 | } else { | 2506 | } else { |
2508 | *credits += OCFS2_EXPAND_REFCOUNT_TREE_CREDITS; | 2507 | *credits += OCFS2_EXPAND_REFCOUNT_TREE_CREDITS; |
2509 | *meta_add += 1; | 2508 | *meta_add += 1; |
@@ -2874,8 +2873,7 @@ static int ocfs2_lock_refcount_allocators(struct super_block *sb, | |||
2874 | meta_add = | 2873 | meta_add = |
2875 | ocfs2_extend_meta_needed(et->et_root_el); | 2874 | ocfs2_extend_meta_needed(et->et_root_el); |
2876 | 2875 | ||
2877 | *credits += ocfs2_calc_extend_credits(sb, et->et_root_el, | 2876 | *credits += ocfs2_calc_extend_credits(sb, et->et_root_el); |
2878 | num_clusters + 2); | ||
2879 | 2877 | ||
2880 | ret = ocfs2_calc_refcount_meta_credits(sb, ref_ci, ref_root_bh, | 2878 | ret = ocfs2_calc_refcount_meta_credits(sb, ref_ci, ref_root_bh, |
2881 | p_cluster, num_clusters, | 2879 | p_cluster, num_clusters, |
@@ -3625,8 +3623,7 @@ int ocfs2_refcounted_xattr_delete_need(struct inode *inode, | |||
3625 | 3623 | ||
3626 | ocfs2_init_refcount_extent_tree(&et, ref_ci, ref_root_bh); | 3624 | ocfs2_init_refcount_extent_tree(&et, ref_ci, ref_root_bh); |
3627 | *credits += ocfs2_calc_extend_credits(inode->i_sb, | 3625 | *credits += ocfs2_calc_extend_credits(inode->i_sb, |
3628 | et.et_root_el, | 3626 | et.et_root_el); |
3629 | ref_blocks); | ||
3630 | } | 3627 | } |
3631 | 3628 | ||
3632 | out: | 3629 | out: |