2007-07-10 17:57:28 -05:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2008-02-06 19:25:03 -06:00
|
|
|
|
2007-07-10 17:57:28 -05:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2011-11-28 10:40:46 -08:00
|
|
|
|
|
|
|
|
|
2007-07-10 17:57:28 -05:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2008-02-06 19:25:03 -06:00
|
|
|
|
2007-07-10 17:57:28 -05:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2007-10-17 14:31:07 -05:00
|
|
|
|
include cleanup: Update gfp.h and slab.h includes to prepare for breaking implicit slab.h inclusion from percpu.h
percpu.h is included by sched.h and module.h and thus ends up being
included when building most .c files. percpu.h includes slab.h which
in turn includes gfp.h making everything defined by the two files
universally available and complicating inclusion dependencies.
percpu.h -> slab.h dependency is about to be removed. Prepare for
this change by updating users of gfp and slab facilities include those
headers directly instead of assuming availability. As this conversion
needs to touch large number of source files, the following script is
used as the basis of conversion.
http://userweb.kernel.org/~tj/misc/slabh-sweep.py
The script does the followings.
* Scan files for gfp and slab usages and update includes such that
only the necessary includes are there. ie. if only gfp is used,
gfp.h, if slab is used, slab.h.
* When the script inserts a new include, it looks at the include
blocks and try to put the new include such that its order conforms
to its surrounding. It's put in the include block which contains
core kernel includes, in the same order that the rest are ordered -
alphabetical, Christmas tree, rev-Xmas-tree or at the end if there
doesn't seem to be any matching order.
* If the script can't find a place to put a new include (mostly
because the file doesn't have fitting include block), it prints out
an error message indicating which .h file needs to be added to the
file.
The conversion was done in the following steps.
1. The initial automatic conversion of all .c files updated slightly
over 4000 files, deleting around 700 includes and adding ~480 gfp.h
and ~3000 slab.h inclusions. The script emitted errors for ~400
files.
2. Each error was manually checked. Some didn't need the inclusion,
some needed manual addition while adding it to implementation .h or
embedding .c file was more appropriate for others. This step added
inclusions to around 150 files.
3. The script was run again and the output was compared to the edits
from #2 to make sure no file was left behind.
4. Several build tests were done and a couple of problems were fixed.
e.g. lib/decompress_*.c used malloc/free() wrappers around slab
APIs requiring slab.h to be added manually.
5. The script was run on all .h files but without automatically
editing them as sprinkling gfp.h and slab.h inclusions around .h
files could easily lead to inclusion dependency hell. Most gfp.h
inclusion directives were ignored as stuff from gfp.h was usually
wildly available and often used in preprocessor macros. Each
slab.h inclusion directive was examined and added manually as
necessary.
6. percpu.h was updated not to include slab.h.
7. Build test were done on the following configurations and failures
were fixed. CONFIG_GCOV_KERNEL was turned off for all tests (as my
distributed build env didn't work with gcov compiles) and a few
more options had to be turned off depending on archs to make things
build (like ipr on powerpc/64 which failed due to missing writeq).
* x86 and x86_64 UP and SMP allmodconfig and a custom test config.
* powerpc and powerpc64 SMP allmodconfig
* sparc and sparc64 SMP allmodconfig
* ia64 SMP allmodconfig
* s390 SMP allmodconfig
* alpha SMP allmodconfig
* um on x86_64 SMP allmodconfig
8. percpu.h modifications were reverted so that it could be applied as
a separate patch and serve as bisection point.
Given the fact that I had only a couple of failures from tests on step
6, I'm fairly confident about the coverage of this conversion patch.
If there is a breakage, it's likely to be something in one of the arch
headers which should be easily discoverable easily on most builds of
the specific arch.
Signed-off-by: Tejun Heo <tj@kernel.org>
Guess-its-ok-by: Christoph Lameter <cl@linux-foundation.org>
Cc: Ingo Molnar <mingo@redhat.com>
Cc: Lee Schermerhorn <Lee.Schermerhorn@hp.com>
2010-03-24 17:04:11 +09:00
|
|
|
|
2007-07-10 17:57:28 -05:00
|
|
|
|
2008-10-13 18:45:25 -05:00
|
|
|
|
2007-07-10 17:57:28 -05:00
|
|
|
|
|
|
|
|
|
2009-08-06 02:02:43 +04:00
|
|
|
|
|
|
|
|
|
2007-07-10 17:57:28 -05:00
|
|
|
|
2007-10-17 14:31:07 -05:00
|
|
|
|
2008-02-06 19:25:03 -06:00
|
|
|
|
2007-10-17 14:31:07 -05:00
|
|
|
|
2008-03-05 07:08:09 -06:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2007-10-17 14:31:07 -05:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2007-07-10 17:57:28 -05:00
|
|
|
|
2008-03-05 07:08:09 -06:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2007-07-10 17:57:28 -05:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2008-02-06 19:25:03 -06:00
|
|
|
|
2007-07-10 17:57:28 -05:00
|
|
|
|
|
|
|
|
|
2007-10-17 14:31:07 -05:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2007-07-10 17:57:28 -05:00
|
|
|
|
2007-10-17 14:31:07 -05:00
|
|
|
|
|
|
|
|
|
2007-11-06 08:02:53 -06:00
|
|
|
|
2007-10-17 14:31:07 -05:00
|
|
|
|
|
|
|
|
|
2008-10-13 10:46:57 +01:00
|
|
|
|
2007-10-17 14:31:07 -05:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2007-11-06 08:02:53 -06:00
|
|
|
|
2007-10-17 14:31:07 -05:00
|
|
|
|
|
|
|
|
|
2008-02-06 19:25:03 -06:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2008-10-13 18:45:25 -05:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2008-03-05 07:08:09 -06:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2008-10-13 18:45:25 -05:00
|
|
|
|
2008-03-05 07:08:09 -06:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2008-10-13 18:45:22 -05:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2008-03-05 07:08:09 -06:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2009-07-19 13:41:55 -06:00
|
|
|
|
2008-03-05 07:08:09 -06:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2008-02-06 19:25:03 -06:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2008-10-13 18:45:25 -05:00
|
|
|
|
2008-02-06 19:25:03 -06:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2008-10-13 18:45:22 -05:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2008-02-06 19:25:03 -06:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2008-10-13 18:45:25 -05:00
|
|
|
|
|
|
|
|
|
2008-02-06 19:25:03 -06:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2011-02-01 11:42:43 +01:00
|
|
|
|
|
|
|
|
|
2008-10-13 18:45:25 -05:00
|
|
|
|
|
|
|
|
|
2011-02-01 11:42:43 +01:00
|
|
|
|
2008-02-06 19:25:03 -06:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2008-10-13 18:45:25 -05:00
|
|
|
|
2008-02-06 19:25:03 -06:00
|
|
|
|
|
|
|
|
|
2008-10-13 18:45:25 -05:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2008-02-06 19:25:03 -06:00
|
|
|
|
|
|
|
|
|
2008-10-13 18:45:25 -05:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2008-02-06 19:25:03 -06:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2008-10-13 18:45:24 -05:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2008-03-05 07:08:09 -06:00
|
|
|
|
2008-02-06 19:25:03 -06:00
|
|
|
|
2008-03-05 07:08:09 -06:00
|
|
|
|
2008-10-16 08:30:07 -05:00
|
|
|
|
2008-02-06 19:25:03 -06:00
|
|
|
|
2008-10-13 18:45:22 -05:00
|
|
|
|
2008-10-13 18:45:21 -05:00
|
|
|
|
2008-10-13 18:45:24 -05:00
|
|
|
|
2008-02-06 19:25:03 -06:00
|
|
|
|
2011-11-28 10:40:46 -08:00
|
|
|
|
2008-10-17 12:45:40 -05:00
|
|
|
|
2008-10-13 18:45:21 -05:00
|
|
|
|
2008-10-17 12:45:40 -05:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2008-10-13 18:45:24 -05:00
|
|
|
|
2008-10-13 18:45:22 -05:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2008-10-13 18:45:24 -05:00
|
|
|
|
2008-10-13 18:45:25 -05:00
|
|
|
|
2008-10-13 18:45:24 -05:00
|
|
|
|
2008-10-13 18:45:22 -05:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2008-10-13 18:45:24 -05:00
|
|
|
|
2008-02-06 19:25:03 -06:00
|
|
|
|
2008-10-13 18:45:21 -05:00
|
|
|
|
2008-02-06 19:25:03 -06:00
|
|
|
|
2008-10-13 18:45:24 -05:00
|
|
|
|
2011-11-28 10:40:46 -08:00
|
|
|
|
2009-04-05 16:28:59 -05:00
|
|
|
|
2008-10-13 18:45:21 -05:00
|
|
|
|
2008-02-06 19:25:03 -06:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2010-09-05 09:00:21 +00:00
|
|
|
|
2008-10-13 18:45:24 -05:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2011-11-28 10:40:46 -08:00
|
|
|
|
2008-10-13 18:45:24 -05:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2008-02-06 19:25:03 -06:00
|
|
|
|
|
|
|
|
|
2008-03-05 07:08:09 -06:00
|
|
|
|
|
|
|
|
|
2008-02-06 19:25:03 -06:00
|
|
|
|
2008-03-05 07:08:09 -06:00
|
|
|
|
2008-02-06 19:25:03 -06:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2011-11-28 10:40:46 -08:00
|
|
|
|
2008-02-06 19:25:03 -06:00
|
|
|
|
2008-10-13 18:45:22 -05:00
|
|
|
|
|
|
|
|
|
2008-02-06 19:25:03 -06:00
|
|
|
|
2008-10-13 18:45:22 -05:00
|
|
|
|
2008-02-06 19:25:03 -06:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2011-11-28 10:40:46 -08:00
|
|
|
|
|
|
|
|
|
2008-10-13 18:45:24 -05:00
|
|
|
|
2008-10-13 18:45:22 -05:00
|
|
|
|
2011-11-28 10:40:46 -08:00
|
|
|
|
2008-02-06 19:25:03 -06:00
|
|
|
|
2012-09-17 15:16:28 +02:00
|
|
|
|
2008-02-06 19:25:03 -06:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2008-10-13 18:45:22 -05:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2011-11-28 10:40:46 -08:00
|
|
|
|
2008-10-13 18:45:22 -05:00
|
|
|
|
|
|
|
|
|
2008-10-13 18:45:24 -05:00
|
|
|
|
2011-11-28 10:40:46 -08:00
|
|
|
|
|
|
|
|
|
2008-02-06 19:25:03 -06:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2008-10-13 18:45:22 -05:00
|
|
|
|
2011-11-28 10:40:46 -08:00
|
|
|
|
|
|
|
|
|
2008-02-06 19:25:03 -06:00
|
|
|
|
2008-10-13 18:45:22 -05:00
|
|
|
|
2009-04-05 16:28:59 -05:00
|
|
|
|
|
|
|
|
|
2011-11-28 10:40:46 -08:00
|
|
|
|
|
|
|
|
|
2008-10-13 18:45:22 -05:00
|
|
|
|
2008-02-06 19:25:03 -06:00
|
|
|
|
2008-10-13 18:45:22 -05:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2011-03-08 16:39:47 +05:30
|
|
|
|
2008-10-13 18:45:22 -05:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2011-11-28 10:40:46 -08:00
|
|
|
|
2008-10-17 12:45:40 -05:00
|
|
|
|
2009-04-05 16:28:59 -05:00
|
|
|
|
|
|
|
|
|
2008-10-13 18:45:21 -05:00
|
|
|
|
2008-10-17 12:45:40 -05:00
|
|
|
|
2008-10-13 18:45:21 -05:00
|
|
|
|
2008-10-13 18:45:22 -05:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2008-02-06 19:25:03 -06:00
|
|
|
|
|
|
|
|
|
2012-09-17 15:16:28 +02:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2008-02-06 19:25:03 -06:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2008-10-13 18:45:25 -05:00
|
|
|
|
2008-02-06 19:25:03 -06:00
|
|
|
|
2012-09-17 15:16:28 +02:00
|
|
|
|
2011-11-28 10:40:46 -08:00
|
|
|
|
2011-02-01 11:42:43 +01:00
|
|
|
|
2012-09-17 15:16:28 +02:00
|
|
|
|
|
|
|
|
|
2008-02-06 19:25:03 -06:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2008-10-13 18:45:24 -05:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2011-11-28 10:40:46 -08:00
|
|
|
|
2008-10-13 18:45:24 -05:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2009-02-25 10:31:37 +00:00
|
|
|
|
2008-10-13 18:45:24 -05:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2008-10-13 18:45:22 -05:00
|
|
|
|
2008-10-13 18:45:24 -05:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2012-09-17 15:16:31 +02:00
|
|
|
|
2008-10-13 18:45:24 -05:00
|
|
|
|
|
|
|
|
|
2012-09-17 15:16:31 +02:00
|
|
|
|
2008-10-13 18:45:24 -05:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2008-10-13 18:45:22 -05:00
|
|
|
|
2008-10-13 18:45:24 -05:00
|
|
|
|
2008-10-13 18:45:22 -05:00
|
|
|
|
2011-11-28 10:40:46 -08:00
|
|
|
|
2008-10-13 18:45:24 -05:00
|
|
|
|
|
|
|
|
|
2008-10-13 18:45:22 -05:00
|
|
|
|
|
|
|
|
|
2008-10-13 18:45:24 -05:00
|
|
|
|
2008-10-13 18:45:22 -05:00
|
|
|
|
2008-10-13 18:45:24 -05:00
|
|
|
|
|
|
|
|
|
2011-11-28 10:40:46 -08:00
|
|
|
|
|
|
|
|
|
2008-10-13 18:45:24 -05:00
|
|
|
|
|
|
|
|
|
2011-11-28 10:40:46 -08:00
|
|
|
|
2012-09-17 15:16:30 +02:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2008-10-13 18:45:24 -05:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2012-09-17 15:16:30 +02:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2012-09-17 15:16:29 +02:00
|
|
|
|
2008-10-13 18:45:24 -05:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2012-09-17 15:16:30 +02:00
|
|
|
|
|
|
|
|
|
2011-11-28 10:40:46 -08:00
|
|
|
|
2011-02-01 11:42:43 +01:00
|
|
|
|
2012-09-17 15:16:30 +02:00
|
|
|
|
|
|
|
|
|
2008-10-13 18:45:24 -05:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2012-04-15 05:58:06 +00:00
|
|
|
|
2008-10-13 18:45:24 -05:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2011-02-01 11:42:43 +01:00
|
|
|
|
|
|
|
|
|
2008-10-13 18:45:24 -05:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2011-11-28 10:40:46 -08:00
|
|
|
|
2008-10-13 18:45:24 -05:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2008-10-13 18:45:20 -05:00
|
|
|
|
2008-10-13 18:45:24 -05:00
|
|
|
|
|
|
|
|
|
2011-11-28 10:40:46 -08:00
|
|
|
|
2008-10-13 18:45:24 -05:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2011-11-28 10:40:46 -08:00
|
|
|
|
2008-10-13 18:45:24 -05:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2011-11-28 10:40:46 -08:00
|
|
|
|
2008-10-13 18:45:24 -05:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2011-11-28 10:40:46 -08:00
|
|
|
|
2008-10-13 18:45:24 -05:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2011-11-28 10:40:46 -08:00
|
|
|
|
2008-10-13 18:45:24 -05:00
|
|
|
|
2011-11-28 10:40:46 -08:00
|
|
|
|
2011-02-01 11:42:43 +01:00
|
|
|
|
2008-10-13 18:45:24 -05:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2011-11-28 10:40:46 -08:00
|
|
|
|
2009-11-29 16:55:45 -08:00
|
|
|
|
|
|
|
|
|
2011-11-28 10:40:46 -08:00
|
|
|
|
2011-02-01 11:42:43 +01:00
|
|
|
|
2008-10-13 18:45:24 -05:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2008-02-06 19:25:03 -06:00
|
|
|
|
2008-10-13 18:45:21 -05:00
|
|
|
|
2008-02-06 19:25:03 -06:00
|
|
|
|
|
|
|
|
|
2008-10-13 18:45:21 -05:00
|
|
|
|
2008-02-06 19:25:03 -06:00
|
|
|
|
2008-10-13 18:45:21 -05:00
|
|
|
|
|
|
|
|
|
2008-03-05 07:08:09 -06:00
|
|
|
|
2008-02-06 19:25:03 -06:00
|
|
|
|
2008-03-05 07:08:09 -06:00
|
|
|
|
2008-10-13 18:45:21 -05:00
|
|
|
|
2008-02-06 19:25:03 -06:00
|
|
|
|
|
|
|
|
|
2008-10-13 18:45:21 -05:00
|
|
|
|
|
|
|
|
|
2008-02-06 19:25:03 -06:00
|
|
|
|
2011-11-28 10:40:46 -08:00
|
|
|
|
|
|
|
|
|
2008-02-06 19:25:03 -06:00
|
|
|
|
2008-10-13 18:45:21 -05:00
|
|
|
|
2008-02-06 19:25:03 -06:00
|
|
|
|
2008-10-13 18:45:21 -05:00
|
|
|
|
2008-10-17 12:45:40 -05:00
|
|
|
|
2008-02-06 19:25:03 -06:00
|
|
|
|
2008-10-13 18:45:21 -05:00
|
|
|
|
2008-02-06 19:25:03 -06:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2008-10-13 18:45:25 -05:00
|
|
|
|
2008-02-06 19:25:03 -06:00
|
|
|
|
|
|
|
|
|
2011-02-01 11:42:43 +01:00
|
|
|
|
2008-02-06 19:25:03 -06:00
|
|
|
|
2008-10-13 18:45:21 -05:00
|
|
|
|
2008-02-06 19:25:03 -06:00
|
|
|
|
|
|
|
|
|
2008-10-13 18:45:21 -05:00
|
|
|
|
2008-02-06 19:25:03 -06:00
|
|
|
|
2008-10-17 12:45:40 -05:00
|
|
|
|
2008-02-06 19:25:03 -06:00
|
|
|
|
2011-11-28 10:40:46 -08:00
|
|
|
|
2008-02-06 19:25:03 -06:00
|
|
|
|
2008-10-13 18:45:21 -05:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2009-04-05 16:28:59 -05:00
|
|
|
|
2008-10-13 18:45:21 -05:00
|
|
|
|
2008-10-17 12:45:40 -05:00
|
|
|
|
2009-04-05 16:28:59 -05:00
|
|
|
|
|
|
|
|
|
2008-02-06 19:25:03 -06:00
|
|
|
|
2008-10-17 12:45:40 -05:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2008-02-06 19:25:03 -06:00
|
|
|
|
|
|
|
|
|
2007-10-17 14:31:07 -05:00
|
|
|
|
2009-07-19 13:41:55 -06:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2007-10-17 14:31:07 -05:00
|
|
|
|
2008-03-07 10:53:53 -06:00
|
|
|
|
2007-10-17 14:31:07 -05:00
|
|
|
|
|
|
|
|
|
2008-03-07 10:53:53 -06:00
|
|
|
|
2007-07-10 17:57:28 -05:00
|
|
|
|
2007-10-17 14:31:07 -05:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2010-02-08 16:23:23 -06:00
|
|
|
|
2007-07-10 17:57:28 -05:00
|
|
|
|
2007-10-17 14:31:07 -05:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2007-07-10 17:57:28 -05:00
|
|
|
|
2008-03-07 10:53:53 -06:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2010-02-08 16:23:23 -06:00
|
|
|
|
|
|
|
|
|
2011-11-28 10:40:46 -08:00
|
|
|
|
|
|
|
|
|
2008-03-07 10:53:53 -06:00
|
|
|
|
|
|
|
|
|
2010-02-08 16:23:23 -06:00
|
|
|
|
2007-07-10 17:57:28 -05:00
|
|
|
|
2007-10-17 14:31:07 -05:00
|
|
|
|
|
|
|
|
|
2008-03-07 10:53:53 -06:00
|
|
|
|
2007-10-17 14:31:07 -05:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2009-07-01 08:50:54 +00:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2011-11-28 10:40:46 -08:00
|
|
|
|
|
|
|
|
|
2009-07-01 08:50:54 +00:00
|
|
|
|
|
|
|
|
|
2007-10-17 14:31:07 -05:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2007-07-10 17:57:28 -05:00
|
|
|
|
2010-02-08 16:23:23 -06:00
|
|
|
|
|
|
|
|
|
2008-03-07 10:53:53 -06:00
|
|
|
|
2007-07-10 17:57:28 -05:00
|
|
|
|
|
|
|
|
|
2008-10-13 18:45:25 -05:00
|
|
|
|
2007-07-10 17:57:28 -05:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2008-10-13 18:45:25 -05:00
|
|
|
|
|
|
|
|
|
2007-07-10 17:57:28 -05:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2008-10-13 18:45:25 -05:00
|
|
|
|
2007-10-17 14:31:07 -05:00
|
|
|
|
2009-08-06 02:02:43 +04:00
|
|
|
|
2012-08-18 00:25:51 -04:00
|
|
|
|
|
|
|
|
|
2009-08-06 02:02:43 +04:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2007-10-17 14:31:07 -05:00
|
|
|
|
|
|
|
|
|
Merge branch 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/viro/vfs
Pull vfs update from Al Viro:
- big one - consolidation of descriptor-related logics; almost all of
that is moved to fs/file.c
(BTW, I'm seriously tempted to rename the result to fd.c. As it is,
we have a situation when file_table.c is about handling of struct
file and file.c is about handling of descriptor tables; the reasons
are historical - file_table.c used to be about a static array of
struct file we used to have way back).
A lot of stray ends got cleaned up and converted to saner primitives,
disgusting mess in android/binder.c is still disgusting, but at least
doesn't poke so much in descriptor table guts anymore. A bunch of
relatively minor races got fixed in process, plus an ext4 struct file
leak.
- related thing - fget_light() partially unuglified; see fdget() in
there (and yes, it generates the code as good as we used to have).
- also related - bits of Cyrill's procfs stuff that got entangled into
that work; _not_ all of it, just the initial move to fs/proc/fd.c and
switch of fdinfo to seq_file.
- Alex's fs/coredump.c spiltoff - the same story, had been easier to
take that commit than mess with conflicts. The rest is a separate
pile, this was just a mechanical code movement.
- a few misc patches all over the place. Not all for this cycle,
there'll be more (and quite a few currently sit in akpm's tree)."
Fix up trivial conflicts in the android binder driver, and some fairly
simple conflicts due to two different changes to the sock_alloc_file()
interface ("take descriptor handling from sock_alloc_file() to callers"
vs "net: Providing protocol type via system.sockprotoname xattr of
/proc/PID/fd entries" adding a dentry name to the socket)
* 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/viro/vfs: (72 commits)
MAX_LFS_FILESIZE should be a loff_t
compat: fs: Generic compat_sys_sendfile implementation
fs: push rcu_barrier() from deactivate_locked_super() to filesystems
btrfs: reada_extent doesn't need kref for refcount
coredump: move core dump functionality into its own file
coredump: prevent double-free on an error path in core dumper
usb/gadget: fix misannotations
fcntl: fix misannotations
ceph: don't abuse d_delete() on failure exits
hypfs: ->d_parent is never NULL or negative
vfs: delete surplus inode NULL check
switch simple cases of fget_light to fdget
new helpers: fdget()/fdput()
switch o2hb_region_dev_write() to fget_light()
proc_map_files_readdir(): don't bother with grabbing files
make get_file() return its argument
vhost_set_vring(): turn pollstart/pollstop into bool
switch prctl_set_mm_exe_file() to fget_light()
switch xfs_find_handle() to fget_light()
switch xfs_swapext() to fget_light()
...
2012-10-02 20:25:04 -07:00
|
|
|
|
2012-08-18 00:25:51 -04:00
|
|
|
|
2011-11-28 10:40:46 -08:00
|
|
|
|
|
|
|
|
|
2009-08-06 02:02:43 +04:00
|
|
|
|
|
|
|
|
|
2012-08-18 00:25:51 -04:00
|
|
|
|
2007-10-17 14:31:07 -05:00
|
|
|
|
|
|
|
|
|
2012-08-18 00:25:51 -04:00
|
|
|
|
|
|
|
|
|
2009-08-06 02:02:43 +04:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2007-10-17 14:31:07 -05:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2007-07-10 17:57:28 -05:00
|
|
|
|
2008-10-13 18:45:24 -05:00
|
|
|
|
|
|
|
|
|
2007-07-10 17:57:28 -05:00
|
|
|
|
|
|
|
|
|
2008-03-05 07:08:09 -06:00
|
|
|
|
2008-10-13 18:45:24 -05:00
|
|
|
|
2007-07-10 17:57:28 -05:00
|
|
|
|
2011-11-28 10:40:46 -08:00
|
|
|
|
|
|
|
|
|
2007-07-10 17:57:28 -05:00
|
|
|
|
2008-10-13 18:45:24 -05:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2007-07-10 17:57:28 -05:00
|
|
|
|
2008-10-13 18:45:24 -05:00
|
|
|
|
2007-07-10 17:57:28 -05:00
|
|
|
|
2008-10-13 18:45:24 -05:00
|
|
|
|
|
|
|
|
|
2007-07-10 17:57:28 -05:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2008-10-13 18:45:25 -05:00
|
|
|
|
|
|
|
|
|
2007-07-10 17:57:28 -05:00
|
|
|
|
|
|
|
|
|
2008-03-05 07:08:09 -06:00
|
|
|
|
2008-10-13 18:45:25 -05:00
|
|
|
|
2007-07-10 17:57:28 -05:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2008-10-13 18:45:25 -05:00
|
|
|
|
2007-07-10 17:57:28 -05:00
|
|
|
|
|
|
|
|
|
2008-10-13 18:45:25 -05:00
|
|
|
|
2007-07-10 17:57:28 -05:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2008-10-13 18:45:25 -05:00
|
|
|
|
|
|
|
|
|
2008-02-06 19:25:03 -06:00
|
|
|
|
|
|
|
|
|
2007-07-10 17:57:28 -05:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2008-10-13 18:45:25 -05:00
|
|
|
|
2007-07-10 17:57:28 -05:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2008-05-08 20:26:37 -05:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2008-10-13 18:45:25 -05:00
|
|
|
|
|
|
|
|
|
2007-10-17 14:31:07 -05:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2008-03-07 10:53:53 -06:00
|
|
|
|
|
|
|
|
|
2008-10-13 18:45:25 -05:00
|
|
|
|
2007-10-17 14:31:07 -05:00
|
|
|
|
2008-05-08 20:26:37 -05:00
|
|
|
|
2008-10-13 18:45:25 -05:00
|
|
|
|
2008-05-08 20:26:37 -05:00
|
|
|
|
2007-10-17 14:31:07 -05:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2011-05-23 21:46:56 -05:00
|
|
|
|
|
|
|
|
|
2009-08-06 02:02:43 +04:00
|
|
|
|
2011-11-28 10:40:46 -08:00
|
|
|
|
|
|
|
|
|
2009-08-06 02:02:43 +04:00
|
|
|
|
2007-10-17 14:31:07 -05:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2011-11-28 10:40:46 -08:00
|
|
|
|
|
|
|
|
|
2007-10-17 14:31:07 -05:00
|
|
|
|
2009-08-06 02:02:43 +04:00
|
|
|
|
|
|
|
|
|
2007-10-17 14:31:07 -05:00
|
|
|
|
2009-08-06 02:02:43 +04:00
|
|
|
|
2007-10-17 14:31:07 -05:00
|
|
|
|
|
|
|
|
|
2008-10-13 18:45:25 -05:00
|
|
|
|
|
|
|
|
|
2007-10-17 14:31:07 -05:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2010-07-10 11:51:54 +02:00
|
|
|
|
2011-11-28 10:40:46 -08:00
|
|
|
|
|
|
|
|
|
2009-08-06 02:02:43 +04:00
|
|
|
|
2007-10-17 14:31:07 -05:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2011-05-23 21:46:56 -05:00
|
|
|
|
|
|
|
|
|
2009-08-06 02:02:43 +04:00
|
|
|
|
2011-11-28 10:40:46 -08:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2009-08-06 02:02:43 +04:00
|
|
|
|
|
|
|
|
|
2007-10-17 14:31:07 -05:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2011-11-28 10:40:46 -08:00
|
|
|
|
|
|
|
|
|
2007-10-17 14:31:07 -05:00
|
|
|
|
2009-08-06 02:02:43 +04:00
|
|
|
|
|
|
|
|
|
2007-10-17 14:31:07 -05:00
|
|
|
|
2009-08-06 02:02:43 +04:00
|
|
|
|
2007-10-17 14:31:07 -05:00
|
|
|
|
|
|
|
|
|
2008-10-13 18:45:25 -05:00
|
|
|
|
|
|
|
|
|
2007-10-17 14:31:07 -05:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2009-08-06 02:02:43 +04:00
|
|
|
|
2007-10-17 14:31:07 -05:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2011-11-28 10:40:46 -08:00
|
|
|
|
2008-10-13 18:45:25 -05:00
|
|
|
|
2007-10-17 14:31:07 -05:00
|
|
|
|
|
|
|
|
|
2008-10-13 18:45:25 -05:00
|
|
|
|
2007-10-17 14:31:07 -05:00
|
|
|
|
2009-08-06 02:02:43 +04:00
|
|
|
|
2007-10-17 14:31:07 -05:00
|
|
|
|
2008-10-13 18:45:25 -05:00
|
|
|
|
|
|
|
|
|
2008-02-06 19:25:03 -06:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2009-08-06 02:02:43 +04:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2008-02-06 19:25:03 -06:00
|
|
|
|
|
|
|
|
|
2008-10-13 18:45:25 -05:00
|
|
|
|
2007-10-17 14:31:07 -05:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2008-10-13 18:45:25 -05:00
|
|
|
|
|
|
|
|
|
2008-10-13 18:45:21 -05:00
|
|
|
|
|
|
|
|
|
2008-09-24 16:22:23 -05:00
|
|
|
|
2007-10-17 14:31:07 -05:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2008-10-13 18:45:25 -05:00
|
|
|
|
|
|
|
|
|
2008-10-13 18:45:21 -05:00
|
|
|
|
|
|
|
|
|
2008-09-24 16:22:23 -05:00
|
|
|
|
2007-10-17 14:31:07 -05:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2008-10-13 18:45:25 -05:00
|
|
|
|
|
|
|
|
|
2008-10-13 18:45:21 -05:00
|
|
|
|
|
|
|
|
|
2008-09-24 16:22:23 -05:00
|
|
|
|
2007-10-17 14:31:07 -05:00
|
|
|
|
|
|
|
|
|
2008-10-13 18:45:24 -05:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2011-02-01 11:42:43 +01:00
|
|
|
|
2008-10-13 18:45:24 -05:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2011-11-28 10:40:46 -08:00
|
|
|
|
2011-02-01 11:42:43 +01:00
|
|
|
|
2008-10-13 18:45:24 -05:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2011-11-28 10:40:46 -08:00
|
|
|
|
2008-10-13 18:45:24 -05:00
|
|
|
|
|
|
|
|
|
2008-05-08 20:26:37 -05:00
|
|
|
|
2007-10-17 14:31:07 -05:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2008-03-28 14:15:57 -07:00
|
|
|
|
2007-10-17 14:31:07 -05:00
|
|
|
|
2008-09-24 16:22:23 -05:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2012-08-20 14:51:24 -07:00
|
|
|
|
2008-09-24 16:22:23 -05:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|