aha/fs/ncpfs
Andi Kleen 9465efc9e9 Remove BKL from remote_llseek v2
- 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-02 15:06:27 -06:00
..
dir.c [PATCH] mark struct inode_operations const 2 2007-02-12 09:48:46 -08:00
file.c Remove BKL from remote_llseek v2 2008-07-02 15:06:27 -06:00
getopt.c
getopt.h
inode.c ncpfs: add prototypes to ncp_fs.h 2008-04-28 08:58:29 -07:00
ioctl.c ncpfs: fix sparse warnings in ioctl.c 2008-04-28 08:58:29 -07:00
Kconfig
Makefile
mmap.c vm audit: add VM_DONTEXPAND to mmap for drivers that need it 2008-02-04 07:55:38 -08:00
ncplib_kernel.c ncpfs: use get/put_unaligned_* helpers 2008-04-29 08:06:28 -07:00
ncplib_kernel.h
ncpsign_kernel.c ncpfs: fix sparse warning in ncpsign_kernel.c 2008-04-28 08:58:29 -07:00
ncpsign_kernel.h
sock.c ncpfs: make sure server connection survives a kill 2007-03-06 13:26:27 +01:00
symlink.c [PATCH] fs: Removing useless casts 2006-09-27 08:26:10 -07:00