diff options
Diffstat (limited to 'fs/ufs')
-rw-r--r-- | fs/ufs/namei.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/fs/ufs/namei.c b/fs/ufs/namei.c index 29309e2..3a769d5 100644 --- a/fs/ufs/namei.c +++ b/fs/ufs/namei.c @@ -258,6 +258,8 @@ static int ufs_rmdir (struct inode * dir, struct dentry *dentry) struct inode * inode = dentry->d_inode; int err= -ENOTEMPTY; + dentry_unhash(dentry); + lock_ufs(dir->i_sb); if (ufs_empty_dir (inode)) { err = ufs_unlink(dir, dentry); |