utimens: cache whether utimensat syscall works
authorEric Blake <ebb9@byu.net>
Mon, 12 Oct 2009 20:56:22 +0000 (14:56 -0600)
committerEric Blake <ebb9@byu.net>
Fri, 16 Oct 2009 14:25:50 +0000 (08:25 -0600)
commitc1572a883111051641846698f7b5a7e590206c5d
tree45e85de5a0428c89c3339cb306e913167e939590
parent4d8f229535aef794199fa6dd0eb29e852c35d73d
utimens: cache whether utimensat syscall works

No need to repeatedly try utimensat on older Linux kernel.

* lib/utimens.c (utimensat_works_really): New cache variable.
(fdutimens, lutimens): Use it to avoid failing syscall.

Signed-off-by: Eric Blake <ebb9@byu.net>
ChangeLog
lib/utimens.c