diff for duplicates of <20140509181935.GA24841@node.dhcp.inet.fi> diff --git a/a/1.txt b/N1/1.txt index 7cb9292..99671a7 100644 --- a/a/1.txt +++ b/N1/1.txt @@ -10,3 +10,43 @@ On Fri, May 09, 2014 at 08:14:08AM -0700, Linus Torvalds wrote: Okay got it. BTW, nobody seems use field 'files' of user_struct: + +>From 8bb8a0c740ad66126be4d3c092493e1ecc2189ef Mon Sep 17 00:00:00 2001 +From: "Kirill A. Shutemov" <kirill.shutemov@linux.intel.com> +Date: Fri, 9 May 2014 20:25:55 +0300 +Subject: [PATCH] kernel: drop unused field 'files' from user_struct + +Nobody seems uses it for a long time. Let's drop it. + +Signed-off-by: Kirill A. Shutemov <kirill.shutemov@linux.intel.com> +--- + include/linux/sched.h | 1 - + kernel/user.c | 1 - + 2 files changed, 2 deletions(-) + +diff --git a/include/linux/sched.h b/include/linux/sched.h +index 25f54c79f757..f0503ffa7a59 100644 +--- a/include/linux/sched.h ++++ b/include/linux/sched.h +@@ -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? */ +diff --git a/kernel/user.c b/kernel/user.c +index 294fc6a94168..4efa39350e44 100644 +--- a/kernel/user.c ++++ b/kernel/user.c +@@ -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, +-- + Kirill A. Shutemov diff --git a/a/content_digest b/N1/content_digest index cae0645..a1bb497 100644 --- a/a/content_digest +++ b/N1/content_digest @@ -28,6 +28,46 @@ "\n" "Okay got it.\n" "\n" - BTW, nobody seems use field 'files' of user_struct: + "BTW, nobody seems use field 'files' of user_struct:\n" + "\n" + ">From 8bb8a0c740ad66126be4d3c092493e1ecc2189ef Mon Sep 17 00:00:00 2001\n" + "From: \"Kirill A. Shutemov\" <kirill.shutemov@linux.intel.com>\n" + "Date: Fri, 9 May 2014 20:25:55 +0300\n" + "Subject: [PATCH] kernel: drop unused field 'files' from user_struct\n" + "\n" + "Nobody seems uses it for a long time. Let's drop it.\n" + "\n" + "Signed-off-by: Kirill A. Shutemov <kirill.shutemov@linux.intel.com>\n" + "---\n" + " include/linux/sched.h | 1 -\n" + " kernel/user.c | 1 -\n" + " 2 files changed, 2 deletions(-)\n" + "\n" + "diff --git a/include/linux/sched.h b/include/linux/sched.h\n" + "index 25f54c79f757..f0503ffa7a59 100644\n" + "--- a/include/linux/sched.h\n" + "+++ b/include/linux/sched.h\n" + "@@ -745,7 +745,6 @@ static inline int signal_group_exit(const struct signal_struct *sig)\n" + " struct user_struct {\n" + " \tatomic_t __count;\t/* reference count */\n" + " \tatomic_t processes;\t/* How many processes does this user have? */\n" + "-\tatomic_t files;\t\t/* How many open files does this user have? */\n" + " \tatomic_t sigpending;\t/* How many pending signals does this user have? */\n" + " #ifdef CONFIG_INOTIFY_USER\n" + " \tatomic_t inotify_watches; /* How many inotify watches does this user have? */\n" + "diff --git a/kernel/user.c b/kernel/user.c\n" + "index 294fc6a94168..4efa39350e44 100644\n" + "--- a/kernel/user.c\n" + "+++ b/kernel/user.c\n" + "@@ -87,7 +87,6 @@ static DEFINE_SPINLOCK(uidhash_lock);\n" + " struct user_struct root_user = {\n" + " \t.__count\t= ATOMIC_INIT(1),\n" + " \t.processes\t= ATOMIC_INIT(1),\n" + "-\t.files\t\t= ATOMIC_INIT(0),\n" + " \t.sigpending\t= ATOMIC_INIT(0),\n" + " \t.locked_shm = 0,\n" + " \t.uid\t\t= GLOBAL_ROOT_UID,\n" + "-- \n" + Kirill A. Shutemov -5f3b68c7bed1da68fb5a4471261b5eeb0dd8a61e64a307fed73421ec8e1e4c33 +d96d920890727105ad17f670cd9bcd010eb197987cc3a8a3ef0327e8cc28581f
This is an external index of several public inboxes, see mirroring instructions on how to clone and mirror all data and code used by this external index.