From: Al Viro Date: Mon, 23 Feb 2015 01:07:13 +0000 (-0500) Subject: kill struct filename.separate X-Git-Tag: omap-for-v4.1/fixes-rc1~155^2~26 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=fd2f7cb5bcac58b63717cd45366bff9a6ab961c6;p=pandora-kernel.git kill struct filename.separate just make const char iname[] the last member and compare name->name with name->iname instead of checking name->separate We need to make sure that out-of-line name doesn't end up allocated adjacent to struct filename refering to it; fortunately, it's easy to achieve - just allocate that struct filename with one byte in ->iname[], so that ->iname[0] will be inside the same object and thus have an address different from that of out-of-line name [spotted by Boqun Feng ] Signed-off-by: Al Viro --- Reading git-diff-tree failed