]> git.karo-electronics.de Git - karo-tx-linux.git/commitdiff
kernel/user.c: drop unused field 'files' from user_struct
authorKirill A. Shutemov <kirill@shutemov.name>
Wed, 14 May 2014 00:02:24 +0000 (10:02 +1000)
committerStephen Rothwell <sfr@canb.auug.org.au>
Wed, 14 May 2014 00:02:24 +0000 (10:02 +1000)
Nobody seems uses it for a long time. Let's drop it.

Signed-off-by: Kirill A. Shutemov <kirill.shutemov@linux.intel.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
include/linux/sched.h
kernel/user.c

index 2327c2d5f2028276e99d49d324e2d6c0db727c14..77c941f43413d4e5299a6e4b5880933da72ce92c 100644 (file)
@@ -745,7 +745,6 @@ static inline int signal_group_exit(const struct signal_struct *sig)
 struct user_struct {
        atomic_t __count;       /* reference count */
        atomic_t processes;     /* How many processes does this user have? */
-       atomic_t files;         /* How many open files does this user have? */
        atomic_t sigpending;    /* How many pending signals does this user have? */
 #ifdef CONFIG_INOTIFY_USER
        atomic_t inotify_watches; /* How many inotify watches does this user have? */
index 294fc6a9416845f7d5aa2b2d2029fe1b95bcbdbd..4efa39350e4401213d15a06987e7603460121ef7 100644 (file)
@@ -87,7 +87,6 @@ static DEFINE_SPINLOCK(uidhash_lock);
 struct user_struct root_user = {
        .__count        = ATOMIC_INIT(1),
        .processes      = ATOMIC_INIT(1),
-       .files          = ATOMIC_INIT(0),
        .sigpending     = ATOMIC_INIT(0),
        .locked_shm     = 0,
        .uid            = GLOBAL_ROOT_UID,