projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
89596f2
)
autofs4: remove unneeded null check in try_to_fill_dentry()
author
Dan Carpenter
<
[email protected]
>
Wed, 11 Aug 2010 01:02:04 +0000
(18:02 -0700)
committer
Linus Torvalds
<
[email protected]
>
Wed, 11 Aug 2010 15:59:06 +0000
(08:59 -0700)
After
97e7449a7ad
: "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 <
[email protected]
>
Cc: Ian Kent <
[email protected]
>
Cc: Al Viro <
[email protected]
>
Signed-off-by: Andrew Morton <
[email protected]
>
Signed-off-by: Linus Torvalds <
[email protected]
>
fs/autofs4/root.c
patch
|
blob
|
history
diff --git
a/fs/autofs4/root.c
b/fs/autofs4/root.c
index 48e056e70fd6be807bb40655e6009656d1744eb4..cb1bd38dc08cb10c47650e1e08c2a8fe13730ab2 100644
(file)
--- a/
fs/autofs4/root.c
+++ b/
fs/autofs4/root.c
@@
-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;