diff options
-rw-r--r-- | fs/bfs/dir.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/fs/bfs/dir.c b/fs/bfs/dir.c index 08063ae0a17c..7a8182770649 100644 --- a/fs/bfs/dir.c +++ b/fs/bfs/dir.c | |||
@@ -86,7 +86,7 @@ static int bfs_create(struct inode *dir, struct dentry *dentry, umode_t mode, | |||
86 | 86 | ||
87 | inode = new_inode(s); | 87 | inode = new_inode(s); |
88 | if (!inode) | 88 | if (!inode) |
89 | return -ENOSPC; | 89 | return -ENOMEM; |
90 | mutex_lock(&info->bfs_lock); | 90 | mutex_lock(&info->bfs_lock); |
91 | ino = find_first_zero_bit(info->si_imap, info->si_lasti + 1); | 91 | ino = find_first_zero_bit(info->si_imap, info->si_lasti + 1); |
92 | if (ino > info->si_lasti) { | 92 | if (ino > info->si_lasti) { |
@@ -293,7 +293,7 @@ static int bfs_add_entry(struct inode *dir, const unsigned char *name, | |||
293 | for (block = sblock; block <= eblock; block++) { | 293 | for (block = sblock; block <= eblock; block++) { |
294 | bh = sb_bread(dir->i_sb, block); | 294 | bh = sb_bread(dir->i_sb, block); |
295 | if (!bh) | 295 | if (!bh) |
296 | return -ENOSPC; | 296 | return -EIO; |
297 | for (off = 0; off < BFS_BSIZE; off += BFS_DIRENT_SIZE) { | 297 | for (off = 0; off < BFS_BSIZE; off += BFS_DIRENT_SIZE) { |
298 | de = (struct bfs_dirent *)(bh->b_data + off); | 298 | de = (struct bfs_dirent *)(bh->b_data + off); |
299 | if (!de->ino) { | 299 | if (!de->ino) { |