[PATCH] Make uapi/linux/irqnr.h non-empty

2012-10-15 Thread David Howells
x86_64 or usermode Linux (and probably others): include/linux/irqnr.h:4:30: fatal error: uapi/linux/irqnr.h: No such file or directory Signed-off-by: David Howells dhowe...@redhat.com cc: Randy Dunlap rdun...@xenotime.net cc: Alessandro Suardi alessandro.sua...@gmail.com --- include/uapi/linux

Re: [PATCH v6 10/10] test: IPC message queue copy feture test

2012-10-15 Thread David Howells
Stanislav Kinsbursky skinsbur...@parallels.com wrote: +CFLAGS += -I../../../../arch/x86/include/generated/ +CFLAGS += -I../../../../include/ +CFLAGS += -I../../../../usr/include/ +CFLAGS += -I../../../../arch/x86/include/ Do you need to add uapi/ into some of these? David -- To unsubscribe

[PATCH 1/4] FRV: Fix VLIW packing constraint violation in entry.S

2012-10-15 Thread David Howells
it doesn't matter which way round they're packed from that point of view. Signed-off-by: David Howells dhowe...@redhat.com Acked-by: Al Viro v...@zeniv.linux.org.uk --- arch/frv/kernel/entry.S |4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/arch/frv/kernel/entry.S b/arch

[PATCH 3/4] FRV: Fix const sections change

2012-10-15 Thread David Howells
-m68k.org Signed-off-by: Andi Kleen a...@linux.intel.com Signed-off-by: David Howells dhowe...@redhat.com cc: Geert Uytterhoeven ge...@linux-m68k.org --- arch/frv/kernel/setup.c |2 ++ 1 file changed, 2 insertions(+) diff --git a/arch/frv/kernel/setup.c b/arch/frv/kernel/setup.c index 1f1e5ef

[PATCH 4/4] FRV: Fix linux/elf-fdpic.h

2012-10-15 Thread David Howells
incorrectly guarded bits back to the kernelspace header. Whilst we're at it, the __KERNEL__ guards can be deleted as they're no longer necessary. Reported-by: Fengguang Wu fengguang...@intel.com Reported-by: Lars-Peter Clausen l...@metafoo.de Signed-off-by: David Howells dhowe...@redhat.com cc

[PATCH 2/4] FRV: Fix incorrect symbol in copy_thread()

2012-10-15 Thread David Howells
once arch/frv/kernel/process.c:197: error: for each function it appears in.) m Reported-by: Geert Uytterhoeven ge...@linux-m68k.org Signed-off-by: David Howells dhowe...@redhat.com Acked-by: Al Viro v...@zeniv.linux.org.uk cc: Geert Uytterhoeven ge...@linux-m68k.org --- arch/frv/kernel

Re: [PATCH v6 1/6] tracing,x86: Add a TSC trace_clock

