lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite for Android: free password hash cracker in your pocket
[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Date:	Mon, 2 Jun 2008 12:21:47 +0530
From:	"Aneesh Kumar K.V" <aneesh.kumar@...ux.vnet.ibm.com>
To:	Mingming Cao <cmm@...ibm.com>
Cc:	linux-ext4@...r.kernel.org
Subject: Re: [RFC][PATCH 4/6] delalloc ENOSPC: avoid free blocks  double
	booking

On Sun, Jun 01, 2008 at 04:36:10PM -0700, Mingming Cao wrote:
> ext4: delalloc block reservation avoid double accounting
> 
> From: Mingming cao <cmm@...ibm.com>
> 
> Since fs free blocks counters are already reduced at the block reservation
> time, we need to let the underlying block allocation know to avoid
> decrease the free blocks counter again when real block allocation finished.
> 
> Signed-off-by: Mingming cao <cmm@...ibm.com>
> ---
>  fs/ext4/dir.c     |    3 ++-
>  fs/ext4/ext4.h    |    6 +++++-
>  fs/ext4/ext4_i.h  |    1 +
>  fs/ext4/extents.c |    2 +-
>  fs/ext4/inode.c   |   25 ++++++++++++++++++-------
>  fs/ext4/mballoc.c |   13 ++++++++++++-
>  fs/ext4/super.c   |    2 ++
>  7 files changed, 41 insertions(+), 11 deletions(-)
> 

I guess you would need a similar change for balloc.c 

-aneesh
--
To unsubscribe from this list: send the line "unsubscribe linux-ext4" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