Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id ; Sat, 15 Mar 2003 15:07:10 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id ; Sat, 15 Mar 2003 15:07:08 -0500 Received: from comtv.ru ([217.10.32.4]:49067 "EHLO comtv.ru") by vger.kernel.org with ESMTP id ; Sat, 15 Mar 2003 15:07:01 -0500 X-Comment-To: Andrew Morton To: Andrew Morton Cc: Alex Tomas , linux-kernel@vger.kernel.org, ext2-devel@lists.sourceforge.net Subject: Re: [PATCH] remove BKL from ext2's readdir References: <20030315023614.3e28e67b.akpm@digeo.com> <20030315030322.792fa598.akpm@digeo.com> <20030315121125.48294975.akpm@digeo.com> From: Alex Tomas Organization: HOME Date: 15 Mar 2003 23:09:42 +0300 In-Reply-To: <20030315121125.48294975.akpm@digeo.com> Message-ID: User-Agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.2 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1125 Lines: 41 >>>>> 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/