summaryrefslogtreecommitdiffstats
path: root/fs/ufs/namei.c
diff options
context:
space:
mode:
authorRalf Baechle <ralf@linux-mips.org>2000-04-28 01:09:25 +0000
committerRalf Baechle <ralf@linux-mips.org>2000-04-28 01:09:25 +0000
commitb9ba7aeb165cffecdffb60aec8c3fa8d590d9ca9 (patch)
tree42d07b0c7246ae2536a702e7c5de9e2732341116 /fs/ufs/namei.c
parent7406b0a326f2d70ade2671c37d1beef62249db97 (diff)
Merge with 2.3.99-pre6.
Diffstat (limited to 'fs/ufs/namei.c')
-rw-r--r--fs/ufs/namei.c10
1 files changed, 0 insertions, 10 deletions
diff --git a/fs/ufs/namei.c b/fs/ufs/namei.c
index a36a6c3af..c60fcbcdb 100644
--- a/fs/ufs/namei.c
+++ b/fs/ufs/namei.c
@@ -240,8 +240,6 @@ static struct buffer_head * ufs_add_entry (struct inode * dir,
*err = -EINVAL;
*res_dir = NULL;
- if (!dir || !dir->i_nlink)
- return NULL;
sb = dir->i_sb;
flags = sb->u.ufs_sb.s_flags;
@@ -250,14 +248,6 @@ static struct buffer_head * ufs_add_entry (struct inode * dir,
if (!namelen)
return NULL;
- /*
- * Is this a busy deleted directory? Can't create new files if so
- */
- if (dir->i_size == 0)
- {
- *err = -ENOENT;
- return NULL;
- }
bh = ufs_bread (dir, 0, 0, err);
if (!bh)
return NULL;