]> git.baikalelectronics.ru Git - kernel.git/commit
BKL: Remove BKL from ncpfs
authorPetr Vandrovec <petr@vandrovec.name>
Sun, 26 Sep 2010 23:47:33 +0000 (01:47 +0200)
committerArnd Bergmann <arnd@arndb.de>
Mon, 4 Oct 2010 19:10:52 +0000 (21:10 +0200)
commitecbd32fd08bb9a87e2bc64c9001becf3834961af
treec2996f29aa49881e93c7a37fad41e4961f6b8578
parent94c31c8723d045383de430ed06a4197ab535c997
BKL: Remove BKL from ncpfs

Dozen of changes in ncpfs to provide some locking other than BKL.

In readdir cache unlock and mark complete first page as last operation,
so it can be used for synchronization, as code intended.

When updating dentry name on case insensitive filesystems do at least
some basic locking...

Hold i_mutex when updating inode fields.

Push some ncp_conn_is_valid down to ncp_request.  Connection can become
invalid at any moment, and fewer error code paths to test the better.

Use i_size_{read,write} to modify file size.

Set inode's backing_dev_info as ncpfs has its own special bdi.

In ioctl unbreak ioctls invoked on filesystem mounted 'ro' - tests are
for inode writeable or owner match, but were turned to filesystem
writeable and inode writeable or owner match.  Also collect all permission
checks in single place.

Add some locking, and remove comments saying that it would be cool to
add some locks to the code.

Constify some pointers.

Signed-off-by: Petr Vandrovec <petr@vandrovec.name>
Signed-off-by: Arnd Bergmann <arnd@arndb.de>
fs/ncpfs/dir.c
fs/ncpfs/file.c
fs/ncpfs/inode.c
fs/ncpfs/ioctl.c
fs/ncpfs/ncplib_kernel.c
fs/ncpfs/ncplib_kernel.h
fs/ncpfs/ncpsign_kernel.c
fs/ncpfs/sock.c
include/linux/ncp_fs.h
include/linux/ncp_fs_sb.h