ext4: make sure ext4_has_free_blocks returns 0 for ENOSPC
authorAneesh Kumar K.V <aneesh.kumar@linux.vnet.ibm.com>
Wed, 20 Aug 2008 01:16:54 +0000 (21:16 -0400)
committerTheodore Ts'o <tytso@mit.edu>
Wed, 20 Aug 2008 01:16:54 +0000 (21:16 -0400)
commit16eb72956496594d023a7d7cd14a86404ad195ad
tree1fed199d788b33be4b329a58e5b6946f41ee6a20
parent525f4ed8dcb72c71b306a78ecbf06f41d08fe441
ext4: make sure ext4_has_free_blocks returns 0 for ENOSPC

Fix ext4_has_free_blocks() to return 0 when we don't have enough space.

Signed-off-by: Aneesh Kumar K.V <aneesh.kumar@linux.vnet.ibm.com>
Signed-off-by: Mingming Cao <cmm@us.ibm.com>
Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
fs/ext4/balloc.c