[PATCH 5.15 662/667] fs: add two trivial lookup helpers