]> git.proxmox.com Git - mirror_ubuntu-kernels.git/commit
clean overflow checks in count_mounts() a bit
authorAl Viro <viro@zeniv.linux.org.uk>
Mon, 14 Feb 2022 03:42:30 +0000 (22:42 -0500)
committerAl Viro <viro@zeniv.linux.org.uk>
Mon, 14 Feb 2022 03:42:30 +0000 (22:42 -0500)
commit124f75f864f38327e3e7e182e6b6da5105e2bade
treef861c6dfec15a97b5c6200d89cd9fb18132aac80
parent90b2433edb6d995bd23d6adde753095b4ab26104
clean overflow checks in count_mounts() a bit

Wraparound checks in there are redundant (x + y < x and
x + y < y are equivalent when x and y are both unsigned int).

IMO more straightforward code would be better here...

Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
fs/namespace.c