Skip to content

Commit

Permalink
autofs4: remove unneeded null check in try_to_fill_dentry()
Browse files Browse the repository at this point in the history
After 97e7449: "autofs4: fix indirect mount pending expire race" we no
longer assumed that "ino" can be null.  The other null checks got removed
but this was one was missed.

Signed-off-by: Dan Carpenter <error27@gmail.com>
Cc: Ian Kent <raven@themaw.net>
Cc: Al Viro <viro@zeniv.linux.org.uk>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
  • Loading branch information
Dan Carpenter authored and Linus Torvalds committed Aug 11, 2010
1 parent 89596f2 commit 5fc79d8
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions fs/autofs4/root.c
Original file line number Diff line number Diff line change
Expand Up @@ -204,8 +204,7 @@ static int try_to_fill_dentry(struct dentry *dentry, int flags)
}

/* Initialize expiry counter after successful mount */
if (ino)
ino->last_used = jiffies;
ino->last_used = jiffies;

spin_lock(&sbi->fs_lock);
ino->flags &= ~AUTOFS_INF_PENDING;
Expand Down

0 comments on commit 5fc79d8

Please sign in to comment.