From: Joseph Qi Date: Wed, 24 Jun 2015 23:54:59 +0000 (-0700) Subject: ocfs2: fix a tiny race when truncate dio orohaned entry X-Git-Tag: omap-for-v4.2/fixes-rc1^2~125^2~83 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=cf1776a9e834400ed8e2fea48ffa6daa9da28446;p=pandora-kernel.git ocfs2: fix a tiny race when truncate dio orohaned entry Once dio crashed it will leave an entry in orphan dir. And orphan scan will take care of the clean up. There is a tiny race case that the same entry will be truncated twice and then trigger the BUG in ocfs2_del_inode_from_orphan. Signed-off-by: Joseph Qi Cc: Mark Fasheh Cc: Joel Becker Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds --- Reading git-diff-tree failed