Re: [PATCH] remove BKL from ext2's readdir

Alex Tomas (bzzz@tmi.comex.ru)
15 Mar 2003 23:09:42 +0300


>>>>> Andrew Morton (AM) writes:

AM> grep again.

AM> I've made the change to ext2 and ext3. Other filesystems will
AM> require some thought to verify that the lock_kernel()s are not
AM> protecting against some other random codepath.

hmm:

[root@proto edited]# head Makefile
VERSION = 2
PATCHLEVEL = 5
SUBLEVEL = 64
EXTRAVERSION =

fs/ext2/dir.c:

struct file_operations ext2_dir_operations = {
.read = generic_read_dir,
.readdir = ext2_readdir,
.ioctl = ext2_ioctl,
.fsync = ext2_sync_file,
};

fs/read_write.c:

static inline loff_t llseek(struct file *file, loff_t offset, int origin)
{
loff_t (*fn)(struct file *, loff_t, int);

fn = default_llseek;
if (file->f_op && file->f_op->llseek)
fn = file->f_op->llseek;
return fn(file, offset, origin);
}

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/