History

namei: allow nd_jump_link() to produce errors

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.

Aleksa Sarai committed 6 years ago

Commit 1bc82071 parent ce623f85 files · +17 −11Browse files

Showing the changes to include/linux (1 of 5 files). Show all

Unified · Split

include/linux/namei.h+1−1
@@ -69,7 +69,7 @@ extern int follow_up(struct path *); · 68 unmodified lines
6969 extern struct dentry *lock_rename(struct dentry *, struct dentry *);
7070 extern void unlock_rename(struct dentry *, struct dentry *);
7171
72−extern void nd_jump_link(struct path *path);
72+extern int __must_check nd_jump_link(struct path *path);
7373
7474 static inline void nd_terminate_link(void *name, size_t len, size_t maxlen)
7575 {

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t