aboutsummaryrefslogtreecommitdiffstats
path: root/lib/string_helpers.c
diff options
context:
space:
mode:
authorChristian Brauner <[email protected]>2023-05-03 11:18:41 +0000
committerChristian Brauner <[email protected]>2023-05-19 02:30:22 +0000
commit64f44b27ae9184e13ebbca230fa83da02a10f283 (patch)
tree09cc3e55262406d7f0736a35d87432915b45c420 /lib/string_helpers.c
parentfs: properly document __lookup_mnt() (diff)
downloadkernel-64f44b27ae9184e13ebbca230fa83da02a10f283.tar.gz
kernel-64f44b27ae9184e13ebbca230fa83da02a10f283.zip
fs: use a for loop when locking a mount
Currently, lock_mount() uses a goto to retry the lookup until it succeeded in acquiring the namespace_lock() preventing the top mount from being overmounted. While that's perfectly fine we want to lookup the mountpoint on the parent of the top mount in later patches. So adapt the code to make this easier to implement. Also, the for loop is arguably a little cleaner and makes the code easier to follow. No functional changes intended. Reviewed-by: Seth Forshee (DigitalOcean) <[email protected]> Message-Id: <[email protected]> Signed-off-by: Christian Brauner <[email protected]>
Diffstat (limited to 'lib/string_helpers.c')
0 files changed, 0 insertions, 0 deletions