diff options
author | cinap_lenrek <cinap_lenrek@felloff.net> | 2015-08-09 21:35:50 +0200 |
---|---|---|
committer | cinap_lenrek <cinap_lenrek@felloff.net> | 2015-08-09 21:35:50 +0200 |
commit | b4f56f1f4e8eff3965457ef9492528ee820e59bd (patch) | |
tree | 63872bf62f88dcdc3b9b15f7ae91124a0bd2f053 /sys/src/9 | |
parent | 9f4eac529243e21ae310ad3a07139d9981f1ce9c (diff) |
kernel: mount flag is int not ulong, reduce size of Mount struct by putting mflag field in what would be wasted as padding
Diffstat (limited to 'sys/src/9')
-rw-r--r-- | sys/src/9/port/portdat.h | 4 | ||||
-rw-r--r-- | sys/src/9/port/sysfile.c | 14 |
2 files changed, 9 insertions, 9 deletions
diff --git a/sys/src/9/port/portdat.h b/sys/src/9/port/portdat.h index 21107d870..be5b4e4df 100644 --- a/sys/src/9/port/portdat.h +++ b/sys/src/9/port/portdat.h @@ -254,11 +254,11 @@ enum struct Mount { ulong mountid; + int mflag; Mount* next; Mount* order; Chan* to; /* channel replacing channel */ - int mflag; - char *spec; + char* spec; }; struct Mhead diff --git a/sys/src/9/port/sysfile.c b/sys/src/9/port/sysfile.c index 0b0e2e94c..451822917 100644 --- a/sys/src/9/port/sysfile.c +++ b/sys/src/9/port/sysfile.c @@ -1002,7 +1002,7 @@ syschdir(va_list list) } long -bindmount(int ismount, int fd, int afd, char* arg0, char* arg1, ulong flag, char* spec) +bindmount(int ismount, int fd, int afd, char* arg0, char* arg1, int flag, char* spec) { int ret; Chan *c0, *c1, *ac, *bc; @@ -1074,11 +1074,11 @@ uintptr sysbind(va_list list) { char *arg0, *arg1; - ulong flag; + int flag; arg0 = va_arg(list, char*); arg1 = va_arg(list, char*); - flag = va_arg(list, ulong); + flag = va_arg(list, int); return (uintptr)bindmount(0, -1, -1, arg0, arg1, flag, nil); } @@ -1086,13 +1086,13 @@ uintptr sysmount(va_list list) { char *arg1, *spec; - ulong flag; + int flag; int fd, afd; fd = va_arg(list, int); afd = va_arg(list, int); arg1 = va_arg(list, char*); - flag = va_arg(list, ulong); + flag = va_arg(list, int); spec = va_arg(list, char*); return (uintptr)bindmount(1, fd, afd, nil, arg1, flag, spec); } @@ -1101,12 +1101,12 @@ uintptr sys_mount(va_list list) { char *arg1, *spec; - ulong flag; + int flag; int fd; fd = va_arg(list, int); arg1 = va_arg(list, char*); - flag = va_arg(list, ulong); + flag = va_arg(list, int); spec = va_arg(list, char*); return (uintptr)bindmount(1, fd, -1, nil, arg1, flag, spec); } |