inode.c (c3bdd5e65185f46150b3bac103b3854040487857) | inode.c (79ddbfa500b37a94fa7501e65ebdd5c0e4c7592d) |
---|---|
1/* 2 * Copyright (c) 2002 Red Hat, Inc. All rights reserved. 3 * 4 * This software may be freely redistributed under the terms of the 5 * GNU General Public License. 6 * 7 * You should have received a copy of the GNU General Public License 8 * along with this program; if not, write to the Free Software --- 202 unchanged lines hidden (view full) --- 211 inode->i_op = &afs_dynroot_inode_operations; 212 inode->i_fop = &afs_dynroot_file_operations; 213 } else { 214 inode->i_op = &afs_autocell_inode_operations; 215 } 216 set_nlink(inode, 2); 217 inode->i_uid = GLOBAL_ROOT_UID; 218 inode->i_gid = GLOBAL_ROOT_GID; | 1/* 2 * Copyright (c) 2002 Red Hat, Inc. All rights reserved. 3 * 4 * This software may be freely redistributed under the terms of the 5 * GNU General Public License. 6 * 7 * You should have received a copy of the GNU General Public License 8 * along with this program; if not, write to the Free Software --- 202 unchanged lines hidden (view full) --- 211 inode->i_op = &afs_dynroot_inode_operations; 212 inode->i_fop = &afs_dynroot_file_operations; 213 } else { 214 inode->i_op = &afs_autocell_inode_operations; 215 } 216 set_nlink(inode, 2); 217 inode->i_uid = GLOBAL_ROOT_UID; 218 inode->i_gid = GLOBAL_ROOT_GID; |
219 inode->i_ctime.tv_sec = get_seconds(); 220 inode->i_ctime.tv_nsec = 0; 221 inode->i_atime = inode->i_mtime = inode->i_ctime; | 219 inode->i_ctime = inode->i_atime = inode->i_mtime = current_time(inode); |
222 inode->i_blocks = 0; 223 inode_set_iversion_raw(inode, 0); 224 inode->i_generation = 0; 225 226 set_bit(AFS_VNODE_PSEUDODIR, &vnode->flags); 227 if (!root) { 228 set_bit(AFS_VNODE_MOUNTPOINT, &vnode->flags); 229 inode->i_flags |= S_AUTOMOUNT; --- 310 unchanged lines hidden (view full) --- 540 aux.data_version = vnode->status.data_version; 541 fscache_relinquish_cookie(vnode->cache, &aux, 542 test_bit(AFS_VNODE_DELETED, &vnode->flags)); 543 vnode->cache = NULL; 544 } 545#endif 546 547 afs_put_permits(rcu_access_pointer(vnode->permit_cache)); | 220 inode->i_blocks = 0; 221 inode_set_iversion_raw(inode, 0); 222 inode->i_generation = 0; 223 224 set_bit(AFS_VNODE_PSEUDODIR, &vnode->flags); 225 if (!root) { 226 set_bit(AFS_VNODE_MOUNTPOINT, &vnode->flags); 227 inode->i_flags |= S_AUTOMOUNT; --- 310 unchanged lines hidden (view full) --- 538 aux.data_version = vnode->status.data_version; 539 fscache_relinquish_cookie(vnode->cache, &aux, 540 test_bit(AFS_VNODE_DELETED, &vnode->flags)); 541 vnode->cache = NULL; 542 } 543#endif 544 545 afs_put_permits(rcu_access_pointer(vnode->permit_cache)); |
546 key_put(vnode->silly_key); 547 vnode->silly_key = NULL; |
|
548 key_put(vnode->lock_key); 549 vnode->lock_key = NULL; 550 _leave(""); 551} 552 553/* 554 * set the attributes of an inode 555 */ --- 50 unchanged lines hidden --- | 548 key_put(vnode->lock_key); 549 vnode->lock_key = NULL; 550 _leave(""); 551} 552 553/* 554 * set the attributes of an inode 555 */ --- 50 unchanged lines hidden --- |