]> git.baikalelectronics.ru Git - kernel.git/commit
ext4: fix error handling in migrate
authorDmitry Monakhov <dmonakhov@openvz.org>
Tue, 2 Mar 2010 04:14:36 +0000 (23:14 -0500)
committerTheodore Ts'o <tytso@mit.edu>
Tue, 2 Mar 2010 04:14:36 +0000 (23:14 -0500)
commitc68bc94e5c9f4066cf9c1db3b7b4feb6b17f9b28
tree721c46882dadb0ca8d3a4ab7d42e58f9eeead2da
parentcddbce6396b0ea44ccab945a842ee7deb9b7f0bb
ext4: fix error handling in migrate

Set i_nlink to zero for temporary inode from very beginning.
otherwise we may fail to start new journal handle and this
inode will be unreferenced but with i_nlink == 1
Since we hold inode reference it can not be pruned.

Also add missed journal_start retval check.

Signed-off-by: Dmitry Monakhov <dmonakhov@openvz.org>
Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
fs/ext4/migrate.c