diff options
author | Arnd Bergmann <arnd@arndb.de> | 2010-10-21 15:53:15 +0200 |
---|---|---|
committer | Arnd Bergmann <arnd@arndb.de> | 2010-10-21 18:48:04 +0200 |
commit | 073c21416268658bd1bc573af85eeac2ebb56ed5 (patch) | |
tree | 66553303809cc8c1ef7229058d8d5a5670bb301f /fs/qnx4/dir.c | |
parent | 5a44a73b9015e89cfb280ba0534dfcbf1ef29d05 (diff) | |
download | linux-3.10-073c21416268658bd1bc573af85eeac2ebb56ed5.tar.gz linux-3.10-073c21416268658bd1bc573af85eeac2ebb56ed5.tar.bz2 linux-3.10-073c21416268658bd1bc573af85eeac2ebb56ed5.zip |
BKL: remove BKL from qnx4
All uses of the BKL in qnx4 were the result of a pushdown into
code that doesn't really need it. As Christoph points out, this
is a read-only file system, which eliminates most of the races in
readdir/lookup.
Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Acked-by: Anders Larsen <al@alarsen.net>
Cc: Christoph Hellwig <hch@infradead.org>
Diffstat (limited to 'fs/qnx4/dir.c')
-rw-r--r-- | fs/qnx4/dir.c | 4 |
1 files changed, 0 insertions, 4 deletions
diff --git a/fs/qnx4/dir.c b/fs/qnx4/dir.c index 6e8fc62b40a..7b0329468a5 100644 --- a/fs/qnx4/dir.c +++ b/fs/qnx4/dir.c @@ -11,7 +11,6 @@ * 20-06-1998 by Frank Denis : Linux 2.1.99+ & dcache support. */ -#include <linux/smp_lock.h> #include <linux/buffer_head.h> #include "qnx4.h" @@ -29,8 +28,6 @@ static int qnx4_readdir(struct file *filp, void *dirent, filldir_t filldir) QNX4DEBUG((KERN_INFO "qnx4_readdir:i_size = %ld\n", (long) inode->i_size)); QNX4DEBUG((KERN_INFO "filp->f_pos = %ld\n", (long) filp->f_pos)); - lock_kernel(); - while (filp->f_pos < inode->i_size) { blknum = qnx4_block_map( inode, filp->f_pos >> QNX4_BLOCK_SIZE_BITS ); bh = sb_bread(inode->i_sb, blknum); @@ -71,7 +68,6 @@ static int qnx4_readdir(struct file *filp, void *dirent, filldir_t filldir) brelse(bh); } out: - unlock_kernel(); return 0; } |