Skip to content

Commit b91dc98

Browse files
ubifs: Rename tnc_read_node_nm
tnc_read_hashed_node() is a better name since we read a node by a given hash, not a name. Signed-off-by: Richard Weinberger <richard@nod.at>
1 parent ca7f85b commit b91dc98

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

fs/ubifs/tnc.c

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -378,7 +378,7 @@ static void lnc_free(struct ubifs_zbranch *zbr)
378378
}
379379

380380
/**
381-
* tnc_read_node_nm - read a "hashed" leaf node.
381+
* tnc_read_hashed_node - read a "hashed" leaf node.
382382
* @c: UBIFS file-system description object
383383
* @zbr: key and position of the node
384384
* @node: node is returned here
@@ -388,8 +388,8 @@ static void lnc_free(struct ubifs_zbranch *zbr)
388388
* added to LNC. Returns zero in case of success or a negative negative error
389389
* code in case of failure.
390390
*/
391-
static int tnc_read_node_nm(struct ubifs_info *c, struct ubifs_zbranch *zbr,
392-
void *node)
391+
static int tnc_read_hashed_node(struct ubifs_info *c, struct ubifs_zbranch *zbr,
392+
void *node)
393393
{
394394
int err;
395395

@@ -1454,7 +1454,7 @@ int ubifs_tnc_locate(struct ubifs_info *c, const union ubifs_key *key,
14541454
* In this case the leaf node cache gets used, so we pass the
14551455
* address of the zbranch and keep the mutex locked
14561456
*/
1457-
err = tnc_read_node_nm(c, zt, node);
1457+
err = tnc_read_hashed_node(c, zt, node);
14581458
goto out;
14591459
}
14601460
if (safely) {
@@ -1817,7 +1817,7 @@ static int do_lookup_nm(struct ubifs_info *c, const union ubifs_key *key,
18171817
goto out_unlock;
18181818
}
18191819

1820-
err = tnc_read_node_nm(c, &znode->zbranch[n], node);
1820+
err = tnc_read_hashed_node(c, &znode->zbranch[n], node);
18211821

18221822
out_unlock:
18231823
mutex_unlock(&c->tnc_mutex);
@@ -2815,7 +2815,7 @@ struct ubifs_dent_node *ubifs_tnc_next_ent(struct ubifs_info *c,
28152815
goto out_free;
28162816
}
28172817

2818-
err = tnc_read_node_nm(c, zbr, dent);
2818+
err = tnc_read_hashed_node(c, zbr, dent);
28192819
if (unlikely(err))
28202820
goto out_free;
28212821

0 commit comments

Comments
 (0)