patch-2.2.4 linux/fs/sysv/inode.c

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

diff -u --recursive --new-file v2.2.3/linux/fs/sysv/inode.c linux/fs/sysv/inode.c
@@ -55,10 +55,8 @@
 }
 #endif
 
-void sysv_put_inode(struct inode *inode)
+static void sysv_delete_inode(struct inode *inode)
 {
-	if (inode->i_nlink)
-		return;
 	inode->i_size = 0;
 	sysv_truncate(inode);
 	sysv_free_inode(inode);
@@ -68,8 +66,8 @@
 static struct super_operations sysv_sops = {
 	sysv_read_inode,
 	sysv_write_inode,
-	sysv_put_inode,
-	NULL,			/* delete_inode */
+	NULL,			/* nothing special on put_inode() */
+	sysv_delete_inode,
 	sysv_notify_change,
 	sysv_put_super,
 	sysv_write_super,

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