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>
This commit is contained in:
Родитель
8ba442214c
Коммит
c14688ea24
|
@ -5351,7 +5351,7 @@ static int ocfs2_truncate_rec(handle_t *handle,
|
||||||
{
|
{
|
||||||
int ret;
|
int ret;
|
||||||
u32 left_cpos, rec_range, trunc_range;
|
u32 left_cpos, rec_range, trunc_range;
|
||||||
int wants_rotate = 0, is_rightmost_tree_rec = 0;
|
int is_rightmost_tree_rec = 0;
|
||||||
struct super_block *sb = ocfs2_metadata_cache_get_super(et->et_ci);
|
struct super_block *sb = ocfs2_metadata_cache_get_super(et->et_ci);
|
||||||
struct ocfs2_path *left_path = NULL;
|
struct ocfs2_path *left_path = NULL;
|
||||||
struct ocfs2_extent_list *el = path_leaf_el(path);
|
struct ocfs2_extent_list *el = path_leaf_el(path);
|
||||||
|
@ -5457,7 +5457,6 @@ static int ocfs2_truncate_rec(handle_t *handle,
|
||||||
|
|
||||||
memset(rec, 0, sizeof(*rec));
|
memset(rec, 0, sizeof(*rec));
|
||||||
ocfs2_cleanup_merge(el, index);
|
ocfs2_cleanup_merge(el, index);
|
||||||
wants_rotate = 1;
|
|
||||||
|
|
||||||
next_free = le16_to_cpu(el->l_next_free_rec);
|
next_free = le16_to_cpu(el->l_next_free_rec);
|
||||||
if (is_rightmost_tree_rec && next_free > 1) {
|
if (is_rightmost_tree_rec && next_free > 1) {
|
||||||
|
|
Загрузка…
Ссылка в новой задаче