patch-2.1.45 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
- Lines: 38
- Date:
Wed Jul 16 19:22:51 1997
- Orig file:
v2.1.44/linux/fs/affs/inode.c
- Orig date:
Mon Jun 16 16:35:56 1997
diff -u --recursive --new-file v2.1.44/linux/fs/affs/inode.c linux/fs/affs/inode.c
@@ -691,7 +691,6 @@
inode->u.affs_i.i_pa_next = 0;
inode->u.affs_i.i_pa_last = 0;
inode->u.affs_i.i_ec = NULL;
- inode->u.affs_i.i_cache_users = 0;
inode->u.affs_i.i_lastblock = -1;
inode->i_nlink = 1;
inode->i_mode = 0;
@@ -870,6 +869,12 @@
affs_put_inode(struct inode *inode)
{
pr_debug("AFFS: put_inode(ino=%lu, nlink=%u)\n",inode->i_ino,inode->i_nlink);
+ lock_super(inode->i_sb);
+ if (inode->u.affs_i.i_ec) {
+ free_page((unsigned long)inode->u.affs_i.i_ec);
+ inode->u.affs_i.i_ec = NULL;
+ }
+ unlock_super(inode->i_sb);
if (inode->i_nlink) {
return;
}
@@ -899,7 +904,7 @@
return NULL;
}
- atomic_set(&inode->i_count, 1);
+ inode->i_count = 1;
inode->i_nlink = 1;
inode->i_dev = sb->s_dev;
inode->i_uid = current->fsuid;
@@ -921,7 +926,6 @@
inode->u.affs_i.i_pa_next = 0;
inode->u.affs_i.i_pa_last = 0;
inode->u.affs_i.i_ec = NULL;
- inode->u.affs_i.i_cache_users = 0;
inode->u.affs_i.i_lastblock = -1;
insert_inode_hash(inode);
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen, slshen@lbl.gov