From: Al Viro Date: Sat, 19 Dec 2009 15:10:39 +0000 (-0500) Subject: Fix f_flags/f_mode in case of lookup_instantiate_filp() from open(pathname, 3) X-Git-Tag: v2.6.33-rc2~23^2~3 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=482928d59db668b8d82a48717f78986d8cea72e9;p=pandora-kernel.git Fix f_flags/f_mode in case of lookup_instantiate_filp() from open(pathname, 3) Just set f_flags when shoving struct file into nameidata; don't postpone that until __dentry_open(). do_filp_open() has correct value; lookup_instantiate_filp() doesn't - we lose the difference between O_RDWR and 3 by that point. We still set .intent.open.flags, so no fs code needs to be changed. Signed-off-by: Al Viro --- Reading git-diff-tree failed