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

fs: factor out common code in fget_light() and fget_raw_light()



Apart from FMODE_PATH check fget_light() and fget_raw_light() are
identical, shift the code into the new helper, __fget_light(fd, mask).
Saves 208 bytes.

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