patch-2.1.101 linux/fs/affs/inode.c

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

diff -u --recursive --new-file v2.1.100/linux/fs/affs/inode.c linux/fs/affs/inode.c
@@ -255,6 +255,8 @@
 {
 	pr_debug("AFFS: put_inode(ino=%lu, nlink=%u)\n",
 		inode->i_ino,inode->i_nlink);
+
+	affs_free_prealloc(inode);
 	if (inode->i_count == 1) {
 		unsigned long cache_page = (unsigned long) inode->u.affs_i.i_ec;
 		if (cache_page) {
@@ -323,6 +325,11 @@
 
 	return inode;
 }
+
+/*
+ * Add an entry to a directory. Create the header block
+ * and insert it into the hash table.
+ */
 
 int
 affs_add_entry(struct inode *dir, struct inode *link, struct inode *inode,

FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen, slshen@lbl.gov