Skip to content

Commit 7813b94

Browse files
committed
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>
1 parent 206b1d0 commit 7813b94

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

fs/namei.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1267,7 +1267,7 @@ static void terminate_walk(struct nameidata *nd)
12671267
* so we keep a cache of "no, this doesn't need follow_link"
12681268
* for the common case.
12691269
*/
1270-
static inline int do_follow_link(struct inode *inode, int follow)
1270+
static inline int should_follow_link(struct inode *inode, int follow)
12711271
{
12721272
if (unlikely(!(inode->i_opflags & IOP_NOFOLLOW))) {
12731273
if (likely(inode->i_op->follow_link))
@@ -1303,7 +1303,7 @@ static inline int walk_component(struct nameidata *nd, struct path *path,
13031303
terminate_walk(nd);
13041304
return -ENOENT;
13051305
}
1306-
if (do_follow_link(inode, follow)) {
1306+
if (should_follow_link(inode, follow)) {
13071307
if (nd->flags & LOOKUP_RCU) {
13081308
if (unlikely(unlazy_walk(nd, path->dentry))) {
13091309
terminate_walk(nd);

0 commit comments

Comments
 (0)