Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Functions | Variables
vxfs_inode.c File Reference
#include <linux/fs.h>
#include <linux/buffer_head.h>
#include <linux/pagemap.h>
#include <linux/kernel.h>
#include <linux/slab.h>
#include "vxfs.h"
#include "vxfs_inode.h"
#include "vxfs_extern.h"

Go to the source code of this file.

Functions

struct vxfs_inode_infovxfs_blkiget (struct super_block *sbp, u_long extent, ino_t ino)
 
struct vxfs_inode_infovxfs_stiget (struct super_block *sbp, ino_t ino)
 
struct inodevxfs_get_fake_inode (struct super_block *sbp, struct vxfs_inode_info *vip)
 
void vxfs_put_fake_inode (struct inode *ip)
 
struct inodevxfs_iget (struct super_block *sbp, ino_t ino)
 
void vxfs_evict_inode (struct inode *ip)
 

Variables

struct kmem_cachevxfs_inode_cachep
 

Function Documentation

struct vxfs_inode_info* vxfs_blkiget ( struct super_block sbp,
u_long  extent,
ino_t  ino 
)
read

vxfs_blkiget - find inode based on extent # : superblock of the filesystem we search in : number of the extent to search : inode number to search

Description: vxfs_blkiget searches inode in the filesystem described by in the extent . Returns the matching VxFS inode on success, else a NULL pointer.

NOTE: While __vxfs_iget uses the pagecache vxfs_blkiget uses the buffercache. This function should not be used outside the read_super() method, otherwise the data may be incoherent.

Definition at line 88 of file vxfs_inode.c.

void vxfs_evict_inode ( struct inode ip)

vxfs_evict_inode - remove inode from main memory : inode to discard.

Description: vxfs_evict_inode() is called on the final iput and frees the private inode area.

Definition at line 355 of file vxfs_inode.c.

struct inode* vxfs_get_fake_inode ( struct super_block sbp,
struct vxfs_inode_info vip 
)
read

vxfs_get_fake_inode - get fake inode structure : filesystem superblock : fspriv inode

Description: vxfs_fake_inode gets a fake inode (not in the inode hash) for a superblock, vxfs_inode pair. Returns the filled VFS inode.

Definition at line 258 of file vxfs_inode.c.

struct inode* vxfs_iget ( struct super_block sbp,
ino_t  ino 
)
read

vxfs_iget - get an inode : the superblock to get the inode for : the number of the inode to get

Description: vxfs_read_inode creates an inode, reads the disk inode for and fills in all relevant fields in the new inode.

Definition at line 293 of file vxfs_inode.c.

void vxfs_put_fake_inode ( struct inode ip)

vxfs_put_fake_inode - free faked inode *ip: VFS inode

Description: vxfs_put_fake_inode frees all data associated with .

Definition at line 278 of file vxfs_inode.c.

struct vxfs_inode_info* vxfs_stiget ( struct super_block sbp,
ino_t  ino 
)
read

vxfs_stiget - find inode using the structural inode list : VFS superblock : inode #

Description: Find inode in the filesystem described by using the structural inode list. Returns the matching VxFS inode on success, else a NULL pointer.

Definition at line 174 of file vxfs_inode.c.

Variable Documentation

struct kmem_cache* vxfs_inode_cachep

Definition at line 44 of file vxfs_inode.c.