]> git.baikalelectronics.ru Git - kernel.git/commit
ext4: Don't add the inode to journal handle until after the block is allocated
authorAneesh Kumar K.V <aneesh.kumar@linux.vnet.ibm.com>
Tue, 9 Sep 2008 03:08:40 +0000 (23:08 -0400)
committerTheodore Ts'o <tytso@mit.edu>
Tue, 9 Sep 2008 03:08:40 +0000 (23:08 -0400)
commit2df10e516ca9a4e5861401929be362631ff19e92
treeafb36ca25ec3bdbd4397a5b952bc78be1e5feff9
parentf62c899bf71a10df824ae19cb491ce9e9ab4abb6
ext4: Don't add the inode to journal handle until after the block is allocated

Make sure we don't add the inode to the journal handle until after the
block allocation, so that a journal commit will not include the inode in
case of block allocation failure.

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
fs/ext4/inode.c