[PATCH] [7/7] Remove incorrect BKL comments in ext4

2008-01-28 Thread Andi Kleen
Signed-off-by: Andi Kleen [EMAIL PROTECTED] --- fs/ext4/dir.c |2 +- fs/ext4/inode.c |1 - 2 files changed, 1 insertion(+), 2 deletions(-) Index: linux/fs/ext4/dir.c === --- linux.orig/fs/ext4/dir.c +++

[PATCH] [5/7] Remove incorrect comment refering to lock_kernel() from jbd/jbd2

2008-01-28 Thread Andi Kleen
None of the callers of this function does actually take the BKL as far as I can see. So remove the comment refering to the BKL. Signed-off-by: Andi Kleen [EMAIL PROTECTED] --- fs/jbd/recovery.c |2 +- fs/jbd2/recovery.c |2 +- 2 files changed, 2 insertions(+), 2 deletions(-) Index:

[PATCH] [4/7] ext3: Remove incorrect BKL comment

2008-01-28 Thread Andi Kleen
There is no BKL held on entry in -fsync nor in the low level ext3_sync_file. Signed-off-by: Andi Kleen [EMAIL PROTECTED] --- fs/ext3/dir.c |2 +- 1 file changed, 1 insertion(+), 1 deletion(-) Index: linux/fs/ext3/dir.c ===

[PATCH] [2/7] Remove incorrect BKL comment in ext2

2008-01-28 Thread Andi Kleen
No BKL used anywhere, so don't mention it. Signed-off-by: Andi Kleen [EMAIL PROTECTED] --- fs/ext2/inode.c |1 - 1 file changed, 1 deletion(-) Index: linux/fs/ext2/inode.c === --- linux.orig/fs/ext2/inode.c +++

[PATCH] [1/7] Convert ext2 over to use unlocked_ioctl

2008-01-28 Thread Andi Kleen
I checked ext2_ioctl and could not find anything in there that would need the BKL. So convert it over to use unlocked_ioctl Signed-off-by: Andi Kleen [EMAIL PROTECTED] --- fs/ext2/dir.c |2 +- fs/ext2/ext2.h |3 +-- fs/ext2/file.c |4 ++-- fs/ext2/ioctl.c | 12 +++- 4

[PATCH] [0/7] Drop BKL in ext[234] ioctls

2008-01-28 Thread Andi Kleen
Remove the BKL from the ext* ioctls. This is a slightly updated version of the ext[2-4] patches that hit linux-fsdevel earlier. -Andi - To unsubscribe from this list: send the line unsubscribe linux-ext4 in the body of a message to [EMAIL PROTECTED] More majordomo info at

[PATCH] [3/7] Convert ext3 to use unlocked_ioctl v2

2008-01-28 Thread Andi Kleen
I checked ext3_ioctl and it looked largely safe to not be used without BKL. So convert it over to unlocked_ioctl. Signed-off-by: Andi Kleen [EMAIL PROTECTED] v1-v2: drop lock kernel for online growth. resize.c seems to do enough locking --- fs/ext3/dir.c |2 +- fs/ext3/file.c

[PATCH] [6/7] Convert ext4 to use unlocked_ioctl v2

2008-01-28 Thread Andi Kleen
I checked ext4_ioctl and it looked largely safe to not be used without BKL. So convert it over to unlocked_ioctl. Signed-off-by: Andi Kleen [EMAIL PROTECTED] v1-v2: drop BKL for online grow. resize.c seems to do enough locking --- fs/ext4/dir.c |2 +- fs/ext4/file.c |

Re: [PATCH, RFC] Add new development flag to the ext4 filesystem

2008-01-28 Thread Jan Kara
On Fri 25-01-08 03:50:04, Andreas Dilger wrote: On Jan 25, 2008 11:05 +0100, Jan Kara wrote: For example ext2 on fsync() just sync's a single inode (and has to use private_list to track metadata buffers associated with the inode) while ext3 flushes the whole journal. As for fsync(), we

[PATCH] jbd: Remove useless loop when writing commit record

2008-01-28 Thread Jan Kara
Hi Andrew, here's the patch I wrote you about. Honza -- Jan Kara [EMAIL PROTECTED] SUSE Labs, CR --- Commit block was intended to have several copies of the header. But due to a bug it never had them and actually, nobody checks that.

Re: [PATCH] Fix commit block write in JBD

2008-01-28 Thread Jan Kara
On Sat 26-01-08 22:02:07, Andrew Morton wrote: On Wed, 23 Jan 2008 20:09:43 +0100 Jan Kara [EMAIL PROTECTED] wrote: Commit block is expected to have several copies of the header. Fix the bug Andrew has spotted ages ago. ages indeed. diff --git a/fs/jbd/commit.c

Re: [RFC] ext3 freeze feature

2008-01-28 Thread Takashi Sato
Hi, What you *could* do is to start putting processes to sleep if they attempt to write to the frozen filesystem, and then detect the deadlock case where the process holding the file descriptor used to freeze the filesystem gets frozen because it attempted to write to the filesystem --- at

Re: [RFC] ext3 freeze feature

2008-01-28 Thread Takashi Sato
Hi, Thank you for your comments. That's inherently unsafe - you can have multiple unfreezes running in parallel which seriously screws with the bdev semaphore count that is used to lock the device due to doing multiple up()s for every down. Your timeout thingy guarantee that at some point you

Re: Integrating patches in SLES10 e2fsprogs

2008-01-28 Thread Matthias Koenig
Theodore Tso [EMAIL PROTECTED] writes: Wow. You have a lot of patches in the SLES 10 e2fsprogs. I'm not sure why of them are there, though. For example: Patch0: elf.diff I'm not sure what this one is for. Patch1: e2fsprogs-1.35-libdir.diff This one does two

Re: e2fsprogs: pu branch

2008-01-28 Thread Theodore Tso
On Fri, Jan 25, 2008 at 05:32:59PM +0100, Valerie Clement wrote: Hi Ted, Here are the problems I found when testing e2fsprogs built in the pu branch. I've checked that they haven't been fixed in the latest version. (git describe = v1.40.3-98-gb6fea68) 1- Corrupt extent header report from

Re: [RFC] Parallelize IO for e2fsck

2008-01-28 Thread Pavel Machek
Hi! It's been discussed before, but I suspect the main reason why it was never done is no one submitted a patch. Also, the problem is actually a pretty complex one. There are a couple of different stages where you might want to send an alert to processes: * Data is starting to get

Re: Integrating patches in SLES10 e2fsprogs

2008-01-28 Thread Thierry Vignaud
Thierry Vignaud [EMAIL PROTECTED] writes: In any case, I've just released e2fsprogs 1.40.6. which prompts me to note that it's neither on ftp://ftp.kernel.org/pub/linux/utils/util-linux-ng/v2.13 nor on http://e2fsprogs.sourceforge.net/ What is supposed to be the current primary source?

Re: Integrating patches in SLES10 e2fsprogs

2008-01-28 Thread Eric Sandeen
Theodore Tso wrote: On Mon, Jan 28, 2008 at 04:26:53PM +0100, Matthias Koenig wrote: Patch6: e2fsprogs-mdraid.patch This apparently adds a new environment variable, BLKID_SKIP_CHECK_MDRAID, which forces blkid to not detect mdraid devices. I'm not sure why. Workaround for people

Re: Integrating patches in SLES10 e2fsprogs

2008-01-28 Thread Thierry Vignaud
Theodore Tso [EMAIL PROTECTED] writes: In any case, I've just released e2fsprogs 1.40.6. which prompts me to note that it's neither on ftp://ftp.kernel.org/pub/linux/utils/util-linux-ng/v2.13 nor on http://e2fsprogs.sourceforge.net/ What is supposed to be the current primary source? It

Oops, incorrect tag: v1.40.5 in e2fsprogs git repository

2008-01-28 Thread Theodore Tso
Hi, I screwed up, and incorrectly tagged v1.40.5 in the e2fsprogs git repository. I accidentally tagged the next branch instead of the maint branch, so the the wrong commit was tagged as v1.40.5. Argh... This has been fixed on git.kernel.org, but it's still busted on repo.or.cz. If you've

Oops, incorrect tag: v1.40.5 in e2fsprogs git repository

2008-01-28 Thread Theodore Tso
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Hi, I screwed up, and incorrectly tagged v1.40.5 in the e2fsprogs git repository. I accidentally tagged the next branch instead of the maint branch, so the the wrong commit was tagged as v1.40.5. Argh... This has been fixed on git.kernel.org, but

Re: [RFC] Parallelize IO for e2fsck

2008-01-28 Thread Pavel Machek
On Mon 2008-01-28 14:56:33, Theodore Tso wrote: On Mon, Jan 28, 2008 at 07:30:05PM +, Pavel Machek wrote: As user pages are always in highmem, this should be easy to decide: only send SIGDANGER when highmem is full. (Yes, there are inodes/dentries/file descriptors in lowmem, but I

[PATCH] ext3: Fix lock inversion in direct IO

2008-01-28 Thread Jan Kara
Hi Andrew, the patch below fixes a lock inversion which someone reported recently. More details below in the changelog. Can you merge the patch please? I'll also write a similar patch for ext4 once we agree this is the way to go...

Re: Oops, incorrect tag: v1.40.5 in e2fsprogs git repository

2008-01-28 Thread Theodore Tso
On Tue, Jan 29, 2008 at 01:43:31AM +0100, Petr Baudis wrote: Done, though it should be doable from your side as well by something like git push reporepo :refs/tags/v1.40.5 Wow, I thought that only worked on branches, but you're right, that works. Thanks!!!

Re: Oops, incorrect tag: v1.40.5 in e2fsprogs git repository

2008-01-28 Thread Petr Baudis
Hi, On Mon, Jan 28, 2008 at 01:19:23PM -0500, Theodore Tso wrote: I screwed up, and incorrectly tagged v1.40.5 in the e2fsprogs git repository. I accidentally tagged the next branch instead of the maint branch, so the the wrong commit was tagged as v1.40.5. Argh... This has been fixed

[GIT PULL] ext4 update

2008-01-28 Thread Theodore Ts'o
Hi Linus, Please pull from: git://git.kernel.org/pub/scm/linux/kernel/git/tytso/ext4.git for_linus This is the major set of updates meant for 2.6.24 from the ext4 team; these patches have been baking in -mm for a while. The two major features included here is the multi-block allocator

2.6.24-ext4-1 patchset released

2008-01-28 Thread Theodore Ts'o
I've just released 2.6.24-ext4-1. It's basically just a clean up of the stable patch series, in response to LKML review comments, in preparation for Linus to pull them into mainline. git://git.kernel.org/pub/scm/linux/kernel/git/tytso/ext4.git 2.6.24-ext4-1

Re: [RFC] Parallelize IO for e2fsck

2008-01-28 Thread david
On Mon, 28 Jan 2008, Theodore Tso wrote: On Mon, Jan 28, 2008 at 07:30:05PM +, Pavel Machek wrote: As user pages are always in highmem, this should be easy to decide: only send SIGDANGER when highmem is full. (Yes, there are inodes/dentries/file descriptors in lowmem, but I doubt apps