fstatfs64: Prefer fstatfs64 system call instead of __libc_fstatfs
commite87a63c1d87904a24fca393a840207cf0451bab9
authorMarkos Chandras <markos.chandras@imgtec.com>
Thu, 18 Oct 2012 15:51:43 +0000 (18 16:51 +0100)
committerBernhard Reutner-Fischer <rep.dot.nop@gmail.com>
Wed, 20 Feb 2013 12:45:13 +0000 (20 13:45 +0100)
treeedf596ae6946dd3c5c1b5e27a88c3f54753049f7
parent09e782b088e77eff01e9b08dd0f5dd4896e9d417
fstatfs64: Prefer fstatfs64 system call instead of __libc_fstatfs

Using __libc_fstatfs for fstatfs64 adds a small delay as it needs to
use a 32-bit data structure to get the file info and them pass them to
the 64-bit data structure which was given as a fstatfs64 argument. Using
the system call directly should make the entire process much faster.
Also fix the arguments for fstatfs64. It takes three arguments
(see fs/fstatfs.c in Linux kernel sources) so despite what the manpage
says, the size of the buffer needs to be passed as the second argument

Signed-off-by: Markos Chandras <markos.chandras@imgtec.com>
Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com>
libc/misc/statfs/fstatfs64.c