Skip to content
Commit 1deb46e2 authored by Oleg Nesterov's avatar Oleg Nesterov Committed by Al Viro
Browse files

fs: factor out common code in fget() and fget_raw()



Apart from FMODE_PATH check fget() and fget_raw() are identical,
shift the code into the new simple helper, __fget(fd, mask). Saves
160 bytes.

Signed-off-by: default avatarOleg Nesterov <oleg@redhat.com>
Signed-off-by: default avatarAl Viro <viro@zeniv.linux.org.uk>
parent ce08b62d
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