]> git.ipfire.org Git - thirdparty/util-linux.git/commit
lsfd: read /proc/$pid/ns/mnt earlier
authorMasatake YAMATO <yamato@redhat.com>
Wed, 3 Jan 2024 07:33:19 +0000 (16:33 +0900)
committerKarel Zak <kzak@redhat.com>
Thu, 29 Feb 2024 18:52:10 +0000 (19:52 +0100)
commit30eb9e10698c8431de08e8be3cfe0102b7dbe495
treef97a2c174980bd3293a364bbaae18efae4e07e13
parent7a8881c63cf0b0ed9ccbc68f255812e4cd597032
lsfd: read /proc/$pid/ns/mnt earlier

The change fba9898fd5b1d20a2ed350b7b542d9f8a3597a0c I introduced
unexpectedly canceled the optimization technique introduced in
a7f70ce17a925f1085bfa4b292427f8741d7e2a2 that reduced the number of
times reading /proc/$pid/mountinfo.

This change reenables the technique.

Signed-off-by: Masatake YAMATO <yamato@redhat.com>
(cherry picked from commit a99427e9c4e4b1ab57df1f94f6addc1769426f5a)
misc-utils/lsfd.c