|
@@ -358,14 +358,11 @@ static void dentry_unlink_inode(struct dentry * dentry)
|
|
|
__releases(dentry->d_inode->i_lock)
|
|
|
{
|
|
|
struct inode *inode = dentry->d_inode;
|
|
|
- bool hashed = !d_unhashed(dentry);
|
|
|
|
|
|
- if (hashed)
|
|
|
- raw_write_seqcount_begin(&dentry->d_seq);
|
|
|
+ raw_write_seqcount_begin(&dentry->d_seq);
|
|
|
__d_clear_type_and_inode(dentry);
|
|
|
hlist_del_init(&dentry->d_u.d_alias);
|
|
|
- if (hashed)
|
|
|
- raw_write_seqcount_end(&dentry->d_seq);
|
|
|
+ raw_write_seqcount_end(&dentry->d_seq);
|
|
|
spin_unlock(&dentry->d_lock);
|
|
|
spin_unlock(&inode->i_lock);
|
|
|
if (!inode->i_nlink)
|