Skip to content

Commit

Permalink
mnt: Optimize mntinfo_add_list to O(1) using a tail pointer
Browse files Browse the repository at this point in the history
  • Loading branch information
ankushT369 committed Feb 19, 2025
1 parent acd5e0a commit 627757f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions criu/mount.c
Original file line number Diff line number Diff line change
Expand Up @@ -1204,7 +1204,7 @@ int __check_mountpoint_fd(struct mount_info *pm, int mnt_fd, bool parse_mountinf
return 0;

pr_warn("The file system %#x %#x (%#x) %s %s is inaccessible\n", pm->s_dev, pm->s_dev_rt, dev,
pm->fstype->name, pm->ns_mountpoint);
pm->fstype->name, pm->ns_mountpoint);
return -1;
}

Expand Down Expand Up @@ -1961,7 +1961,7 @@ static int dump_mnt_ns(struct ns_id *ns, struct mount_info *pms)
_mi = list_entry(_mi->children._el, struct mount_info, siblings); \
continue; \
} \
up: \
up: \
if (_fn_r(_mi)) \
return -1; \
if (_mi == _r) \
Expand Down

0 comments on commit 627757f

Please sign in to comment.