projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
8ba4422
)
ocfs2: clean up an unused variable 'wants_rotate' in ocfs2_truncate_rec
author
piaojun
<
[email protected]
>
Fri, 20 May 2016 00:09:47 +0000
(17:09 -0700)
committer
Linus Torvalds
<
[email protected]
>
Fri, 20 May 2016 02:12:14 +0000
(19:12 -0700)
Clean up an unused variable 'wants_rotate' in ocfs2_truncate_rec.
Signed-off-by: Jun Piao <
[email protected]
>
Reviewed-by: Joseph Qi <
[email protected]
>
Cc: Mark Fasheh <
[email protected]
>
Cc: Joel Becker <
[email protected]
>
Cc: Junxiao Bi <
[email protected]
>
Signed-off-by: Andrew Morton <
[email protected]
>
Signed-off-by: Linus Torvalds <
[email protected]
>
fs/ocfs2/alloc.c
patch
|
blob
|
history
diff --git
a/fs/ocfs2/alloc.c
b/fs/ocfs2/alloc.c
index e361d1a0ca09fe411d6d951e9a4ed417940229fb..460c0cedab3a435d5203c753c51b2cedbb709a67 100644
(file)
--- a/
fs/ocfs2/alloc.c
+++ b/
fs/ocfs2/alloc.c
@@
-5351,7
+5351,7
@@
static int ocfs2_truncate_rec(handle_t *handle,
{
int ret;
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 ocfs2_path *left_path = NULL;
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));
ocfs2_cleanup_merge(el, index);
- wants_rotate = 1;
next_free = le16_to_cpu(el->l_next_free_rec);
if (is_rightmost_tree_rec && next_free > 1) {