diff options
author | Dmitry Monakhov <dmonakhov@openvz.org> | 2011-10-20 20:07:23 -0400 |
---|---|---|
committer | Theodore Ts'o <tytso@mit.edu> | 2011-10-20 20:07:23 -0400 |
commit | 45dc63e7d8412546567399b94caeb683af58843e (patch) | |
tree | 62362154d15ef26f8fe0d206004b2b6e247e3c79 /fs/ext4 | |
parent | 8de49e674a1133ab8998914a6e933ceb4b5f4b07 (diff) |
ext4: Allow quota file use root reservation
Quota file is fs's metadata, so it is reasonable to permit use
root resevation if necessary. This patch fix 265'th xfstest failure
Signed-off-by: Dmitry Monakhov <dmonakhov@openvz.org>
Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
Diffstat (limited to 'fs/ext4')
-rw-r--r-- | fs/ext4/mballoc.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/fs/ext4/mballoc.c b/fs/ext4/mballoc.c index 8c005c028203..cd70b3041185 100644 --- a/fs/ext4/mballoc.c +++ b/fs/ext4/mballoc.c | |||
@@ -4291,6 +4291,10 @@ ext4_fsblk_t ext4_mb_new_blocks(handle_t *handle, | |||
4291 | 4291 | ||
4292 | trace_ext4_request_blocks(ar); | 4292 | trace_ext4_request_blocks(ar); |
4293 | 4293 | ||
4294 | /* Allow to use superuser reservation for quota file */ | ||
4295 | if (IS_NOQUOTA(ar->inode)) | ||
4296 | ar->flags |= EXT4_MB_USE_ROOT_BLOCKS; | ||
4297 | |||
4294 | /* | 4298 | /* |
4295 | * For delayed allocation, we could skip the ENOSPC and | 4299 | * For delayed allocation, we could skip the ENOSPC and |
4296 | * EDQUOT check, as blocks and quotas have been already | 4300 | * EDQUOT check, as blocks and quotas have been already |