jan Blunck
ca572727db
fs/: do not fallback to default_llseek() when readdir() uses BKL
...
Do not use the fallback default_llseek() if the readdir operation of the
filesystem still uses the big kernel lock.
Since llseek() modifies
file->f_pos of the directory directly it may need locking to not confuse
readdir which usually uses file->f_pos directly as well
Since the special characteristics of the BKL (unlocked on schedule) are
not necessary in this case, the inode mutex can be used for locking as
provided by generic_file_llseek(). This is only possible since all
filesystems, except reiserfs, either use a directory as a flat file or
with disk address offsets. Reiserfs on the other hand uses a 32bit hash
off the filename as the offset so generic_file_llseek() can get used as
well since the hash is always smaller than sb->s_maxbytes (= (512 << 32) -
blocksize).
Signed-off-by: Jan Blunck <[email protected] >
Acked-by: Jan Kara <[email protected] >
Acked-by: Anders Larsen <[email protected] >
Cc: Frederic Weisbecker <[email protected] >
Signed-off-by: Andrew Morton <[email protected] >
Signed-off-by: Linus Torvalds <[email protected] >
2010-05-27 09:12:56 -07:00
..
9p
Merge branch 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/ericvh/v9fs
2010-05-24 07:41:13 -07:00
adfs
include cleanup: Update gfp.h and slab.h includes to prepare for breaking implicit slab.h inclusion from percpu.h
2010-03-30 22:02:32 +09:00
affs
fs/affs: use ERR_CAST
2010-05-27 09:12:53 -07:00
afs
AFS: Don't put struct file on the stack
2010-05-21 18:31:28 -04:00
autofs
fs/: do not fallback to default_llseek() when readdir() uses BKL
2010-05-27 09:12:56 -07:00
autofs4
fs/autofs4: use memdup_user
2010-05-27 09:12:41 -07:00
befs
include cleanup: Update gfp.h and slab.h includes to prepare for breaking implicit slab.h inclusion from percpu.h
2010-03-30 22:02:32 +09:00
bfs
bfs: replace inode uid,gid,mode initialization with helper function
2010-05-21 18:31:25 -04:00
btrfs
driver core: add devname module aliases to allow module on-demand auto-loading
2010-05-25 15:08:26 -07:00
cachefiles
CacheFiles: Fix error handling in cachefiles_determine_cache_security()
2010-05-12 18:23:58 -07:00
ceph
Merge branch 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/sage/ceph-client
2010-05-24 07:37:52 -07:00
cifs
cifs: fix noserverino handling when unix extensions are enabled
2010-05-17 20:59:21 +00:00
coda
Merge branch 'bkl/ioctl' of git://git.kernel.org/pub/scm/linux/kernel/git/frederic/random-tracing
2010-05-24 08:01:10 -07:00
configfs
Fix the regression created by "set S_DEAD on unlink()..." commit
2010-05-15 07:16:33 -04:00
cramfs
debugfs
include cleanup: Update gfp.h and slab.h includes to prepare for breaking implicit slab.h inclusion from percpu.h
2010-03-30 22:02:32 +09:00
devpts
Simplify devpts_get_sb() failure exits
2010-05-21 18:31:12 -04:00
dlm
dlm: fix ast ordering for user locks
2010-04-30 14:52:51 -05:00
ecryptfs
switch ecryptfs_write() to struct inode *, kill on-stack fake files
2010-05-21 18:31:28 -04:00
efs
exofs
Merge branch 'for-linus' of git://git.open-osd.org/linux-open-osd
2010-05-24 07:57:41 -07:00
exportfs
ext2
ext2: replace inode uid,gid,mode init with helper
2010-05-21 18:31:24 -04:00
ext3
Merge branch 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/viro/vfs-2.6
2010-05-21 19:37:45 -07:00
ext4
Merge branch 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/viro/vfs-2.6
2010-05-21 19:37:45 -07:00
fat
fatfs: ratelimit corruption report
2010-05-25 08:07:04 -07:00
freevxfs
fs/: do not fallback to default_llseek() when readdir() uses BKL
2010-05-27 09:12:56 -07:00
fscache
fs/fscache/object-list.c: fix warning on 32-bit
2010-05-26 08:19:23 -07:00
fuse
driver core: add devname module aliases to allow module on-demand auto-loading
2010-05-25 15:08:26 -07:00
gfs2
Merge git://git.kernel.org/pub/scm/linux/kernel/git/steve/gfs2-2.6-fixes
2010-05-25 08:17:51 -07:00
hfs
include cleanup: Update gfp.h and slab.h includes to prepare for breaking implicit slab.h inclusion from percpu.h
2010-03-30 22:02:32 +09:00
hfsplus
hfsplus: Push down BKL into ioctl function
2010-05-17 05:27:03 +02:00
hostfs
include cleanup: Update gfp.h and slab.h includes to prepare for breaking implicit slab.h inclusion from percpu.h
2010-03-30 22:02:32 +09:00
hpfs
include cleanup: Update gfp.h and slab.h includes to prepare for breaking implicit slab.h inclusion from percpu.h
2010-03-30 22:02:32 +09:00
hppfs
hugetlbfs
isofs
fs/: do not fallback to default_llseek() when readdir() uses BKL
2010-05-27 09:12:56 -07:00
jbd
ext3: Fix waiting on transaction during fsync
2010-05-21 19:30:41 +02:00
jbd2
Merge branch 'master' into for-2.6.35
2010-05-21 21:27:26 +02:00
jffs2
jffs2: constify xattr_handler
2010-05-21 18:31:20 -04:00
jfs
jfs: replace inode uid,gid,mode init with helper
2010-05-21 18:31:23 -04:00
lockd
include cleanup: Update gfp.h and slab.h includes to prepare for breaking implicit slab.h inclusion from percpu.h
2010-03-30 22:02:32 +09:00
logfs
logfs: replace inode uid,gid,mode initialization with helper function
2010-05-21 18:31:27 -04:00
minix
minix: replace inode uid,gid,mode init with helper
2010-05-21 18:31:24 -04:00
ncpfs
fs/: do not fallback to default_llseek() when readdir() uses BKL
2010-05-27 09:12:56 -07:00
nfs
kernel-wide: replace USHORT_MAX, SHORT_MAX and SHORT_MIN with USHRT_MAX, SHRT_MAX and SHRT_MIN
2010-05-25 08:07:02 -07:00
nfs_common
include cleanup: Update gfp.h and slab.h includes to prepare for breaking implicit slab.h inclusion from percpu.h
2010-03-30 22:02:32 +09:00
nfsd
kernel-wide: replace USHORT_MAX, SHORT_MAX and SHORT_MIN with USHRT_MAX, SHRT_MAX and SHRT_MIN
2010-05-25 08:07:02 -07:00
nilfs2
Merge branch 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/viro/vfs-2.6
2010-05-21 19:37:45 -07:00
nls
notify
Saner locking around deactivate_super()
2010-05-21 18:31:14 -04:00
ntfs
ntfs: use add_to_page_cache_lru()
2010-05-25 08:07:03 -07:00
ocfs2
kernel-wide: replace USHORT_MAX, SHORT_MAX and SHORT_MIN with USHRT_MAX, SHRT_MAX and SHRT_MIN
2010-05-25 08:07:02 -07:00
omfs
omfs: replace inode uid,gid,mode initialization with helper function
2010-05-21 18:31:25 -04:00
openpromfs
partitions
fs: ldm: don't use own implementation of hex_to_bin()
2010-05-25 08:07:06 -07:00
proc
kcore: add _text to KCORE_TEXT
2010-05-27 09:12:47 -07:00
qnx4
fs/: do not fallback to default_llseek() when readdir() uses BKL
2010-05-27 09:12:56 -07:00
quota
new helper: iterate_supers()
2010-05-21 18:31:16 -04:00
ramfs
ramfs: replace inode uid,gid,mode initialization with helper function
2010-05-21 18:31:26 -04:00
reiserfs
fs/: do not fallback to default_llseek() when readdir() uses BKL
2010-05-27 09:12:56 -07:00
romfs
smbfs
fs/: do not fallback to default_llseek() when readdir() uses BKL
2010-05-27 09:12:56 -07:00
squashfs
squashfs: fix name reading in squashfs_xattr_get
2010-05-23 08:27:42 +01:00
sysfs
sysfs: add struct file* to bin_attr callbacks
2010-05-21 09:37:31 -07:00
sysv
sysv: replace inode uid,gid,mode initialization with helper function
2010-05-21 18:31:26 -04:00
ubifs
ubifs: replace inode uid,gid,mode initialization with helper function
2010-05-21 18:31:26 -04:00
udf
fs/: do not fallback to default_llseek() when readdir() uses BKL
2010-05-27 09:12:56 -07:00
ufs
ufs: permit mounting of BorderWare filesystems
2010-05-27 09:12:43 -07:00
xfs
Merge branch 'delayed-logging-for-2.6.35' into for-linus
2010-05-24 11:57:36 -05:00
aio.c
aio: fix the compat vectored operations
2010-05-27 09:12:53 -07:00
anon_inodes.c
anon_inode: set S_IFREG on the anon_inode
2010-05-21 18:31:20 -04:00
attr.c
fs: use rlimit helpers
2010-03-06 11:26:29 -08:00
bad_inode.c
binfmt_aout.c
include cleanup: Update gfp.h and slab.h includes to prepare for breaking implicit slab.h inclusion from percpu.h
2010-03-30 22:02:32 +09:00
binfmt_elf.c
coredump: pass mm->flags as a coredump parameter for consistency
2010-03-06 11:26:46 -08:00
binfmt_elf_fdpic.c
Remove redundant check for CONFIG_MMU
2010-04-27 09:01:26 -07:00
binfmt_em86.c
include cleanup: Update gfp.h and slab.h includes to prepare for breaking implicit slab.h inclusion from percpu.h
2010-03-30 22:02:32 +09:00
binfmt_flat.c
uclinux: error message when FLAT reloc symbol is invalid, v2
2010-04-21 13:28:49 +10:00
binfmt_misc.c
binfmt_script.c
include cleanup: Update gfp.h and slab.h includes to prepare for breaking implicit slab.h inclusion from percpu.h
2010-03-30 22:02:32 +09:00
binfmt_som.c
bio-integrity.c
include cleanup: Update gfp.h and slab.h includes to prepare for breaking implicit slab.h inclusion from percpu.h
2010-03-30 22:02:32 +09:00
bio.c
Merge branch 'master' into for-linus
2010-03-19 08:05:10 +01:00
block_dev.c
Merge branch 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/viro/vfs-2.6
2010-05-21 19:37:45 -07:00
buffer.c
Merge branch 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/viro/vfs-2.6
2010-05-21 19:37:45 -07:00
char_dev.c
compat.c
aio: fix the compat vectored operations
2010-05-27 09:12:53 -07:00
compat_binfmt_elf.c
elf coredump: replace ELF_CORE_EXTRA_* macros by functions
2010-03-06 11:26:45 -08:00
compat_ioctl.c
pktcdvd: improve BKL and compat_ioctl.c usage
2010-04-29 08:44:37 -07:00
dcache.c
fix prune_dcache()/umount() race
2010-05-21 18:31:16 -04:00
dcookies.c
direct-io.c
drop_caches.c
new helper: iterate_supers()
2010-05-21 18:31:16 -04:00
eventfd.c
include cleanup: Update gfp.h and slab.h includes to prepare for breaking implicit slab.h inclusion from percpu.h
2010-03-30 22:02:32 +09:00
eventpoll.c
sched, wait: Use wrapper functions
2010-05-11 17:43:58 +02:00
exec.c
exit: avoid sig->count in de_thread/__exit_signal synchronization
2010-05-27 09:12:46 -07:00
fcntl.c
Merge branch 'master' into for-2.6.35
2010-05-21 21:27:26 +02:00
fifo.c
include cleanup: Update gfp.h and slab.h includes to prepare for breaking implicit slab.h inclusion from percpu.h
2010-03-30 22:02:32 +09:00
file.c
fs: use rlimit helpers
2010-03-06 11:26:29 -08:00
file_table.c
vfs: take f_lock on modifying f_mode after open time
2010-03-06 11:26:25 -08:00
filesystems.c
include cleanup: Update gfp.h and slab.h includes to prepare for breaking implicit slab.h inclusion from percpu.h
2010-03-30 22:02:32 +09:00
fs-writeback.c
fs-writeback: check sync bit earlier in inode_wait_for_writeback
2010-05-25 08:07:00 -07:00
fs_struct.c
generic_acl.c
fs: xattr_handler table should be const
2010-05-21 18:31:18 -04:00
inode.c
vfs: Add inode uid,gid,mode init helper
2010-05-21 18:31:22 -04:00
internal.h
Bury __put_super_and_need_restart()
2010-05-21 18:31:16 -04:00
ioctl.c
Introduce freeze_super and thaw_super for the fsfreeze ioctl
2010-05-21 18:31:18 -04:00
ioprio.c
include cleanup: Update gfp.h and slab.h includes to prepare for breaking implicit slab.h inclusion from percpu.h
2010-03-30 22:02:32 +09:00
Kconfig
Merge branch 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/sage/ceph-client
2010-03-19 09:43:06 -07:00
Kconfig.binfmt
libfs.c
FS / libfs: Implement simple_write_to_buffer
2010-05-10 23:08:17 +02:00
locks.c
Merge branch 'for-next' into for-linus
2010-03-08 16:55:37 +01:00
Makefile
Take statfs variants to fs/statfs.c
2010-05-21 18:31:17 -04:00
mbcache.c
mpage.c
include cleanup: Update gfp.h and slab.h includes to prepare for breaking implicit slab.h inclusion from percpu.h
2010-03-30 22:02:32 +09:00
namei.c
namei.c : update mnt when it needed
2010-05-21 18:31:22 -04:00
namespace.c
Merge branch 'next' into for-linus
2010-05-18 08:57:00 +10:00
nfsctl.c
no-block.c
open.c
Take statfs variants to fs/statfs.c
2010-05-21 18:31:17 -04:00
pipe.c
pipe: set lower and upper limit on max pages in the pipe page array
2010-05-21 21:12:52 +02:00
pnode.c
pnode.h
posix_acl.c
read_write.c
vfs: introduce noop_llseek()
2010-05-27 09:12:56 -07:00
read_write.h
readdir.c
select.c
Add generic sys_old_select()
2010-03-12 15:52:32 -08:00
seq_file.c
seq_file: fix new kernel-doc warnings
2010-03-07 15:48:26 -08:00
signalfd.c
include cleanup: Update gfp.h and slab.h includes to prepare for breaking implicit slab.h inclusion from percpu.h
2010-03-30 22:02:32 +09:00
splice.c
pipe: add support for shrinking and growing pipes
2010-05-21 21:12:40 +02:00
stack.c
stat.c
statfs.c
Take statfs variants to fs/statfs.c
2010-05-21 18:31:17 -04:00
super.c
vfs: add lockdep annotation to s_vfs_rename_key for ecryptfs
2010-05-21 18:31:22 -04:00
sync.c
Merge branch 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/viro/vfs-2.6
2010-05-21 19:37:45 -07:00
timerfd.c
fs/timerfd.c: make use of wait_event_interruptible_locked_irq()
2010-05-20 13:21:42 -07:00
utimes.c
xattr.c
fs: xattr_handler table should be const
2010-05-21 18:31:18 -04:00
xattr_acl.c
include cleanup: Update gfp.h and slab.h includes to prepare for breaking implicit slab.h inclusion from percpu.h
2010-03-30 22:02:32 +09:00