mark struct file that had write access grabbed by open()
authorAl Viro <viro@zeniv.linux.org.uk>
Fri, 14 Mar 2014 16:02:47 +0000 (12:02 -0400)
committerAl Viro <viro@zeniv.linux.org.uk>
Wed, 2 Apr 2014 03:19:12 +0000 (23:19 -0400)
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 <viro@zeniv.linux.org.uk>

No differences found