diff options
author | piaojun <piaojun@huawei.com> | 2016-05-19 20:09:47 -0400 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2016-05-19 22:12:14 -0400 |
commit | c14688ea248c5ddfb6b8b97151de0a8620ba4a68 (patch) | |
tree | dcdd5363a757e748146011da458b93175f347d49 /fs/ocfs2/alloc.c | |
parent | 8ba442214c332a2a10ac90bc24ebb00aea4ae0ec (diff) |
ocfs2: clean up an unused variable 'wants_rotate' in ocfs2_truncate_rec
Clean up an unused variable 'wants_rotate' in ocfs2_truncate_rec.
Signed-off-by: Jun Piao <piaojun@huawei.com>
Reviewed-by: Joseph Qi <joseph.qi@huawei.com>
Cc: Mark Fasheh <mfasheh@suse.de>
Cc: Joel Becker <jlbec@evilplan.org>
Cc: Junxiao Bi <junxiao.bi@oracle.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'fs/ocfs2/alloc.c')
-rw-r--r-- | fs/ocfs2/alloc.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/fs/ocfs2/alloc.c b/fs/ocfs2/alloc.c index e361d1a0ca09..460c0cedab3a 100644 --- a/fs/ocfs2/alloc.c +++ b/fs/ocfs2/alloc.c | |||
@@ -5351,7 +5351,7 @@ static int ocfs2_truncate_rec(handle_t *handle, | |||
5351 | { | 5351 | { |
5352 | int ret; | 5352 | int ret; |
5353 | u32 left_cpos, rec_range, trunc_range; | 5353 | u32 left_cpos, rec_range, trunc_range; |
5354 | int wants_rotate = 0, is_rightmost_tree_rec = 0; | 5354 | int is_rightmost_tree_rec = 0; |
5355 | struct super_block *sb = ocfs2_metadata_cache_get_super(et->et_ci); | 5355 | struct super_block *sb = ocfs2_metadata_cache_get_super(et->et_ci); |
5356 | struct ocfs2_path *left_path = NULL; | 5356 | struct ocfs2_path *left_path = NULL; |
5357 | struct ocfs2_extent_list *el = path_leaf_el(path); | 5357 | struct ocfs2_extent_list *el = path_leaf_el(path); |
@@ -5457,7 +5457,6 @@ static int ocfs2_truncate_rec(handle_t *handle, | |||
5457 | 5457 | ||
5458 | memset(rec, 0, sizeof(*rec)); | 5458 | memset(rec, 0, sizeof(*rec)); |
5459 | ocfs2_cleanup_merge(el, index); | 5459 | ocfs2_cleanup_merge(el, index); |
5460 | wants_rotate = 1; | ||
5461 | 5460 | ||
5462 | next_free = le16_to_cpu(el->l_next_free_rec); | 5461 | next_free = le16_to_cpu(el->l_next_free_rec); |
5463 | if (is_rightmost_tree_rec && next_free > 1) { | 5462 | if (is_rightmost_tree_rec && next_free > 1) { |