git://git.onelab.eu
/
linux-2.6.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Fix disk limit accounting for ext3 and ext4.
[linux-2.6.git]
/
fs
/
ext3
/
balloc.c
diff --git
a/fs/ext3/balloc.c
b/fs/ext3/balloc.c
index
fd75cf8
..
72e774f
100644
(file)
--- 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;
}
*errp = -EDQUOT;
return 0;
}
- if (DLIMIT_ALLOC_BLOCK(inode,
1
))
+ if (DLIMIT_ALLOC_BLOCK(inode,
num
))
goto out_dlimit;
sbi = EXT3_SB(sb);
goto out_dlimit;
sbi = EXT3_SB(sb);
@@
-1675,7
+1675,7
@@
io_error:
*errp = -EIO;
out:
if (!performed_allocation)
*errp = -EIO;
out:
if (!performed_allocation)
- DLIMIT_FREE_BLOCK(inode,
1
);
+ DLIMIT_FREE_BLOCK(inode,
*count
);
out_dlimit:
if (fatal) {
*errp = fatal;
out_dlimit:
if (fatal) {
*errp = fatal;