X-Git-Url: http://git.onelab.eu/?a=blobdiff_plain;f=fs%2Fext3%2Fballoc.c;h=72e774f8ba7f2cb80dff9621657cffe35ccba369;hb=fc03ebed5ae638d12ddc5aa5479c8d05ef67a3f7;hp=fd75cf8f7181e29ff1b0c78b48afa05e3d72539e;hpb=2198dfa3c6db25b9ba5f67d3080869b8d37fb60e;p=linux-2.6.git diff --git a/fs/ext3/balloc.c b/fs/ext3/balloc.c index fd75cf8f7..72e774f8b 100644 --- a/fs/ext3/balloc.c +++ b/fs/ext3/balloc.c @@ -1463,7 +1463,7 @@ ext3_fsblk_t ext3_new_blocks(handle_t *handle, struct inode *inode, *errp = -EDQUOT; return 0; } - if (DLIMIT_ALLOC_BLOCK(inode, 1)) + if (DLIMIT_ALLOC_BLOCK(inode, num)) goto out_dlimit; sbi = EXT3_SB(sb); @@ -1675,7 +1675,7 @@ io_error: *errp = -EIO; out: if (!performed_allocation) - DLIMIT_FREE_BLOCK(inode, 1); + DLIMIT_FREE_BLOCK(inode, *count); out_dlimit: if (fatal) { *errp = fatal;