fs/freevxfs/vxfs_inode.c
Source file repositories/reference/linux-study-clean/fs/freevxfs/vxfs_inode.c
File Facts
- System
- Linux kernel
- Corpus path
fs/freevxfs/vxfs_inode.c- Extension
.c- Size
- 8019 bytes
- Lines
- 315
- Domain
- Core OS
- Bucket
- VFS And Filesystem Core
- Inferred role
- Core OS: implementation source
- Status
- source implementation candidate
Why This File Exists
Core operating-system implementation surface: boot, tasks, memory, VFS, syscall-facing interfaces, synchronization, credentials, and isolation.
- Core operating-system implementation surface: boot, tasks, memory, VFS, syscall-facing interfaces, synchronization, credentials, and isolation.
- Defines or uses C structs; map object ownership, embedded links, reference counts, and lock ownership.
Dependency Surface
linux/fs.hlinux/buffer_head.hlinux/pagemap.hlinux/kernel.hlinux/slab.hlinux/namei.hvxfs.hvxfs_inode.hvxfs_extern.h
Detected Declarations
function Copyrightfunction vxfs_transmodfunction dip2vip_cpyfunction read_superfunction __vxfs_igetfunction vxfs_stigetfunction vxfs_igetfunction vxfs_evict_inode
Annotated Snippet
if (!VXFS_ISIMMED(vip)) {
ip->i_op = &page_symlink_inode_operations;
inode_nohighmem(ip);
ip->i_mapping->a_ops = &vxfs_aops;
} else {
ip->i_op = &simple_symlink_inode_operations;
ip->i_link = vip->vii_immed.vi_immed;
nd_terminate_link(ip->i_link, ip->i_size,
sizeof(vip->vii_immed.vi_immed) - 1);
}
} else
init_special_inode(ip, ip->i_mode, old_decode_dev(vip->vii_rdev));
unlock_new_inode(ip);
return ip;
}
/**
* vxfs_evict_inode - remove inode from main memory
* @ip: inode to discard.
*
* Description:
* vxfs_evict_inode() is called on the final iput and frees the private
* inode area.
*/
void
vxfs_evict_inode(struct inode *ip)
{
truncate_inode_pages_final(&ip->i_data);
clear_inode(ip);
}
Annotation
- Immediate include surface: `linux/fs.h`, `linux/buffer_head.h`, `linux/pagemap.h`, `linux/kernel.h`, `linux/slab.h`, `linux/namei.h`, `vxfs.h`, `vxfs_inode.h`.
- Detected declarations: `function Copyright`, `function vxfs_transmod`, `function dip2vip_cpy`, `function read_super`, `function __vxfs_iget`, `function vxfs_stiget`, `function vxfs_iget`, `function vxfs_evict_inode`.
- Atlas domain: Core OS / VFS And Filesystem Core.
- Implementation status: source implementation candidate.
Implementation Notes
- This generated page is the file-by-file coverage layer; curated subsystem chapters should link here when they synthesize a multi-file control flow.
- Core OS pages should be promoted from atlas-only to deep-reviewed when they explain data structures, invariants, locking, lifecycle, and C implementation snippets.
- Driver-family pages are intentionally pattern-oriented unless they are part of the selected PCIe/NVMe representative device path.