Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit e9ef7b5f authored by Artem Bityutskiy's avatar Artem Bityutskiy
Browse files

UBIFS: make 2 functions static



This is a minor change which makes 2 functions static because they
are not used outside the gc.c file: 'data_nodes_cmp()' and
'nondata_nodes_cmp()'.

Signed-off-by: default avatarArtem Bityutskiy <Artem.Bityutskiy@nokia.com>
parent 7a9c3e39
Loading
Loading
Loading
Loading
+3 −2
Original line number Original line Diff line number Diff line
@@ -118,7 +118,7 @@ static int switch_gc_head(struct ubifs_info *c)
 * This function compares data nodes @a and @b. Returns %1 if @a has greater
 * This function compares data nodes @a and @b. Returns %1 if @a has greater
 * inode or block number, and %-1 otherwise.
 * inode or block number, and %-1 otherwise.
 */
 */
int data_nodes_cmp(void *priv, struct list_head *a, struct list_head *b)
static int data_nodes_cmp(void *priv, struct list_head *a, struct list_head *b)
{
{
	ino_t inuma, inumb;
	ino_t inuma, inumb;
	struct ubifs_info *c = priv;
	struct ubifs_info *c = priv;
@@ -161,7 +161,8 @@ int data_nodes_cmp(void *priv, struct list_head *a, struct list_head *b)
 * first and sorted by length in descending order. Directory entry nodes go
 * first and sorted by length in descending order. Directory entry nodes go
 * after inode nodes and are sorted in ascending hash valuer order.
 * after inode nodes and are sorted in ascending hash valuer order.
 */
 */
int nondata_nodes_cmp(void *priv, struct list_head *a, struct list_head *b)
static int nondata_nodes_cmp(void *priv, struct list_head *a,
			     struct list_head *b)
{
{
	ino_t inuma, inumb;
	ino_t inuma, inumb;
	struct ubifs_info *c = priv;
	struct ubifs_info *c = priv;