diff options
author | Joseph Qi <joseph.qi@huawei.com> | 2016-01-14 15:17:44 -0800 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2016-01-14 16:00:49 -0800 |
commit | 074a6c655f6da12cb1123c8a84bfd8d781138800 (patch) | |
tree | 7bbf87539b2a54193f76148a1e1454357fc1bdb9 /tools/laptop | |
parent | 32e493265b2be96404aaa478fb2913be29b06887 (diff) | |
download | linux-074a6c655f6da12cb1123c8a84bfd8d781138800.tar.gz linux-074a6c655f6da12cb1123c8a84bfd8d781138800.tar.bz2 linux-074a6c655f6da12cb1123c8a84bfd8d781138800.zip |
ocfs2: access orphan dinode before delete entry in ocfs2_orphan_del
In ocfs2_orphan_del, currently it finds and deletes entry first, and
then access orphan dir dinode. This will have a problem once
ocfs2_journal_access_di fails. In this case, entry will be removed from
orphan dir, but in deed the inode hasn't been deleted successfully. In
other words, the file is missing but not actually deleted. So we should
access orphan dinode first like unlink and rename.
Signed-off-by: Joseph Qi <joseph.qi@huawei.com>
Reviewed-by: Jiufei Xue <xuejiufei@huawei.com>
Cc: Mark Fasheh <mfasheh@suse.de>
Cc: Joel Becker <jlbec@evilplan.org>
Reviewed-by: Junxiao Bi <junxiao.bi@oracle.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'tools/laptop')
0 files changed, 0 insertions, 0 deletions