Loading fs/dcache.c +4 −7 Original line number Diff line number Diff line Loading @@ -500,8 +500,7 @@ static void __dentry_kill(struct dentry *dentry) * If ref is non-zero, then decrement the refcount too. * Returns dentry requiring refcount drop, or NULL if we're done. */ static struct dentry * dentry_kill(struct dentry *dentry, int unlock_on_failure) static struct dentry *dentry_kill(struct dentry *dentry) __releases(dentry->d_lock) { struct inode *inode = dentry->d_inode; Loading @@ -523,10 +522,8 @@ dentry_kill(struct dentry *dentry, int unlock_on_failure) return parent; failed: if (unlock_on_failure) { spin_unlock(&dentry->d_lock); cpu_relax(); } return dentry; /* try again with same dentry */ } Loading Loading @@ -615,7 +612,7 @@ void dput(struct dentry *dentry) return; kill_it: dentry = dentry_kill(dentry, 1); dentry = dentry_kill(dentry); if (dentry) goto repeat; } Loading Loading
fs/dcache.c +4 −7 Original line number Diff line number Diff line Loading @@ -500,8 +500,7 @@ static void __dentry_kill(struct dentry *dentry) * If ref is non-zero, then decrement the refcount too. * Returns dentry requiring refcount drop, or NULL if we're done. */ static struct dentry * dentry_kill(struct dentry *dentry, int unlock_on_failure) static struct dentry *dentry_kill(struct dentry *dentry) __releases(dentry->d_lock) { struct inode *inode = dentry->d_inode; Loading @@ -523,10 +522,8 @@ dentry_kill(struct dentry *dentry, int unlock_on_failure) return parent; failed: if (unlock_on_failure) { spin_unlock(&dentry->d_lock); cpu_relax(); } return dentry; /* try again with same dentry */ } Loading Loading @@ -615,7 +612,7 @@ void dput(struct dentry *dentry) return; kill_it: dentry = dentry_kill(dentry, 1); dentry = dentry_kill(dentry); if (dentry) goto repeat; } Loading