From b955cf9c00c387f15234f89d82085ce44f6fc11a Mon Sep 17 00:00:00 2001 From: Dmitry Monakhov Date: Thu, 20 Oct 2011 20:07:23 -0400 Subject: [PATCH] --- yaml --- r: 273148 b: refs/heads/master c: 45dc63e7d8412546567399b94caeb683af58843e h: refs/heads/master v: v3 --- [refs] | 2 +- trunk/fs/ext4/mballoc.c | 4 ++++ 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/[refs] b/[refs] index 40fcab4af0d3..eae684c4b39d 100644 --- a/[refs] +++ b/[refs] @@ -1,2 +1,2 @@ --- -refs/heads/master: 8de49e674a1133ab8998914a6e933ceb4b5f4b07 +refs/heads/master: 45dc63e7d8412546567399b94caeb683af58843e diff --git a/trunk/fs/ext4/mballoc.c b/trunk/fs/ext4/mballoc.c index 8c005c028203..cd70b3041185 100644 --- a/trunk/fs/ext4/mballoc.c +++ b/trunk/fs/ext4/mballoc.c @@ -4291,6 +4291,10 @@ ext4_fsblk_t ext4_mb_new_blocks(handle_t *handle, trace_ext4_request_blocks(ar); + /* Allow to use superuser reservation for quota file */ + if (IS_NOQUOTA(ar->inode)) + ar->flags |= EXT4_MB_USE_ROOT_BLOCKS; + /* * For delayed allocation, we could skip the ENOSPC and * EDQUOT check, as blocks and quotas have been already