WSL2-Linux-Kernel/fs/freevxfs
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 <jblunck@suse.de>
Acked-by: Jan Kara <jack@suse.cz>
Acked-by: Anders Larsen <al@alarsen.net>
Cc: Frederic Weisbecker <fweisbec@gmail.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
2010-05-27 09:12:56 -07:00
..
Kconfig fs/Kconfig: move vxfs out 2009-01-22 13:15:58 +03:00
Makefile
vxfs.h
vxfs_bmap.c freevxfs: possible null pointer dereference fix 2007-05-08 11:14:59 -07:00
vxfs_dir.h fs/: Spelling fixes 2008-02-03 17:33:42 +02:00
vxfs_extern.h fs/freevxfs/: proper externs 2008-04-29 08:06:00 -07:00
vxfs_fshead.c
vxfs_fshead.h
vxfs_immed.c fs/freevxfs/: proper externs 2008-04-29 08:06:00 -07:00
vxfs_inode.c freevxfs: ensure fast symlinks are NUL-terminated 2008-12-31 18:07:40 -05:00
vxfs_inode.h
vxfs_lookup.c fs/: do not fallback to default_llseek() when readdir() uses BKL 2010-05-27 09:12:56 -07:00
vxfs_olt.c
vxfs_olt.h
vxfs_subr.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
vxfs_super.c headers: smp_lock.h redux 2009-07-12 12:22:34 -07:00