Commit 64cf10f8 authored by Cyrill Gorcunov's avatar Cyrill Gorcunov Committed by Pavel Emelyanov

mount: mnt_depth -- make it unsigned

Signed-off-by: 's avatarCyrill Gorcunov <gorcunov@openvz.org>
Acked-by: 's avatarTycho Andersen <tycho.andersen@canonical.com>
Signed-off-by: 's avatarPavel Emelyanov <xemul@parallels.com>
parent f21dfadf
...@@ -383,9 +383,9 @@ static struct mount_info *mnt_build_ids_tree(struct mount_info *list) ...@@ -383,9 +383,9 @@ static struct mount_info *mnt_build_ids_tree(struct mount_info *list)
return root; return root;
} }
static int mnt_depth(struct mount_info *m) static unsigned int mnt_depth(struct mount_info *m)
{ {
int depth = 0; unsigned int depth = 0;
char *c; char *c;
for (c = m->mountpoint; *c != '\0'; c++) for (c = m->mountpoint; *c != '\0'; c++)
...@@ -415,7 +415,7 @@ static void mnt_resort_siblings(struct mount_info *tree) ...@@ -415,7 +415,7 @@ static void mnt_resort_siblings(struct mount_info *tree)
pr_info("\tResorting siblings on %d\n", tree->mnt_id); pr_info("\tResorting siblings on %d\n", tree->mnt_id);
while (!list_empty(&tree->children)) { while (!list_empty(&tree->children)) {
int depth; unsigned int depth;
m = list_first_entry(&tree->children, struct mount_info, siblings); m = list_first_entry(&tree->children, struct mount_info, siblings);
list_del(&m->siblings); list_del(&m->siblings);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment