]> git.baikalelectronics.ru Git - kernel.git/commit
ext3: retry failed direct IO allocations
authorEric Sandeen <sandeen@redhat.com>
Tue, 13 Oct 2009 02:34:27 +0000 (21:34 -0500)
committerJan Kara <jack@suse.cz>
Wed, 11 Nov 2009 14:22:49 +0000 (15:22 +0100)
commita37278c066ac892c83eb22c5a986df5c3eaf4714
tree9736ef15e0250810f204bfb8d6987bd71eeba111
parent35c6aa893fa9027f0e09c3f43200beda6dba21dd
ext3: retry failed direct IO allocations

On a 256M 4k block filesystem, doing this in a loop:

    dd if=/dev/zero of=test oflag=direct bs=1M count=64
    rm -f test

eventually leads to spurious ENOSPC:

    dd: writing `test': No space left on device

As with other block allocation callers, it looks like we need to
potentially retry the allocations on the initial ENOSPC.

A similar patch went into ext4 (commit
50c734b6e5baf2f3749f9f947475caf88f5cb22d)

Signed-off-by: Eric Sandeen <sandeen@redhat.com>
Signed-off-by: Jan Kara <jack@suse.cz>
fs/ext3/inode.c