diff options
author | David Howells <dhowells@redhat.com> | 2012-02-24 05:57:07 -0500 |
---|---|---|
committer | Ingo Molnar <mingo@elte.hu> | 2012-02-24 08:04:50 -0500 |
commit | 189017c25c8497760c89646c06297c37d6cde072 (patch) | |
tree | 5bdb736393600537e8f92cffc537db10e01d99aa | |
parent | f044db4cb4bf16893812d35b5fbeaaf3e30c9215 (diff) |
fs: Remove missed ->fds_bits from cessation use of fd_set structs internally
Stephen Rothwell reported that the following commit broke the
linux-next build:
1fd36adcd98c: Replace the fd_sets in struct fdtable with an array of unsigned longs
Fix places where ->fds_bits needed to be removed as the core
kernel no longer uses fd_set internally for file descriptor
table management. There are two places:
(1) drivers/staging/android/binder.c
(2) arch/mips/kernel/kspd.c
Question: Should sp_cleanup() in the MIPS arch be using find_next_bit()
or fls()?
Reported-by: Stephen Rothwell <sfr@canb.auug.org.au>
Signed-off-by: David Howells <dhowells@redhat.com>
cc: Ralf Bächle <ralf@linux-mips.org>
cc: Arve Hjønnevåg <arve@android.com>
Link: http://lkml.kernel.org/r/20120224105707.32170.11550.stgit@warthog.procyon.org.uk
Signed-off-by: Ingo Molnar <mingo@elte.hu>
-rw-r--r-- | arch/mips/kernel/kspd.c | 2 | ||||
-rw-r--r-- | drivers/staging/android/binder.c | 3 |
2 files changed, 2 insertions, 3 deletions
diff --git a/arch/mips/kernel/kspd.c b/arch/mips/kernel/kspd.c index 29811f043399..84d0639e4580 100644 --- a/arch/mips/kernel/kspd.c +++ b/arch/mips/kernel/kspd.c | |||
@@ -326,7 +326,7 @@ static void sp_cleanup(void) | |||
326 | i = j * __NFDBITS; | 326 | i = j * __NFDBITS; |
327 | if (i >= fdt->max_fds) | 327 | if (i >= fdt->max_fds) |
328 | break; | 328 | break; |
329 | set = fdt->open_fds->fds_bits[j++]; | 329 | set = fdt->open_fds[j++]; |
330 | while (set) { | 330 | while (set) { |
331 | if (set & 1) { | 331 | if (set & 1) { |
332 | struct file * file = xchg(&fdt->fd[i], NULL); | 332 | struct file * file = xchg(&fdt->fd[i], NULL); |
diff --git a/drivers/staging/android/binder.c b/drivers/staging/android/binder.c index 35dd9c370e55..9446f0185f5e 100644 --- a/drivers/staging/android/binder.c +++ b/drivers/staging/android/binder.c | |||
@@ -379,8 +379,7 @@ int task_get_unused_fd_flags(struct binder_proc *proc, int flags) | |||
379 | 379 | ||
380 | repeat: | 380 | repeat: |
381 | fdt = files_fdtable(files); | 381 | fdt = files_fdtable(files); |
382 | fd = find_next_zero_bit(fdt->open_fds->fds_bits, fdt->max_fds, | 382 | fd = find_next_zero_bit(fdt->open_fds, fdt->max_fds, files->next_fd); |
383 | files->next_fd); | ||
384 | 383 | ||
385 | /* | 384 | /* |
386 | * N.B. For clone tasks sharing a files structure, this test | 385 | * N.B. For clone tasks sharing a files structure, this test |