From: Al Viro Date: Fri, 14 Mar 2014 16:02:47 +0000 (-0400) Subject: mark struct file that had write access grabbed by open() X-Git-Tag: v3.15-rc1~16^2~53 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=83f936c75e3689a63253d89c47a4d239c56d7410;p=pandora-kernel.git mark struct file that had write access grabbed by open() new flag in ->f_mode - FMODE_WRITER. Set by do_dentry_open() in case when it has grabbed write access, checked by __fput() to decide whether it wants to drop the sucker. Allows to stop bothering with mnt_clone_write() in alloc_file(), along with fewer special_file() checks. Signed-off-by: Al Viro --- Reading git-diff-tree failed