ext4: Handle non empty on-disk orphan link
authorDmitry Monakhov <dmonakhov@openvz.org>
Tue, 2 Mar 2010 04:29:39 +0000 (23:29 -0500)
committerTheodore Ts'o <tytso@mit.edu>
Tue, 2 Mar 2010 04:29:39 +0000 (23:29 -0500)
In case of truncate errors we explicitly remove inode from in-core
orphan list via orphan_del(NULL, inode) without modifying the on-disk list.

But later on, the same inode may be inserted in the orphan list again
which will result the on-disk linked list getting corrupted.  If inode
i_dtime contains valid value, then skip on-disk list modification.

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

diff --cc fs/ext4/namei.c
Simple merge