aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--fs/dcache.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/dcache.c b/fs/dcache.c
index 16521a9f2038..fbee67b92651 100644
--- a/fs/dcache.c
+++ b/fs/dcache.c
@@ -2109,7 +2109,7 @@ again:
2109 inode = dentry->d_inode; 2109 inode = dentry->d_inode;
2110 isdir = S_ISDIR(inode->i_mode); 2110 isdir = S_ISDIR(inode->i_mode);
2111 if (dentry->d_count == 1) { 2111 if (dentry->d_count == 1) {
2112 if (inode && !spin_trylock(&inode->i_lock)) { 2112 if (!spin_trylock(&inode->i_lock)) {
2113 spin_unlock(&dentry->d_lock); 2113 spin_unlock(&dentry->d_lock);
2114 cpu_relax(); 2114 cpu_relax();
2115 goto again; 2115 goto again;