Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

vfs: rename 'do_follow_link' to 'should_follow_link'

Al points out that the do_follow_link() helper function really is
misnamed - it's about whether we should try to follow a symlink or not,
not about actually doing the following.

Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>

+2 -2
+2 -2
fs/namei.c
··· 1267 1267 * so we keep a cache of "no, this doesn't need follow_link" 1268 1268 * for the common case. 1269 1269 */ 1270 - static inline int do_follow_link(struct inode *inode, int follow) 1270 + static inline int should_follow_link(struct inode *inode, int follow) 1271 1271 { 1272 1272 if (unlikely(!(inode->i_opflags & IOP_NOFOLLOW))) { 1273 1273 if (likely(inode->i_op->follow_link)) ··· 1303 1303 terminate_walk(nd); 1304 1304 return -ENOENT; 1305 1305 } 1306 - if (do_follow_link(inode, follow)) { 1306 + if (should_follow_link(inode, follow)) { 1307 1307 if (nd->flags & LOOKUP_RCU) { 1308 1308 if (unlikely(unlazy_walk(nd, path->dentry))) { 1309 1309 terminate_walk(nd);