In preparation for LOOKUP_NO_MAGICLINKS, it's necessary to add the ability for nd_jump_link() to return an error which the corresponding get_link() caller must propogate back up to the VFS.
Showing the changes to include/linux (1 of 5 files). Show all
Unified · Split
| @@ -69,7 +69,7 @@ extern int follow_up(struct path *); · 68 unmodified lines | ||
| 69 | 69 | extern struct dentry *lock_rename(struct dentry *, struct dentry *); |
| 70 | 70 | extern void unlock_rename(struct dentry *, struct dentry *); |
| 71 | 71 | |
| 72 | −extern void nd_jump_link(struct path *path); | |
| 72 | +extern int __must_check nd_jump_link(struct path *path); | |
| 73 | 73 | |
| 74 | 74 | static inline void nd_terminate_link(void *name, size_t len, size_t maxlen) |
| 75 | 75 | { |