]> pilppa.com Git - linux-2.6-omap-h63xx.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)
commit166348dd37a4baacfb6fe495954b56f56b116f0c
treeafb36ca25ec3bdbd4397a5b952bc78be1e5feff9
parent68629f29c6764c37ebdceec2f6bbef6637eaf420
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