]> git.baikalelectronics.ru Git - kernel.git/commit
ext4: Don't leave behind a half-created inode if ext4_mkdir() fails
authorAneesh Kumar K.V <aneesh.kumar@linux.vnet.ibm.com>
Fri, 22 Feb 2008 11:17:31 +0000 (06:17 -0500)
committerTheodore Ts'o <tytso@mit.edu>
Fri, 22 Feb 2008 11:17:31 +0000 (06:17 -0500)
commit09f88ec2d800aa2bad12e17a9112f73d1f9f0e7e
tree6ef2159a06974e28bdff4426525ecdd052d7b57f
parenta10a3f3a195913ed43ae4ce49049bb04171b9977
ext4: Don't leave behind a half-created inode if ext4_mkdir() fails

If ext4_mkdir() fails to allocate the initial block for the directory,
don't leave behind a half-created directory inode with the link count
left at one.  This was caused by an inappropriate call to ext4_dec_count().

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/namei.c