aboutsummaryrefslogtreecommitdiffstats
path: root/fs/ubifs/gc.c
diff options
context:
space:
mode:
Diffstat (limited to 'fs/ubifs/gc.c')
-rw-r--r--fs/ubifs/gc.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/fs/ubifs/gc.c b/fs/ubifs/gc.c
index 082d21bd9021..d70937b3f8e9 100644
--- a/fs/ubifs/gc.c
+++ b/fs/ubifs/gc.c
@@ -118,7 +118,7 @@ static int switch_gc_head(struct ubifs_info *c)
118 * This function compares data nodes @a and @b. Returns %1 if @a has greater 118 * This function compares data nodes @a and @b. Returns %1 if @a has greater
119 * inode or block number, and %-1 otherwise. 119 * inode or block number, and %-1 otherwise.
120 */ 120 */
121int data_nodes_cmp(void *priv, struct list_head *a, struct list_head *b) 121static int data_nodes_cmp(void *priv, struct list_head *a, struct list_head *b)
122{ 122{
123 ino_t inuma, inumb; 123 ino_t inuma, inumb;
124 struct ubifs_info *c = priv; 124 struct ubifs_info *c = priv;
@@ -161,7 +161,8 @@ int data_nodes_cmp(void *priv, struct list_head *a, struct list_head *b)
161 * first and sorted by length in descending order. Directory entry nodes go 161 * first and sorted by length in descending order. Directory entry nodes go
162 * after inode nodes and are sorted in ascending hash valuer order. 162 * after inode nodes and are sorted in ascending hash valuer order.
163 */ 163 */
164int nondata_nodes_cmp(void *priv, struct list_head *a, struct list_head *b) 164static int nondata_nodes_cmp(void *priv, struct list_head *a,
165 struct list_head *b)
165{ 166{
166 ino_t inuma, inumb; 167 ino_t inuma, inumb;
167 struct ubifs_info *c = priv; 168 struct ubifs_info *c = priv;