super.c (c3bdd5e65185f46150b3bac103b3854040487857) | super.c (79ddbfa500b37a94fa7501e65ebdd5c0e4c7592d) |
---|---|
1/* AFS superblock handling 2 * 3 * Copyright (c) 2002, 2007, 2018 Red Hat, Inc. All rights reserved. 4 * 5 * This software may be freely redistributed under the terms of the 6 * GNU General Public License. 7 * 8 * You should have received a copy of the GNU General Public License --- 31 unchanged lines hidden (view full) --- 40static const struct fs_parameter_description afs_fs_parameters; 41 42struct file_system_type afs_fs_type = { 43 .owner = THIS_MODULE, 44 .name = "afs", 45 .init_fs_context = afs_init_fs_context, 46 .parameters = &afs_fs_parameters, 47 .kill_sb = afs_kill_super, | 1/* AFS superblock handling 2 * 3 * Copyright (c) 2002, 2007, 2018 Red Hat, Inc. All rights reserved. 4 * 5 * This software may be freely redistributed under the terms of the 6 * GNU General Public License. 7 * 8 * You should have received a copy of the GNU General Public License --- 31 unchanged lines hidden (view full) --- 40static const struct fs_parameter_description afs_fs_parameters; 41 42struct file_system_type afs_fs_type = { 43 .owner = THIS_MODULE, 44 .name = "afs", 45 .init_fs_context = afs_init_fs_context, 46 .parameters = &afs_fs_parameters, 47 .kill_sb = afs_kill_super, |
48 .fs_flags = 0, | 48 .fs_flags = FS_RENAME_DOES_D_MOVE, |
49}; 50MODULE_ALIAS_FS("afs"); 51 52int afs_net_id; 53 54static const struct super_operations afs_super_ops = { 55 .statfs = afs_statfs, 56 .alloc_inode = afs_alloc_inode, --- 594 unchanged lines hidden (view full) --- 651#ifdef CONFIG_AFS_FSCACHE 652 vnode->cache = NULL; 653#endif 654 655 vnode->flags = 1 << AFS_VNODE_UNSET; 656 vnode->cb_type = 0; 657 vnode->lock_state = AFS_VNODE_LOCK_NONE; 658 | 49}; 50MODULE_ALIAS_FS("afs"); 51 52int afs_net_id; 53 54static const struct super_operations afs_super_ops = { 55 .statfs = afs_statfs, 56 .alloc_inode = afs_alloc_inode, --- 594 unchanged lines hidden (view full) --- 651#ifdef CONFIG_AFS_FSCACHE 652 vnode->cache = NULL; 653#endif 654 655 vnode->flags = 1 << AFS_VNODE_UNSET; 656 vnode->cb_type = 0; 657 vnode->lock_state = AFS_VNODE_LOCK_NONE; 658 |
659 init_rwsem(&vnode->rmdir_lock); 660 |
|
659 _leave(" = %p", &vnode->vfs_inode); 660 return &vnode->vfs_inode; 661} 662 663static void afs_i_callback(struct rcu_head *head) 664{ 665 struct inode *inode = container_of(head, struct inode, i_rcu); 666 struct afs_vnode *vnode = AFS_FS_I(inode); --- 72 unchanged lines hidden --- | 661 _leave(" = %p", &vnode->vfs_inode); 662 return &vnode->vfs_inode; 663} 664 665static void afs_i_callback(struct rcu_head *head) 666{ 667 struct inode *inode = container_of(head, struct inode, i_rcu); 668 struct afs_vnode *vnode = AFS_FS_I(inode); --- 72 unchanged lines hidden --- |