Commit e00d79e4 authored by Andrew Morton's avatar Andrew Morton Committed by Linus Torvalds

[PATCH] Decrease srtuct file size by 8

From: Kurt Garloff <garloff@suse.de>

Attached patch decreases the size of struct file by 8 bytes on 64 bit arches
by avoiding unecessary padding.
parent f74742d3
...@@ -532,8 +532,8 @@ struct fown_struct { ...@@ -532,8 +532,8 @@ struct fown_struct {
rwlock_t lock; /* protects pid, uid, euid fields */ rwlock_t lock; /* protects pid, uid, euid fields */
int pid; /* pid or -pgrp where SIGIO should be sent */ int pid; /* pid or -pgrp where SIGIO should be sent */
uid_t uid, euid; /* uid/euid of process setting the owner */ uid_t uid, euid; /* uid/euid of process setting the owner */
int signum; /* posix.1b rt signal to be delivered on IO */
void *security; void *security;
int signum; /* posix.1b rt signal to be delivered on IO */
}; };
/* /*
...@@ -561,10 +561,10 @@ struct file { ...@@ -561,10 +561,10 @@ struct file {
atomic_t f_count; atomic_t f_count;
unsigned int f_flags; unsigned int f_flags;
mode_t f_mode; mode_t f_mode;
int f_error;
loff_t f_pos; loff_t f_pos;
struct fown_struct f_owner; struct fown_struct f_owner;
unsigned int f_uid, f_gid; unsigned int f_uid, f_gid;
int f_error;
struct file_ra_state f_ra; struct file_ra_state f_ra;
unsigned long f_version; unsigned long f_version;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment