Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Macros | Functions
vfs_inode.c File Reference
#include <linux/module.h>
#include <linux/errno.h>
#include <linux/fs.h>
#include <linux/file.h>
#include <linux/pagemap.h>
#include <linux/stat.h>
#include <linux/string.h>
#include <linux/inet.h>
#include <linux/namei.h>
#include <linux/idr.h>
#include <linux/sched.h>
#include <linux/slab.h>
#include <linux/xattr.h>
#include <linux/posix_acl.h>
#include <net/9p/9p.h>
#include <net/9p/client.h>
#include "v9fs.h"
#include "v9fs_vfs.h"
#include "fid.h"
#include "cache.h"
#include "xattr.h"
#include "acl.h"

Go to the source code of this file.

Macros

#define pr_fmt(fmt)   KBUILD_MODNAME ": " fmt
 

Functions

int v9fs_uflags2omode (int uflags, int extended)
 
void v9fs_blank_wstat (struct p9_wstat *wstat)
 
struct inodev9fs_alloc_inode (struct super_block *sb)
 
void v9fs_destroy_inode (struct inode *inode)
 
int v9fs_init_inode (struct v9fs_session_info *v9ses, struct inode *inode, umode_t mode, dev_t rdev)
 
struct inodev9fs_get_inode (struct super_block *sb, umode_t mode, dev_t rdev)
 
void v9fs_evict_inode (struct inode *inode)
 
struct inodev9fs_inode_from_fid (struct v9fs_session_info *v9ses, struct p9_fid *fid, struct super_block *sb, int new)
 
struct dentryv9fs_vfs_lookup (struct inode *dir, struct dentry *dentry, unsigned int flags)
 
int v9fs_vfs_unlink (struct inode *i, struct dentry *d)
 
int v9fs_vfs_rmdir (struct inode *i, struct dentry *d)
 
int v9fs_vfs_rename (struct inode *old_dir, struct dentry *old_dentry, struct inode *new_dir, struct dentry *new_dentry)
 
void v9fs_stat2inode (struct p9_wstat *stat, struct inode *inode, struct super_block *sb)
 
ino_t v9fs_qid2ino (struct p9_qid *qid)
 
void v9fs_vfs_put_link (struct dentry *dentry, struct nameidata *nd, void *p)
 
int v9fs_refresh_inode (struct p9_fid *fid, struct inode *inode)
 

Macro Definition Documentation

#define pr_fmt (   fmt)    KBUILD_MODNAME ": " fmt

Definition at line 26 of file vfs_inode.c.

Function Documentation

struct inode* v9fs_alloc_inode ( struct super_block sb)
read

v9fs_alloc_inode - helper function to allocate an inode

Definition at line 241 of file vfs_inode.c.

void v9fs_blank_wstat ( struct p9_wstat wstat)

v9fs_blank_wstat - helper function to setup a 9P stat structure : structure to initialize

Definition at line 216 of file vfs_inode.c.

void v9fs_destroy_inode ( struct inode inode)

Definition at line 269 of file vfs_inode.c.

void v9fs_evict_inode ( struct inode inode)

v9fs_clear_inode - release an inode : inode to release

Definition at line 446 of file vfs_inode.c.

struct inode* v9fs_get_inode ( struct super_block sb,
umode_t  mode,
dev_t  rdev 
)
read

v9fs_get_inode - helper function to setup an inode : superblock : mode to setup inode with

Definition at line 366 of file vfs_inode.c.

int v9fs_init_inode ( struct v9fs_session_info v9ses,
struct inode inode,
umode_t  mode,
dev_t  rdev 
)

Definition at line 274 of file vfs_inode.c.

struct inode* v9fs_inode_from_fid ( struct v9fs_session_info v9ses,
struct p9_fid fid,
struct super_block sb,
int  new 
)
read

Definition at line 550 of file vfs_inode.c.

ino_t v9fs_qid2ino ( struct p9_qid qid)

v9fs_qid2ino - convert qid into inode number : qid to hash

BUG: potential for inode number collisions?

Definition at line 1230 of file vfs_inode.c.

int v9fs_refresh_inode ( struct p9_fid fid,
struct inode inode 
)

Definition at line 1479 of file vfs_inode.c.

void v9fs_stat2inode ( struct p9_wstat stat,
struct inode inode,
struct super_block sb 
)

v9fs_stat2inode - populate an inode structure with mistat info : Plan 9 metadata (mistat) structure : inode to populate : superblock of filesystem

Definition at line 1174 of file vfs_inode.c.

int v9fs_uflags2omode ( int  uflags,
int  extended 
)

v9fs_uflags2omode- convert posix open flags to plan 9 mode bits : flags to convert : if .u extensions are active

Definition at line 175 of file vfs_inode.c.

struct dentry* v9fs_vfs_lookup ( struct inode dir,
struct dentry dentry,
unsigned int  flags 
)
read

Definition at line 787 of file vfs_inode.c.

void v9fs_vfs_put_link ( struct dentry dentry,
struct nameidata nd,
void p 
)

v9fs_vfs_put_link - release a symlink path : dentry for symlink : nameidata : unused

Definition at line 1330 of file vfs_inode.c.

int v9fs_vfs_rename ( struct inode old_dir,
struct dentry old_dentry,
struct inode new_dir,
struct dentry new_dentry 
)

v9fs_vfs_rename - VFS hook to rename an inode : old dir inode : old dentry : new dir inode : new dentry

Definition at line 973 of file vfs_inode.c.

int v9fs_vfs_rmdir ( struct inode i,
struct dentry d 
)

v9fs_vfs_rmdir - VFS unlink hook to delete a directory : inode that is being unlinked : dentry that is being unlinked

Definition at line 958 of file vfs_inode.c.

int v9fs_vfs_unlink ( struct inode i,
struct dentry d 
)

v9fs_vfs_unlink - VFS unlink hook to delete an inode : inode that is being unlinked : dentry that is being unlinked

Definition at line 946 of file vfs_inode.c.