patch-2.4.0-test11 linux/fs/ntfs/fs.c

Next file: linux/fs/ntfs/inode.c
Previous file: linux/fs/nfsd/vfs.c
Back to the patch index
Back to the overall index

diff -u --recursive --new-file v2.4.0-test10/linux/fs/ntfs/fs.c linux/fs/ntfs/fs.c
@@ -428,7 +428,7 @@
 	int error=0;
 	ntfs_attribute *si;
 
-	r=get_empty_inode();
+	r=new_inode(dir->i_sb);
 	if(!r){
 		error=ENOMEM;
 		goto fail;
@@ -456,8 +456,6 @@
 
 	r->i_uid=vol->uid;
 	r->i_gid=vol->gid;
-	r->i_nlink=1;
-	r->i_sb=dir->i_sb;
 	/* FIXME: dirty? dev? */
 	/* get the file modification times from the standard information */
 	si=ntfs_find_attr(ino,vol->at_standard_information,NULL);
@@ -502,7 +500,7 @@
 		goto out;
 
 	error = EIO;
-	r = get_empty_inode();
+	r = new_inode(dir->i_sb);
 	if (!r)
 		goto out;
 	
@@ -522,8 +520,6 @@
 		goto out;
 	r->i_uid = vol->uid;
 	r->i_gid = vol->gid;
-	r->i_nlink = 1;
-	r->i_sb = dir->i_sb;
 	si = ntfs_find_attr(ino,vol->at_standard_information,NULL);
 	if(si){
 		char *attr = si->d.data;

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