From: Al Viro Date: Wed, 16 Dec 2009 08:54:00 +0000 (-0500) Subject: O_TRUNC open shouldn't fail after file truncation X-Git-Tag: v2.6.33-rc1~49^2~11 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=7715b521222b6ebb6e927fa261ed91ed687fe454;p=pandora-kernel.git O_TRUNC open shouldn't fail after file truncation * take truncate logics into a helper (handle_truncate()) * rip it out of may_open() * call it from the only caller of may_open() that might pass O_TRUNC * and do that after we'd finished with opening. Signed-off-by: Al Viro --- Reading git-diff-tree failed