fix statfs struct on mips
authorSzabolcs Nagy <nsz@port70.net>
Wed, 12 Mar 2014 14:59:09 +0000 (15:59 +0100)
committerSzabolcs Nagy <nsz@port70.net>
Wed, 12 Mar 2014 17:08:58 +0000 (18:08 +0100)
The mips statfs struct layout is different than on other archs, so the
statfs, fstatfs, statvfs and fstatvfs APIs were broken on mips.
Now the ordering is fixed, the types are kept consistent with other archs.

arch/mips/bits/statfs.h

index f103f4e..a73bd54 100644 (file)
@@ -1,7 +1,8 @@
 struct statfs {
-       unsigned long f_type, f_bsize;
-       fsblkcnt_t f_blocks, f_bfree, f_bavail;
+       unsigned long f_type, f_bsize, f_frsize;
+       fsblkcnt_t f_blocks, f_bfree;
        fsfilcnt_t f_files, f_ffree;
+       fsblkcnt_t f_bavail;
        fsid_t f_fsid;
-       unsigned long f_namelen, f_frsize, f_flags, f_spare[4];
+       unsigned long f_namelen, f_flags, f_spare[5];
 };