fs: Don't bother filesystems without link support with additional stat() calls
In __canonicalize_path() we only call stat() to know if the path
is a link or not. When the filesystem doesn't support links we
already know that it's not a link, so we do not need to call stat().
This helps the tftp filesystem since the parent directories of
a file to be opened won't be stat()ed anymore, something tftp
does not support.

Fixes: a602bebc fs: Implement links to directories

Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
1 parent eed363f commit d79a81736f64eef5d19396ad04ee9391bc384a8e
@Sascha Hauer Sascha Hauer authored on 5 Sep 2017
Showing 1 changed file
View
fs/fs.c