summaryrefslogtreecommitdiff
path: root/fs
AgeCommit message (Collapse)Author
2008-07-03Merge commit 'block/for-next'Stephen Rothwell
2008-07-03Merge commit 'ubifs/for_andrew'Stephen Rothwell
2008-07-03Merge commit 'trivial/next'Stephen Rothwell
2008-07-03Merge commit 'bkl-removal/bkl-removal'Stephen Rothwell
Conflicts: fs/nfs/file.c
2008-07-03Merge commit 'gfs2/master'Stephen Rothwell
2008-07-03Merge branch 'quilt/rr'Stephen Rothwell
Conflicts: drivers/char/hvc_console.h kernel/stop_machine.c
2008-07-03Merge commit 'net/master'Stephen Rothwell
Conflicts: Documentation/feature-removal-schedule.txt Documentation/powerpc/booting-without-of.txt drivers/net/fs_enet/fs_enet-main.c drivers/net/wireless/iwlwifi/iwl-4965.c
2008-07-03Merge commit 'ext4/next'Stephen Rothwell
2008-07-03Merge commit 'selinux/for-akpm'Stephen Rothwell
2008-07-03Merge commit 'ocfs2/linux-next'Stephen Rothwell
2008-07-03Merge commit 'dlm/next'Stephen Rothwell
2008-07-03Merge commit 'nfsd/nfsd-next'Stephen Rothwell
Conflicts: net/sunrpc/svc.c
2008-07-03Merge commit 'xfs/master'Stephen Rothwell
2008-07-03Merge commit 'nfs/linux-next'Stephen Rothwell
2008-07-03Merge commit 'jfs/next'Stephen Rothwell
2008-07-03Merge commit 'sh/master'Stephen Rothwell
2008-07-03Merge commit 'x86/auto-x86-next'Stephen Rothwell
Conflicts: arch/x86/kernel/entry_32.S arch/x86/kernel/process_32.c arch/x86/kernel/process_64.c
2008-07-03misc:down_nowait-xfsRusty Russell
down_trylock -> down_try in xfs Signed-off-by: Rusty Russell <rusty@rustcorp.com.au> Cc: xfs@oss.sgi.com
2008-07-03misc:down_nowait-fs_reiserfs_journalRusty Russell
down_trylock -> down_try in fs/reiserfs/journal.c Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
2008-07-03misc:down_nowait-documentationRusty Russell
down_trylock -> down_try in documentation and comments. Fix up kernel-locking.tmpl and random bitching about down_trylock. Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
2008-07-03sysfs: crash debuggingAndrew Morton
Print the name of the last-accessed sysfs file when we oops, to help track down oopses which occur in sysfs store/read handlers. Because these oopses tend to not leave any trace of the offending code in the stack traces. Cc: Kay Sievers <kay.sievers@vrfy.org> Cc: Mathieu Desnoyers <mathieu.desnoyers@polymtl.ca> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
2008-07-03sysfs: don't call notify_changeMiklos Szeredi
sysfs_chmod_file() calls notify_change() to change the permission bits on a sysfs file. Replace with explicit call to sysfs_setattr() and fsnotify_change(). This is equivalent, except that security_inode_setattr() is not called. This function is called by drivers, so the security checks do not make any sense. Signed-off-by: Miklos Szeredi <mszeredi@suse.cz> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
2008-07-03driver core: remove KOBJ_NAME_LEN defineKay Sievers
Kobjects do not have a limit in name size since a while, so stop pretending that they do. Signed-off-by: Kay Sievers <kay.sievers@vrfy.org> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
2008-07-03device create: coda: convert device_create to device_create_drvdataGreg Kroah-Hartman
device_create() is race-prone, so use the race-free device_create_drvdata() instead as device_create() is going away. Cc: Jan Harkes <jaharkes@cs.cmu.edu> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
2008-07-02Call fasync() functions without the BKLJonathan Corbet
lock_kernel() calls have been pushed down into code which needs it, so there is no need to take the BKL at this level anymore. This work inspired and aided by Andi Kleen's unlocked_fasync() patches. Acked-by: Andi Kleen <ak@linux.intel.com> Signed-off-by: Jonathan Corbet <corbet@lwn.net>
2008-07-02ecryptfs: fasync BKL pushdownJonathan Corbet
Signed-off-by: Jonathan Corbet <corbet@lwn.net>
2008-07-02Remove BKL from remote_llseek v2Andi Kleen
- Replace remote_llseek with generic_file_llseek_unlocked (to force compilation failures in all users) - Change all users to either use generic_file_llseek_unlocked directly or take the BKL around. I changed the file systems who don't use the BKL for anything (CIFS, GFS) to call it directly. NCPFS and SMBFS and NFS take the BKL, but explicitely in their own source now. I moved them all over in a single patch to avoid unbisectable sections. Open problem: 32bit kernels can corrupt fpos because its modification is not atomic, but they can do that anyways because there's other paths who modify it without BKL. Do we need a special lock for the pos/f_version = 0 checks? Trond says the NFS BKL is likely not needed, but keep it for now until his full audit. v2: Use generic_file_llseek_unlocked instead of remote_llseek_unlocked and factor duplicated code (suggested by hch) Cc: Trond.Myklebust@netapp.com Cc: swhiteho@redhat.com Cc: sfrench@samba.org Cc: vandrove@vc.cvut.cz Signed-off-by: Andi Kleen <ak@suse.de> Signed-off-by: Andi Kleen <ak@linux.intel.com> Signed-off-by: Jonathan Corbet <corbet@lwn.net>
2008-07-02Make FAT users happier by not deadlockingJonathan Corbet
The FAT BKL removal patch can cause deadlocks. It turns out that the new lock_super() calls are unneeded, remove them (as directed by Linus). Reported-by: "Tony Luck" <tony.luck@intel.com> Signed-off-by: Jonathan Corbet <corbet@lwn.net>
2008-07-02ocfs2-stack_user: BKL pushdownArnd Bergmann
Signed-off-by: Arnd Bergmann <arnd@arndb.de>
2008-07-02Merge branch 'mmap_truncate_fix' into linux-nextMark Fasheh
2008-07-02[PATCH] ocfs2: fix oops in mmap_truncate testingColy Li
This patch fixes a mmap_truncate bug which was found by ocfs2 test suite. In an ocfs2 cluster more than 1 node, run program mmap_truncate, which races mmap writes and truncates from multiple processes. While the test is running, a stat from another node forces writeout, causing an oops in ocfs2_get_block() because it sees a buffer to write which isn't allocated. This patch fixed the bug by clear dirty and uptodate bits in buffer, leave the buffer unmapped and return. Fix is suggested by Mark Fasheh, and I code up the patch. Signed-off-by: Coly Li <coyli@suse.de> Signed-off-by: Mark Fasheh <mfasheh@suse.com>
2008-07-02UBIFS: fix nospace flagArtem Bityutskiy
We have to take into account the reserved pool. Signed-off-by: Artem Bityutskiy <Artem.Bityutskiy@nokia.com>
2008-07-02UBIFS: move some fns to eliminate a fn prototypeAdrian Hunter
Signed-off-by: Adrian Hunter <ext-adrian.hunter@nokia.com>
2008-07-02UBIFS: remove redundant ubifs_write()Artem Bityutskiy
Signed-off-by: Artem Bityutskiy <Artem.Bityutskiy@nokia.com>
2008-07-02UBIFS: ensure LPT has space in big modelAdrian Hunter
Signed-off-by: Adrian Hunter <ext-adrian.hunter@nokia.com>
2008-07-02UBIFS: make bdi per-superblockArtem Bityutskiy
Signed-off-by: Artem Bityutskiy <Artem.Bityutskiy@nokia.com>
2008-07-02UBIFS: add assertAdrian Hunter
Signed-off-by: Adrian Hunter <ext-adrian.hunter@nokia.com>
2008-07-02UBIFS: remove unnecessary i_size_read()sAdrian Hunter
Signed-off-by: Adrian Hunter <ext-adrian.hunter@nokia.com>
2008-07-02UBIFS: remove unnecessary kernel lockAdrian Hunter
Signed-off-by: Adrian Hunter <ext-adrian.hunter@nokia.com>
2008-07-02UBIFS: introduce nospace flagArtem Bityutskiy
Bypass all the budgeting retries if the last budgeting attempt failed. Signed-off-by: Artem Bityutskiy <Artem.Bityutskiy@nokia.com>
2008-07-02UBIFS: fix Zoltan's bugArtem Bityutskiy
Zoltan Sogor reported a bug. The following fails on UBIFS but does not fail on ext3. while true; do echo live for i in `seq 1 1000` do mkdir $i cd $i rmdir ../$i touch tmp &> /dev/null cd - &> /dev/null done; done; I am not sure is it a VFS bug/issue or not, but the reason of this is that 'touch tmp' has side effects. Namely, it causes ubifs_lookup(tmp) to be called which does not find the direntry (-ENOENT case) but hases it (d_add()), which cases d_count of parent direntry (the orphan) to be increased. Later on VFS open() call fails, but it does not put the orphan's dentry, so iput() does not happen and delete_inode() is not called. To heal this we just to not hash the dentry if the parent has i_nlink = 0. Signed-off-by: Artem Bityutskiy <Artem.Bityutskiy@nokia.com>
2008-07-02Merge branch 'master' into for-akpmJames Morris
2008-07-01Merge branch 'for-2.6.27' into for-mmJ. Bruce Fields
2008-07-01nfsd: clean up mnt_want_write callsMiklos Szeredi
Multiple mnt_want_write() calls in the switch statement looks really ugly. Signed-off-by: Miklos Szeredi <mszeredi@suse.cz> Acked-by: Christoph Hellwig <hch@infradead.org> Signed-off-by: J. Bruce Fields <bfields@citi.umich.edu>
2008-07-01NFSv4: Remove BKL from the nfsv4 state recoveryTrond Myklebust
Signed-off-by: Trond Myklebust <Trond.Myklebust@netapp.com>
2008-07-01SUNRPC: Remove the BKL from the callback functionsTrond Myklebust
Push it into those callback functions that actually need it. Note that all the NFS operations use their own locking, so don't need the BKL. Ditto for the rpcbind client. Signed-off-by: Trond Myklebust <Trond.Myklebust@netapp.com>
2008-07-01NFS: Remove BKL from the readdir codeTrond Myklebust
Page accesses are serialised using the page locks, whereas all attribute updates are serialised using the inode->i_lock. Signed-off-by: Trond Myklebust <Trond.Myklebust@netapp.com>
2008-07-01NFS: Remove BKL from the symlink codeTrond Myklebust
Page cache accesses are serialised using page locks, whereas attribute updates are serialised using inode->i_lock. Signed-off-by: Trond Myklebust <Trond.Myklebust@netapp.com>
2008-07-01NFS: Remove BKL from the sillydelete operationsTrond Myklebust
Signed-off-by: Trond Myklebust <Trond.Myklebust@netapp.com>
2008-07-01NFS: Remove the BKL from the rename, rmdir and unlink operationsTrond Myklebust
Attribute updates are safe, and dentry operations are protected using VFS level locks. Defer removing the BKL from sillyrename until a separate patch. Signed-off-by: Trond Myklebust <Trond.Myklebust@netapp.com>