patch-1.3.48 linux/fs/inode.c

Next file: linux/fs/msdos/file.c
Previous file: linux/fs/hpfs/hpfs_fs.c
Back to the patch index
Back to the overall index

diff -u --recursive --new-file v1.3.47/linux/fs/inode.c linux/fs/inode.c
@@ -150,7 +150,7 @@
 
 	wait_on_inode(inode);
 	if (IS_WRITABLE(inode)) {
-		if (inode->i_sb->dq_op)
+		if (inode->i_sb && inode->i_sb->dq_op)
 			inode->i_sb->dq_op->drop(inode);
 	}
 	remove_inode_hash(inode);
@@ -415,7 +415,7 @@
 
 	inode->i_count--;
 	if (IS_WRITABLE(inode)) {
-		if (inode->i_sb->dq_op)
+		if (inode->i_sb && inode->i_sb->dq_op)
 			inode->i_sb->dq_op->drop(inode);
 	}
 
@@ -540,6 +540,7 @@
 	inode->i_sb = sb;
 	inode->i_dev = sb->s_dev;
 	inode->i_ino = nr;
+	inode->i_flags = sb->s_flags;
 	put_last_free(inode);
 	insert_inode_hash(inode);
 	read_inode(inode);

FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen, slshen@lbl.gov with Sam's (original) version
of this