Skip to content

Commit c971dad

Browse files
saschahauerrichardweinberger
authored andcommitted
ubifs: remove set but never used variable
replay_sqnum is set but never used. Remove it. Signed-off-by: Sascha Hauer <[email protected]> Signed-off-by: Richard Weinberger <[email protected]>
1 parent 422edac commit c971dad

File tree

2 files changed

+0
-5
lines changed

2 files changed

+0
-5
lines changed

fs/ubifs/replay.c

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -223,9 +223,6 @@ static int apply_replay_entry(struct ubifs_info *c, struct replay_entry *r)
223223
dbg_mntk(&r->key, "LEB %d:%d len %d deletion %d sqnum %llu key ",
224224
r->lnum, r->offs, r->len, r->deletion, r->sqnum);
225225

226-
/* Set c->replay_sqnum to help deal with dangling branches. */
227-
c->replay_sqnum = r->sqnum;
228-
229226
if (is_hash_key(c, &r->key)) {
230227
if (r->deletion)
231228
err = ubifs_tnc_remove_nm(c, &r->key, &r->nm);

fs/ubifs/ubifs.h

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1206,7 +1206,6 @@ struct ubifs_debug_info;
12061206
* @replay_list: temporary list used during journal replay
12071207
* @replay_buds: list of buds to replay
12081208
* @cs_sqnum: sequence number of first node in the log (commit start node)
1209-
* @replay_sqnum: sequence number of node currently being replayed
12101209
* @unclean_leb_list: LEBs to recover when re-mounting R/O mounted FS to R/W
12111210
* mode
12121211
* @rcvrd_mst_node: recovered master node to write when re-mounting R/O mounted
@@ -1438,7 +1437,6 @@ struct ubifs_info {
14381437
struct list_head replay_list;
14391438
struct list_head replay_buds;
14401439
unsigned long long cs_sqnum;
1441-
unsigned long long replay_sqnum;
14421440
struct list_head unclean_leb_list;
14431441
struct ubifs_mst_node *rcvrd_mst_node;
14441442
struct rb_root size_tree;

0 commit comments

Comments
 (0)