2012-10-16 Thread David Howells
David Sharp dhsh...@google.com wrote: Please use the Kbuild infrastructure (generic-y += ... in arch/*/include/asm/Kbuild) instead of adding wrappers around the asm-generic version. mips apparently recencly got rid of arch/mips/include/asm/Kbuild. It didn't. However, if you use patch

Re: [GIT PULL] Disintegrate UAPI for parisc [ver #2]

2012-10-16 Thread David Howells
James Bottomley james.bottom...@hansenpartnership.com wrote: I'm getting a fairly massive merge failure over our misc tree: git://git.kernel.org/pub/scm/linux/kernel/git/jejb/parisc-2.0 misc It looks like a conflict with the motion to using wrappered Kbuild for our asm-generic clones. I

[GIT PULL] Disintegrate UAPI for parisc [ver #3]

2012-10-16 Thread David Howells
2012-10-16 David Howells (2): Merge branch 'misc' of git://git.kernel.org/.../jejb/parisc-2.6.git/ UAPI: (Scripted) Disintegrate arch/parisc/include/asm James Bottomley (1): [PARISC] asm: redo generic includes

Re: [PATCH 1/2] uapi: update includes for drm content when no kernel API exists

2012-10-16 Thread David Howells
Luis R. Rodriguez mcg...@do-not-panic.com wrote: The include_next trick can work as well but that'd mean synching the UAPI files regularly into compat. I'd much prefer to have code intact when possible when backporting so the option I stuck with then was to patch the code directly and

[PATCH 00/10] UAPI: Fixes

2012-10-17 Thread David Howells
probably remove all the Kbuild files under include/ that aren't also under include/uapi/. The ones under arch/ are more of an issue because of the potential for generic-y and genhdr-y. David --- Catalin Marinas (1): uapi: Allow automatic generation of uapi/asm/ header files David Howells (9

[PATCH 02/10] UAPI: Make uapi/linux/irqnr.h non-empty

2012-10-17 Thread David Howells
building x86_64 or usermode Linux (and probably others): include/linux/irqnr.h:4:30: fatal error: uapi/linux/irqnr.h: No such file or directory Reported-by: Randy Dunlap rdun...@xenotime.net Reported-by: Alessandro Suardi alessandro.sua...@gmail.com Signed-off-by: David Howells dhowe...@redhat.com

[PATCH 03/10] UAPI: Remove empty conditionals from include/linux/Kbuild

2012-10-17 Thread David Howells
Remove empty conditionals from include/linux/Kbuild as the contents, with new conditionals, have moved to include/uapi/linux/Kbuild. Signed-off-by: David Howells dhowe...@redhat.com --- include/linux/Kbuild | 10 -- 1 file changed, 10 deletions(-) diff --git a/include/linux/Kbuild b

[PATCH 05/10] UAPI: Place comments in empty arch Kbuilds to make them non-empty

2012-10-17 Thread David Howells
lines in future, so I'm keeping them around for the moment. Note that MIPS will compile happily if the file is deleted instead. I haven't tested TILE, but I suspect it will be the same there. Signed-off-by: David Howells dhowe...@redhat.com cc: Ralf Baechle r...@linux-mips.org cc: Chris Metcalf

[PATCH 07/10] UAPI: Put a comment into uapi/asm-generic/kvm_para.h and use it from arches

2012-10-17 Thread David Howells
that the facility is unsupported on this arch? Signed-off-by: David Howells dhowe...@redhat.com cc: Arnd Bergmann a...@arndb.de cc: Avi Kivity a...@redhat.com cc: Marcelo Tosatti mtosa...@redhat.com cc: k...@vger.kernel.org --- arch/ia64/include/uapi/asm/Kbuild |2 ++ arch/ia64/include

[PATCH 01/10] uapi: Allow automatic generation of uapi/asm/ header files

2012-10-17 Thread David Howells
-by: Catalin Marinas catalin.mari...@arm.com Signed-off-by: David Howells dhowe...@redhat.com Cc: Michal Marek mma...@suse.cz Cc: Arnd Bergmann a...@arndb.de --- Makefile |4 +++- scripts/Makefile.asm-generic |2 +- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git

[PATCH 08/10] UAPI: Make arch/mn10300/include/uapi/asm/setup.h non-empty

2012-10-17 Thread David Howells
a comment in there as a placeholder. Signed-off-by: David Howells dhowe...@redhat.com --- arch/mn10300/include/uapi/asm/setup.h |4 1 file changed, 4 insertions(+) diff --git a/arch/mn10300/include/uapi/asm/setup.h b/arch/mn10300/include/uapi/asm/setup.h index e69de29..ae5704f 100644

[PATCH 10/10] UAPI: Make arch/sparc/include/uapi/asm/sigcontext.h non-empty

2012-10-17 Thread David Howells
a comment in there as a placeholder. Signed-off-by: David Howells dhowe...@redhat.com cc: David S. Miller da...@davemloft.net cc: sparcli...@vger.kernel.org --- arch/sparc/include/uapi/asm/sigcontext.h |4 1 file changed, 4 insertions(+) diff --git a/arch/sparc/include/uapi/asm

[PATCH 06/10] UAPI: The tile arch uses the generic ucontext.h file

2012-10-17 Thread David Howells
Move the header-y and generic-y lines for ucontext.h from arch/tile/include/asm/Kbuild to the uapi/ Kbuild as the asm-generic variant is used. Signed-off-by: David Howells dhowe...@redhat.com cc: Chris Metcalf cmetc...@tilera.com --- arch/tile/include/asm/Kbuild |3 --- arch/tile

[PATCH 09/10] UAPI: Make arch/sh/include/uapi/asm/hw_breakpoint.h non-empty

2012-10-17 Thread David Howells
a comment in there as a placeholder. Signed-off-by: David Howells dhowe...@redhat.com cc: Paul Mundt let...@linux-sh.org cc: linux...@vger.kernel.org --- arch/sh/include/uapi/asm/hw_breakpoint.h |4 1 file changed, 4 insertions(+) diff --git a/arch/sh/include/uapi/asm/hw_breakpoint.h b

[PATCH 04/10] UAPI: Remove empty non-UAPI Kbuild files

2012-10-17 Thread David Howells
. It is probably necessary to make the files non-empty to prevent the patch program from automatically deleting them when it reduces them to nothing. Signed-off-by: David Howells dhowe...@redhat.com --- include/Kbuild|4 include/asm-generic/Kbuild|0 include

Re: RFC: sign the modules at install time

2012-10-17 Thread David Howells
Linus Torvalds torva...@linux-foundation.org wrote: This was based on the complaint from Davem that the make allmodconfig build got way slower because module signing takes a while. And quite frankly, the whole extra strip and sign thing at modpost time was just nasty ugly code. Why

[PATCH] UAPI: Make arch/ia64/include/asm/kvm_para.h generic

2012-10-18 Thread David Howells
of 'kvm_check_and_clear_guest_paused' include/asm-generic/kvm_para.h:11:20: note: previous definition of 'kvm_check_and_clear_guest_paused' was here This does not happen for ia64 defconfig. Reported-by: Yuanhan Liu yuanhan@intel.com Signed-off-by: David Howells dhowe...@redhat.com cc: Yuanhan Liu yuanhan

[PATCH] UAPI: S390 shouldn't've been changed to use uapi/asm-generic/kvm_para.h

2012-10-18 Thread David Howells
0420c87e648a3b623ad925038a0bcff2ef5a4bc9, ungenericising this file and just inserting a comment to prevent the patch program from deleting it. Reported-by: Yuanhan Liu yuanhan@intel.com Signed-off-by: David Howells dhowe...@redhat.com cc: Yuanhan Liu yuanhan@intel.com cc: fengguang...@intel.com

[PATCH 16/22] NFS: Display local caching state

2007-09-21 Thread David Howells
Display the local caching state in /proc/fs/nfsfs/volumes. Signed-off-by: David Howells [EMAIL PROTECTED] --- fs/nfs/client.c |7 --- fs/nfs/fscache.h | 12 2 files changed, 16 insertions(+), 3 deletions(-) diff --git a/fs/nfs/client.c b/fs/nfs/client.c index 0de4db4

[PATCH 12/22] CacheFiles: Export things for CacheFiles

2007-09-21 Thread David Howells
Export a number of functions for CacheFiles's use. Signed-Off-By: David Howells [EMAIL PROTECTED] --- fs/super.c |2 ++ kernel/auditsc.c |2 ++ 2 files changed, 4 insertions(+), 0 deletions(-) diff --git a/fs/super.c b/fs/super.c index 28e7370..0e8c0e2 100644 --- a/fs/super.c

[PATCH 15/22] NFS: Configuration and mount option changes to enable local caching on NFS

2007-09-21 Thread David Howells
Changes to the kernel configuration defintions and to the NFS mount options to allow the local caching support added by the previous patch to be enabled. Signed-off-by: David Howells [EMAIL PROTECTED] --- fs/Kconfig|8 fs/nfs/client.c | 14 ++ fs/nfs

[PATCH 20/22] AFS: Implement shared-writable mmap

2007-09-21 Thread David Howells
, then page_mkwrite() will flush it before attaching a record of the new key. Signed-off-by: David Howells [EMAIL PROTECTED] --- fs/afs/file.c | 20 +++- fs/afs/internal.h |1 + fs/afs/write.c| 35 +++ 3 files changed, 55 insertions(+), 1 deletions

[PATCH 21/22] AF_RXRPC: Save the operation ID for debugging

2007-09-21 Thread David Howells
Save the operation ID to be used with a call that we're making for display through /proc/net/rxrpc_calls. This helps debugging stuck operations as we then know what they are. Signed-off-by: David Howells [EMAIL PROTECTED] --- include/net/af_rxrpc.h |1 + net/rxrpc/af_rxrpc.c|3

[PATCH 18/22] AFS: Add a function to excise a rejected write from the pagecache

2007-09-21 Thread David Howells
routines once the pages have been unlocked as part of the writeback process. To this end, the PG_error flag is set, then the PG_writeback flag is cleared, and only *then* can lock_page() be called. Signed-off-by: David Howells [EMAIL PROTECTED] --- include/linux/mm.h |5 ++- mm/truncate.c

[PATCH 19/22] AFS: Improve handling of a rejected writeback

2007-09-21 Thread David Howells
be revalidated. (5) The writeback-rejection handler now calls cancel_rejected_write() added by the previous patch to excise the affected pages rather than clearing the PG_uptodate flag on all the pages. Signed-off-by: David Howells [EMAIL PROTECTED] --- fs/afs/fsclient.c |4

[PATCH 22/22] FS-Cache: Make kAFS use FS-Cache

2007-09-21 Thread David Howells
The attached patch makes the kAFS filesystem in fs/afs/ use FS-Cache, and through it any attached caches. The kAFS filesystem will use caching automatically if it's available. Signed-Off-By: David Howells [EMAIL PROTECTED] --- fs/Kconfig |8 + fs/afs/Makefile|3 fs/afs

[PATCH 00/22] Introduce credential record

2007-09-21 Thread David Howells
Hi Al, Christoph, Trond, Stephen, Casey, Here's a set of patches that implement a very basic set of COW credentials. It compiles, links and runs for x86_64 with EXT3, (V)FAT, NFS, AFS, SELinux and keyrings all enabled. Most other filesystems are disabled, apart from things like proc. It is

[PATCH 11/22] CacheFiles: Permit the page lock state to be monitored

2007-09-21 Thread David Howells
-Off-By: David Howells [EMAIL PROTECTED] --- include/linux/pagemap.h |5 + mm/filemap.c| 19 +++ 2 files changed, 24 insertions(+), 0 deletions(-) diff --git a/include/linux/pagemap.h b/include/linux/pagemap.h index d1049b6..452fdcf 100644 --- a/include/linux

[PATCH 14/22] NFS: Use local caching

2007-09-21 Thread David Howells
an NFS filesystem to use caching, add an fsc option to the mount: mount warthog:/ /a -o fsc Signed-Off-By: David Howells [EMAIL PROTECTED] --- fs/nfs/Makefile |1 fs/nfs/client.c |5 + fs/nfs/file.c | 51 ++ fs/nfs/fscache-def.c | 288

[PATCH 17/22] AFS: Add TestSetPageError()

2007-09-21 Thread David Howells
Add a TestSetPageError() macro to the suite of page flag manipulators. This can be used by AFS to prevent over-excision of rejected writes from the page cache. Signed-off-by: David Howells [EMAIL PROTECTED] --- include/linux/page-flags.h |1 + 1 files changed, 1 insertions(+), 0 deletions

[PATCH 10/22] CacheFiles: Add a hook to write a single page of data to an inode

2007-09-21 Thread David Howells
for this that uses the prepare_write() and commit_write() address_space operations to bound a copy directly into the page cache. Hook the Ext2 and Ext3 operations to the generic implementation. Signed-Off-By: David Howells [EMAIL PROTECTED] --- fs/ext2/inode.c|2 + fs/ext3/inode.c|3

Re: [PATCH 00/22] Introduce credential record

2007-09-21 Thread David Howells
Casey Schaufler [EMAIL PROTECTED] wrote: One thing I'm not certain about is how this should interact with /proc, which can display some of the stuff in the cred struct. I think it may be necessary to have a real cred pointer and an effective cred pointer, with the contents of /proc

[PATCH 07/22] FS-Cache: Provide an add_wait_queue_tail() function

2007-09-21 Thread David Howells
Provide an add_wait_queue_tail() function to add a waiter to the back of a wait queue instead of the front. Signed-off-by: David Howells [EMAIL PROTECTED] --- include/linux/wait.h |1 + kernel/wait.c| 18 ++ 2 files changed, 19 insertions(+), 0 deletions(-) diff

Re: [PATCH 00/22] Introduce credential record

2007-09-21 Thread David Howells
This patch set is available for download as a tarball from: http://people.redhat.com/~dhowells/nfs/nfs+fscache-23.tar.bz2 David - To unsubscribe from this list: send the line unsubscribe linux-kernel in the body of a message to [EMAIL PROTECTED] More majordomo info at

[PATCH 09/22] CacheFiles: Add missing copy_page export for ia64

2007-09-21 Thread David Howells
This one-line patch fixes the missing export of copy_page introduced by the cachefile patches. This patch is not yet upstream, but is required for cachefile on ia64. It will be pushed upstream when cachefile goes upstream. Signed-off-by: Prarit Bhargava [EMAIL PROTECTED] Signed-Off-By: David

[PATCH 04/22] CRED: Request a credential record for a kernel service

2007-09-21 Thread David Howells
Request a credential record for the named kernel service. This produces a cred struct with appropriate DAC and MAC controls for effecting that service. It may be used to override the credentials on a task to do work on that task's behalf. Signed-off-by: David Howells [EMAIL PROTECTED

[PATCH 06/22] FS-Cache: Recruit a couple of page flags for cache management

2007-09-21 Thread David Howells
to detect this. Signed-off-by: David Howells [EMAIL PROTECTED] --- fs/splice.c|2 +- include/linux/page-flags.h | 30 +- include/linux/pagemap.h| 11 +++ mm/filemap.c | 16 mm/migrate.c

[PATCH 03/22] CRED: Move the effective capabilities into the cred struct

2007-09-21 Thread David Howells
by update_current_cred() which is invoked on entry to any system call that might need it. Signed-off-by: David Howells [EMAIL PROTECTED] --- fs/buffer.c |3 +++ fs/ioprio.c |3 +++ fs/open.c | 27 +-- fs/proc/array.c

[PATCH 05/22] FS-Cache: Release page-private after failed readahead

2007-09-21 Thread David Howells
) to do the honours. Signed-Off-By: David Howells [EMAIL PROTECTED] --- mm/readahead.c | 40 ++-- 1 files changed, 38 insertions(+), 2 deletions(-) diff --git a/mm/readahead.c b/mm/readahead.c index 39bf45d..12d1378 100644 --- a/mm/readahead.c +++ b/mm/readahead.c

[PATCH 02/22] CRED: Split the task security data and move part of it into struct cred

2007-09-21 Thread David Howells
-by: David Howells [EMAIL PROTECTED] --- include/linux/cred.h |1 include/linux/security.h | 33 ++ kernel/cred.c |7 + security/dummy.c | 11 + security/selinux/exports.c|6 security/selinux/hooks.c | 497

Re: [PATCH 10/22] CacheFiles: Add a hook to write a single page of data to an inode

2007-09-21 Thread David Howells
Trond Myklebust [EMAIL PROTECTED] wrote: So why do you need a new address space operation? AFAICS the generic implementation will work for pretty much everyone who supports the existing prepare_write()/commit_write(). Because Christoph decreed that I wasn't allowed to call prepare_write() and

Re: [PATCH 11/22] CacheFiles: Permit the page lock state to be monitored

2007-09-21 Thread David Howells
Trond Myklebust [EMAIL PROTECTED] wrote: This is used by CacheFiles to detect read completion on a page in the backing filesystem so that it can then copy the data to the waiting netfs page. Won't it in any case want to lock the page too? No. Why would it? All it wants to do is to

Re: [PATCH 00/22] Introduce credential record

2007-09-21 Thread David Howells
Casey Schaufler [EMAIL PROTECTED] wrote: They are nonetheless in effect and (heaven forbid) should they be abused you don't want to hide the facts from concerned observers. Because, I suspect, what the observer through /proc should see is what the process thinks it is doing, not what is

Re: [PATCH 14/22] NFS: Use local caching

2007-09-21 Thread David Howells
Peter Staubach [EMAIL PROTECTED] wrote: Did I miss the section where the modified semantics about which mounted file systems can use the cache and which ones can not was implemented? Yes. David - To unsubscribe from this list: send the line unsubscribe linux-kernel in the body of a message

Re: [PATCH 14/22] NFS: Use local caching

2007-09-21 Thread David Howells
David Howells [EMAIL PROTECTED] wrote: Peter Staubach [EMAIL PROTECTED] wrote: Did I miss the section where the modified semantics about which mounted file systems can use the cache and which ones can not was implemented? Yes. fs/nfs/super.c: case Opt_sharecache

Re: [PATCH 2/3] CRED: Split the task security data and move part of it into struct cred

2007-09-24 Thread David Howells
Serge E. Hallyn [EMAIL PROTECTED] wrote: Ah, ok, so the daemon would use this to act under the user's credentials. I was thinking the user would be using this to act under the daemon's or kernel's sid. Think kernel service rather than daemon. NFSd provides its own daemons to override the

Re: [PATCH 04/22] CRED: Request a credential record for a kernel service

2007-09-25 Thread David Howells
Jonathan Corbet [EMAIL PROTECTED] wrote: The comment describes a dentry argument, but the actual function does not have that argument. oops. Yeah, I decided I didn't want that there. David - To unsubscribe from this list: send the line unsubscribe linux-kernel in the body of a message to

Re: [PATCH] hibernation doesn't even build on frv - tons of helpers are missing

2007-09-26 Thread David Howells
Acked-By: David Howells [EMAIL PROTECTED] - To unsubscribe from this list: send the line unsubscribe linux-kernel in the body of a message to [EMAIL PROTECTED] More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/

Re: [PATCH 2/3] CRED: Split the task security data and move part of it into struct cred

2007-09-26 Thread David Howells
Stephen Smalley [EMAIL PROTECTED] wrote: Precisely when to use one identity vs. the other though isn't always clear, and the potential for accidental divergence is also a concern. What should auditing use in audit_filter_rules() when dealing with AUDIT_SUBJ_* cases? Should the SUBJ cases use

[PATCH 00/24] Introduce credential record

2007-09-26 Thread David Howells
Hi Al, Christoph, Trond, Stephen, Casey, Here's a set of patches that implement a very basic set of COW credentials. It compiles, links and runs for x86_64 with EXT3, (V)FAT, NFS, AFS, SELinux and keyrings all enabled. I've included a patch that should make most of the other archs and

[PATCH 03/24] CRED: Alter security_task_getsecid() and similar to return both task SIDs

2007-09-26 Thread David Howells
this to be incorrect. It should probably use security_task_getsecid() instead. Signed-off-by: David Howells [EMAIL PROTECTED] --- drivers/usb/core/devio.c |4 ++-- include/linux/security.h | 18 +- include/linux/selinux.h | 15 ++- kernel/auditsc.c

[PATCH 02/24] CRED: Split the task security data and move part of it into struct cred

2007-09-26 Thread David Howells
-by: David Howells [EMAIL PROTECTED] --- include/linux/cred.h |1 include/linux/security.h | 33 ++ kernel/cred.c |7 + security/dummy.c | 11 + security/selinux/exports.c|6 security/selinux/hooks.c | 497

[PATCH 04/24] CRED: Move the effective capabilities into the cred struct

2007-09-26 Thread David Howells
by update_current_cred() which is invoked on entry to any system call that might need it. Signed-off-by: David Howells [EMAIL PROTECTED] --- fs/buffer.c |3 +++ fs/ioprio.c |3 +++ fs/open.c | 27 +-- fs/proc/array.c

[PATCH 06/24] CRED: Request a credential record for a kernel service

2007-09-26 Thread David Howells
Request a credential record for the named kernel service. This produces a cred struct with appropriate DAC and MAC controls for effecting that service. It may be used to override the credentials on a task to do work on that task's behalf. Signed-off-by: David Howells [EMAIL PROTECTED

[PATCH 08/24] FS-Cache: Recruit a couple of page flags for cache management

2007-09-26 Thread David Howells
to detect this. Signed-off-by: David Howells [EMAIL PROTECTED] --- fs/splice.c|2 +- include/linux/page-flags.h | 30 +- include/linux/pagemap.h| 11 +++ mm/filemap.c | 16 mm/migrate.c

[PATCH 05/24] CRED: Fix up the other credentials references

2007-09-26 Thread David Howells
Fix up the other credentials references to use the new COW cred struct. Signed-off-by: David Howells [EMAIL PROTECTED] --- arch/ia64/ia32/sys_ia32.c |7 ++-- arch/ia64/kernel/perfmon.c|2 - arch/powerpc/platforms/cell/spufs/inode.c |2 - arch/s390

[PATCH 07/24] FS-Cache: Release page-private after failed readahead

2007-09-26 Thread David Howells
) to do the honours. Signed-Off-By: David Howells [EMAIL PROTECTED] --- mm/readahead.c | 40 ++-- 1 files changed, 38 insertions(+), 2 deletions(-) diff --git a/mm/readahead.c b/mm/readahead.c index 39bf45d..12d1378 100644 --- a/mm/readahead.c +++ b/mm/readahead.c

[PATCH 09/24] FS-Cache: Provide an add_wait_queue_tail() function

2007-09-26 Thread David Howells
Provide an add_wait_queue_tail() function to add a waiter to the back of a wait queue instead of the front. Signed-off-by: David Howells [EMAIL PROTECTED] --- include/linux/wait.h |1 + kernel/wait.c| 18 ++ 2 files changed, 19 insertions(+), 0 deletions(-) diff

[PATCH 11/24] CacheFiles: Add missing copy_page export for ia64

2007-09-26 Thread David Howells
This one-line patch fixes the missing export of copy_page introduced by the cachefile patches. This patch is not yet upstream, but is required for cachefile on ia64. It will be pushed upstream when cachefile goes upstream. Signed-off-by: Prarit Bhargava [EMAIL PROTECTED] Signed-Off-By: David

[PATCH 13/24] CacheFiles: Permit the page lock state to be monitored

2007-09-26 Thread David Howells
-Off-By: David Howells [EMAIL PROTECTED] --- include/linux/pagemap.h |5 + mm/filemap.c| 19 +++ 2 files changed, 24 insertions(+), 0 deletions(-) diff --git a/include/linux/pagemap.h b/include/linux/pagemap.h index d1049b6..452fdcf 100644 --- a/include/linux

[PATCH 12/24] CacheFiles: Add a hook to write a single page of data to an inode

2007-09-26 Thread David Howells
for this that uses the prepare_write() and commit_write() address_space operations to bound a copy directly into the page cache. Hook the Ext2 and Ext3 operations to the generic implementation. Signed-Off-By: David Howells [EMAIL PROTECTED] --- fs/ext2/inode.c|2 + fs/ext3/inode.c|3

[PATCH 14/24] CacheFiles: Export things for CacheFiles

2007-09-26 Thread David Howells
Export a number of functions for CacheFiles's use. Signed-Off-By: David Howells [EMAIL PROTECTED] --- fs/super.c |2 ++ kernel/auditsc.c |2 ++ 2 files changed, 4 insertions(+), 0 deletions(-) diff --git a/fs/super.c b/fs/super.c index 28e7370..0e8c0e2 100644 --- a/fs/super.c

[PATCH 19/24] AFS: Add TestSetPageError()

2007-09-26 Thread David Howells
Add a TestSetPageError() macro to the suite of page flag manipulators. This can be used by AFS to prevent over-excision of rejected writes from the page cache. Signed-off-by: David Howells [EMAIL PROTECTED] --- include/linux/page-flags.h |1 + 1 files changed, 1 insertions(+), 0 deletions

[PATCH 17/24] NFS: Configuration and mount option changes to enable local caching on NFS

2007-09-26 Thread David Howells
Changes to the kernel configuration defintions and to the NFS mount options to allow the local caching support added by the previous patch to be enabled. Signed-off-by: David Howells [EMAIL PROTECTED] --- fs/Kconfig|8 fs/nfs/client.c | 14 ++ fs/nfs

[PATCH 16/24] NFS: Use local caching

2007-09-26 Thread David Howells
an NFS filesystem to use caching, add an fsc option to the mount: mount warthog:/ /a -o fsc Signed-Off-By: David Howells [EMAIL PROTECTED] --- fs/nfs/Makefile |1 fs/nfs/client.c |5 + fs/nfs/file.c | 51 ++ fs/nfs/fscache-def.c | 288

[PATCH 18/24] NFS: Display local caching state

2007-09-26 Thread David Howells
Display the local caching state in /proc/fs/nfsfs/volumes. Signed-off-by: David Howells [EMAIL PROTECTED] --- fs/nfs/client.c |7 --- fs/nfs/fscache.h | 12 2 files changed, 16 insertions(+), 3 deletions(-) diff --git a/fs/nfs/client.c b/fs/nfs/client.c index 0de4db4

[PATCH 20/24] AFS: Add a function to excise a rejected write from the pagecache

2007-09-26 Thread David Howells
routines once the pages have been unlocked as part of the writeback process. To this end, the PG_error flag is set, then the PG_writeback flag is cleared, and only *then* can lock_page() be called. Signed-off-by: David Howells [EMAIL PROTECTED] --- include/linux/mm.h |5 ++- mm/truncate.c

[PATCH 21/24] AFS: Improve handling of a rejected writeback

2007-09-26 Thread David Howells
be revalidated. (5) The writeback-rejection handler now calls cancel_rejected_write() added by the previous patch to excise the affected pages rather than clearing the PG_uptodate flag on all the pages. Signed-off-by: David Howells [EMAIL PROTECTED] --- fs/afs/fsclient.c |4

[PATCH 23/24] AF_RXRPC: Save the operation ID for debugging

2007-09-26 Thread David Howells
Save the operation ID to be used with a call that we're making for display through /proc/net/rxrpc_calls. This helps debugging stuck operations as we then know what they are. Signed-off-by: David Howells [EMAIL PROTECTED] --- include/net/af_rxrpc.h |1 + net/rxrpc/af_rxrpc.c|3

[PATCH 24/24] FS-Cache: Make kAFS use FS-Cache

2007-09-26 Thread David Howells
The attached patch makes the kAFS filesystem in fs/afs/ use FS-Cache, and through it any attached caches. The kAFS filesystem will use caching automatically if it's available. Signed-Off-By: David Howells [EMAIL PROTECTED] --- fs/Kconfig |8 + fs/afs/Makefile|3 fs/afs

[PATCH 22/24] AFS: Implement shared-writable mmap

2007-09-26 Thread David Howells
, then page_mkwrite() will flush it before attaching a record of the new key. Signed-off-by: David Howells [EMAIL PROTECTED] --- fs/afs/file.c | 20 +++- fs/afs/internal.h |1 + fs/afs/write.c| 35 +++ 3 files changed, 55 insertions(+), 1 deletions

Re: [PATCH 01/24] CRED: Introduce a COW credentials record

2007-09-26 Thread David Howells
Al Viro [EMAIL PROTECTED] wrote: Umm... Perhaps a better primitive would be make sure that our cred is not shared with anybody, creating a copy and redirecting reference to it if needed. I wanted to make the point that once a cred record was made live - i.e. exposed to the rest of the system

[PATCH 00/30] Remove iget() and read_inode()

2007-10-01 Thread David Howells
Hi Christoph, Al, Here's a set of patches that remove all calls to iget() and all read_inode() functions. They should be removed for two reasons: firstly they don't lend themselves to good error handling, and secondly their presence is a temptation for code outside a filesystem to call iget()

[PATCH 01/30] IGET: Introduce a function to register iget failure

2007-10-01 Thread David Howells
Introduce a function to register failure in an inode construction path. This includes marking the inode under construction as bad, unlocking it and releasing it. Signed-off-by: David Howells [EMAIL PROTECTED] --- Documentation/filesystems/porting | 18 +- fs/bad_inode.c

[PATCH 02/30] IGET: Use iget_failed() in AFS

2007-10-01 Thread David Howells
Use iget_failed() in AFS to kill a failed inode. Signed-off-by: David Howells [EMAIL PROTECTED] --- fs/afs/inode.c |5 + 1 files changed, 1 insertions(+), 4 deletions(-) diff --git a/fs/afs/inode.c b/fs/afs/inode.c index d196840..ca9b02f 100644 --- a/fs/afs/inode.c +++ b/fs/afs/inode.c

[PATCH 03/30] IGET: Use iget_failed() in GFS2

2007-10-01 Thread David Howells
Use iget_failed() in GFS2 to kill a failed inode. Signed-off-by: David Howells [EMAIL PROTECTED] --- fs/gfs2/inode.c |2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/fs/gfs2/inode.c b/fs/gfs2/inode.c index 34f7bcd..498844f 100644 --- a/fs/gfs2/inode.c +++ b/fs/gfs2

[PATCH 04/30] IGET: Mark iget() and read_inode() as being obsolete

2007-10-01 Thread David Howells
); if (IS_ERR(inode)) { ret = PTR_ERR(inode); goto error; } Signed-off-by: David Howells [EMAIL PROTECTED] --- Documentation/filesystems/Exporting |5 - Documentation/filesystems/Locking |3 --- Documentation/filesystems/vfs.txt | 16

[PATCH 05/30] IGET: Stop AFFS from using iget() and read_inode()

2007-10-01 Thread David Howells
incurred when getting the root inode instead of EINVAL. Signed-off-by: David Howells [EMAIL PROTECTED] --- fs/affs/affs.h |2 +- fs/affs/amigaffs.c |6 -- fs/affs/inode.c| 20 +--- fs/affs/namei.c|7 +++ fs/affs/super.c| 12 +--- 5

[PATCH 06/30] IGET: Stop autofs from using iget() and read_inode()

2007-10-01 Thread David Howells
Stop the autofs filesystem from using iget() and read_inode(). Replace autofs_read_inode() with autofs_iget(), and call that instead of iget(). autofs_iget() then uses iget_locked() directly and returns a proper error code instead of an inode in the event of an error. Signed-off-by: David

[PATCH 07/30] IGET: Stop BEFS from using iget() and read_inode()

2007-10-01 Thread David Howells
incurred when getting the root inode instead of EINVAL. Signed-off-by: David Howells [EMAIL PROTECTED] --- fs/befs/linuxvfs.c | 39 +-- 1 files changed, 25 insertions(+), 14 deletions(-) diff --git a/fs/befs/linuxvfs.c b/fs/befs/linuxvfs.c index a451418

[PATCH 08/30] IGET: Stop BFS from using iget() and read_inode()

2007-10-01 Thread David Howells
incurred when getting the root inode instead of EINVAL. Signed-off-by: David Howells [EMAIL PROTECTED] --- fs/bfs/bfs.h |2 ++ fs/bfs/dir.c |6 +++--- fs/bfs/inode.c | 32 ++-- 3 files changed, 27 insertions(+), 13 deletions(-) diff --git a/fs/bfs/bfs.h b/fs

[PATCH 09/30] IGET: Stop CIFS from using iget() and read_inode()

2007-10-01 Thread David Howells
error incurred when getting the root inode instead of ENOMEM. Signed-off-by: David Howells [EMAIL PROTECTED] --- fs/cifs/cifsfs.c |8 fs/cifs/cifsfs.h |1 + fs/cifs/inode.c | 35 ++- 3 files changed, 31 insertions(+), 13 deletions(-) diff --git

[PATCH 10/30] IGET: Stop EFS from using iget() and read_inode()

2007-10-01 Thread David Howells
incurred when getting the root inode instead of EACCES. Signed-off-by: David Howells [EMAIL PROTECTED] --- fs/efs/inode.c | 25 + fs/efs/namei.c | 23 --- fs/efs/super.c | 18 -- include/linux/efs_fs.h |2

[PATCH 11/30] IGET: Stop EXT2 from using iget() and read_inode()

2007-10-01 Thread David Howells
incurred when getting the root inode instead of EINVAL. Signed-off-by: David Howells [EMAIL PROTECTED] --- fs/ext2/ext2.h |2 +- fs/ext2/inode.c | 26 +++--- fs/ext2/namei.c | 12 ++-- fs/ext2/super.c | 32 ++-- 4 files changed

[PATCH 12/30] IGET: Stop EXT3 from using iget() and read_inode()

2007-10-01 Thread David Howells
incurred when getting the root inode instead of EINVAL. Signed-off-by: David Howells [EMAIL PROTECTED] --- fs/ext3/ialloc.c| 15 ++- fs/ext3/inode.c | 25 +++-- fs/ext3/namei.c | 25 +++-- fs/ext3/resize.c

[PATCH 13/30] IGET: Stop EXT4 from using iget() and read_inode()

2007-10-01 Thread David Howells
incurred when getting the root inode instead of EINVAL. Signed-off-by: David Howells [EMAIL PROTECTED] --- fs/ext4/ialloc.c| 13 + fs/ext4/inode.c | 25 +++-- fs/ext4/namei.c | 25 +++-- fs/ext4/resize.c

[PATCH 14/30] IGET: Stop FAT from using iget() and read_inode()

2007-10-01 Thread David Howells
Stop the FAT filesystem from using iget() and read_inode(). Replace the call to iget() with a call to ilookup(). Signed-off-by: David Howells [EMAIL PROTECTED] --- fs/fat/inode.c |6 ++ 1 files changed, 2 insertions(+), 4 deletions(-) diff --git a/fs/fat/inode.c b/fs/fat/inode.c index

[PATCH 15/30] IGET: Stop FreeVXFS from using iget() and read_inode()

2007-10-01 Thread David Howells
error incurred when getting the root inode instead of EINVAL. Signed-off-by: David Howells [EMAIL PROTECTED] --- fs/freevxfs/vxfs_extern.h |2 +- fs/freevxfs/vxfs_inode.c | 45 + fs/freevxfs/vxfs_lookup.c |6 +++--- fs/freevxfs/vxfs_super.c

[PATCH 16/30] IGET: Stop FUSE from using iget() and read_inode()

2007-10-01 Thread David Howells
Stop the FUSE filesystem from using read_inode(), which it doesn't use anyway. Signed-off-by: David Howells [EMAIL PROTECTED] --- fs/fuse/inode.c |6 -- 1 files changed, 0 insertions(+), 6 deletions(-) diff --git a/fs/fuse/inode.c b/fs/fuse/inode.c index 5448f62..2986654 100644

[PATCH 17/30] IGET: Stop HFSPLUS from using iget() and read_inode()

2007-10-01 Thread David Howells
() returns any error incurred when getting the root inode. Signed-off-by: David Howells [EMAIL PROTECTED] --- fs/hfsplus/btree.c |6 -- fs/hfsplus/dir.c|6 +++--- fs/hfsplus/hfsplus_fs.h |3 +++ fs/hfsplus/super.c | 44 4

[PATCH 18/30] IGET: Stop ISOFS from using read_inode()

2007-10-01 Thread David Howells
Stop the ISOFS filesystem from using read_inode(). Make isofs_read_inode() return an error code, and make isofs_iget() pass it on. Signed-off-by: David Howells [EMAIL PROTECTED] --- fs/isofs/inode.c | 25 + 1 files changed, 17 insertions(+), 8 deletions(-) diff --git

[PATCH 19/30] IGET: Stop JFFS2 from using iget() and read_inode()

2007-10-01 Thread David Howells
any error incurred when getting the root inode instead of EINVAL. Signed-off-by: David Howells [EMAIL PROTECTED] --- fs/jffs2/dir.c |6 +++-- fs/jffs2/fs.c | 56 --- fs/jffs2/os-linux.h |2 +- fs/jffs2/super.c|1 - 4

[PATCH 20/30] IGET: Stop JFS from using iget() and read_inode()

2007-10-01 Thread David Howells
incurred when getting the root inode instead of EINVAL. Signed-off-by: David Howells [EMAIL PROTECTED] --- fs/jfs/inode.c | 20 fs/jfs/jfs_inode.h |2 +- fs/jfs/namei.c | 34 ++ fs/jfs/super.c | 15 +-- 4 files

[PATCH 21/30] IGET: Stop the MINIX filesystem from using iget() and read_inode()

2007-10-01 Thread David Howells
error incurred when getting the root inode instead of EINVAL. Signed-off-by: David Howells [EMAIL PROTECTED] --- fs/minix/inode.c | 43 +-- fs/minix/minix.h |1 + fs/minix/namei.c |7 +++ 3 files changed, 33 insertions(+), 18 deletions

<    3   4   5   6   7   8   9   10   11   12   >