OpenVZ Forum


Home » Mailing lists » Devel » [PATCH 0/3] ext4: Extent code cleanup
Re: [PATCH 1/3] ext4 block reservation fix3 [message #14505 is a reply to message #14328] Mon, 25 June 2007 11:35 Go to previous messageGo to previous message
Alex Tomas is currently offline  Alex Tomas
Messages: 3
Registered: June 2007
Junior Member
Acked-off-by: Alex Tomas <alex@clusterfs.com>

thanks, Alex

Dmitry Monakhov wrote:
> If ext4_reserve_block has failed we have to drop quota.
>
> Signed-off-by: Dmitry Monakhov <dmonakhov@openvz.org>
> ---
> fs/ext4/balloc.c | 2 +-
> 1 files changed, 1 insertions(+), 1 deletions(-)
>
> diff --git a/fs/ext4/balloc.c b/fs/ext4/balloc.c
> index a9655f1..eacffd3 100644
> --- a/fs/ext4/balloc.c
> +++ b/fs/ext4/balloc.c
> @@ -1467,7 +1467,7 @@ ext4_fsblk_t ext4_new_blocks(handle_t *handle, struct inode *inode,
> if (!(EXT4_I(inode)->i_state & EXT4_STATE_BLOCKS_RESERVED)) {
> *errp = ext4_reserve_blocks(sb, num);
> if (*errp)
> - return 0;
> + goto out;
> reserved = num;
> }
>
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Vzctl set --userwasswd question
Next Topic: [PATCH -mm 2/2] x86_64: semi-rewrite of PTRACE_PEEKUSR, PTRACE_POKEUSR
Goto Forum:
  


Current Time: Sun Nov 17 07:30:29 GMT 2024

Total time taken to generate the page: 0.02857 seconds