Skip to content
Commit 83f936c7 authored by Al Viro's avatar Al Viro
Browse files

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: default avatarAl Viro <viro@zeniv.linux.org.uk>
parent 0ccb2863
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment