vxfs_inode.c (0a1340c185734a57fbf4775927966ad4a1347b02) | vxfs_inode.c (8e18e2941c53416aa219708e7dcad21fb4bd6794) |
---|---|
1/* 2 * Copyright (c) 2000-2001 Christoph Hellwig. 3 * All rights reserved. 4 * 5 * Redistribution and use in source and binary forms, with or without 6 * modification, are permitted provided that the following conditions 7 * are met: 8 * 1. Redistributions of source code must retain the above copyright --- 229 unchanged lines hidden (view full) --- 238 ip->i_atime.tv_nsec = 0; 239 ip->i_ctime.tv_nsec = 0; 240 ip->i_mtime.tv_nsec = 0; 241 242 ip->i_blksize = PAGE_SIZE; 243 ip->i_blocks = vip->vii_blocks; 244 ip->i_generation = vip->vii_gen; 245 | 1/* 2 * Copyright (c) 2000-2001 Christoph Hellwig. 3 * All rights reserved. 4 * 5 * Redistribution and use in source and binary forms, with or without 6 * modification, are permitted provided that the following conditions 7 * are met: 8 * 1. Redistributions of source code must retain the above copyright --- 229 unchanged lines hidden (view full) --- 238 ip->i_atime.tv_nsec = 0; 239 ip->i_ctime.tv_nsec = 0; 240 ip->i_mtime.tv_nsec = 0; 241 242 ip->i_blksize = PAGE_SIZE; 243 ip->i_blocks = vip->vii_blocks; 244 ip->i_generation = vip->vii_gen; 245 |
246 ip->u.generic_ip = (void *)vip; | 246 ip->i_private = vip; |
247 248} 249 250/** 251 * vxfs_get_fake_inode - get fake inode structure 252 * @sbp: filesystem superblock 253 * @vip: fspriv inode 254 * --- 78 unchanged lines hidden (view full) --- 333 * 334 * Description: 335 * vxfs_clear_inode() is called on the final iput and frees the private 336 * inode area. 337 */ 338void 339vxfs_clear_inode(struct inode *ip) 340{ | 247 248} 249 250/** 251 * vxfs_get_fake_inode - get fake inode structure 252 * @sbp: filesystem superblock 253 * @vip: fspriv inode 254 * --- 78 unchanged lines hidden (view full) --- 333 * 334 * Description: 335 * vxfs_clear_inode() is called on the final iput and frees the private 336 * inode area. 337 */ 338void 339vxfs_clear_inode(struct inode *ip) 340{ |
341 kmem_cache_free(vxfs_inode_cachep, ip->u.generic_ip); | 341 kmem_cache_free(vxfs_inode_cachep, ip->i_private); |
342} | 342} |