diff options
author | Tavian Barnes <tavianator@tavianator.com> | 2024-05-07 12:48:30 -0400 |
---|---|---|
committer | Tavian Barnes <tavianator@tavianator.com> | 2024-05-07 12:48:30 -0400 |
commit | 7129ed0ff069fde418773be313442beb0dacfaaf (patch) | |
tree | 89f1c19826a2a899a56da89fde9bf053a106e3a3 /src/dir.c | |
parent | 781b9eb78070872734c4e8303b3d02ae9e9c0f37 (diff) | |
download | bfs-7129ed0ff069fde418773be313442beb0dacfaaf.tar.xz |
stat: Prefer fstat(fd) to fstatat(fd, "", AT_EMPTY_PATH)
This lets us get rid of the runtime probe for AT_EMPTY_PATH support, and
should be more efficient anyway.
We still use statx(fd, "", AT_EMPTY_PATH) if available.
Link: https://lore.kernel.org/linux-fsdevel/CAHk-=wiYnnv7Kw7v+Cp2xU6_Fd-qxQMZuuxZ61LgA2=Gtftw-A@mail.gmail.com/
Diffstat (limited to 'src/dir.c')
0 files changed, 0 insertions, 0 deletions