patch-2.4.0-test11 linux/fs/minix/bitmap.c

Next file: linux/fs/namei.c
Previous file: linux/fs/locks.c
Back to the patch index
Back to the overall index

diff -u --recursive --new-file v2.4.0-test10/linux/fs/minix/bitmap.c linux/fs/minix/bitmap.c
@@ -224,14 +224,12 @@
 	struct buffer_head * bh;
 	int i,j;
 
-	inode = get_empty_inode();
+	sb = dir->i_sb;
+	inode = new_inode(sb);
 	if (!inode) {
 		*error = -ENOMEM;
 		return NULL;
 	}
-	sb = dir->i_sb;
-	inode->i_sb = sb;
-	inode->i_flags = 0;
 	j = 8192;
 	bh = NULL;
 	*error = -ENOSPC;
@@ -259,8 +257,6 @@
 		unlock_super(sb);
 		return NULL;
 	}
-	inode->i_nlink = 1;
-	inode->i_dev = sb->s_dev;
 	inode->i_uid = current->fsuid;
 	inode->i_gid = (dir->i_mode & S_ISGID) ? dir->i_gid : current->fsgid;
 	inode->i_ino = j;

FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)