|
__cacheline_aligned_in_smp | DEFINE_SPINLOCK (inode_sb_list_lock) |
|
| EXPORT_SYMBOL (empty_aops) |
|
int | get_nr_dirty_inodes (void) |
|
int | inode_init_always (struct super_block *sb, struct inode *inode) |
|
| EXPORT_SYMBOL (inode_init_always) |
|
void | free_inode_nonrcu (struct inode *inode) |
|
| EXPORT_SYMBOL (free_inode_nonrcu) |
|
void | __destroy_inode (struct inode *inode) |
|
| EXPORT_SYMBOL (__destroy_inode) |
|
void | drop_nlink (struct inode *inode) |
|
| EXPORT_SYMBOL (drop_nlink) |
|
void | clear_nlink (struct inode *inode) |
|
| EXPORT_SYMBOL (clear_nlink) |
|
void | set_nlink (struct inode *inode, unsigned int nlink) |
|
| EXPORT_SYMBOL (set_nlink) |
|
void | inc_nlink (struct inode *inode) |
|
| EXPORT_SYMBOL (inc_nlink) |
|
void | address_space_init_once (struct address_space *mapping) |
|
| EXPORT_SYMBOL (address_space_init_once) |
|
void | inode_init_once (struct inode *inode) |
|
| EXPORT_SYMBOL (inode_init_once) |
|
void | __iget (struct inode *inode) |
|
void | ihold (struct inode *inode) |
|
| EXPORT_SYMBOL (ihold) |
|
void | inode_add_lru (struct inode *inode) |
|
void | inode_sb_list_add (struct inode *inode) |
|
| EXPORT_SYMBOL_GPL (inode_sb_list_add) |
|
void | __insert_inode_hash (struct inode *inode, unsigned long hashval) |
|
| EXPORT_SYMBOL (__insert_inode_hash) |
|
void | __remove_inode_hash (struct inode *inode) |
|
| EXPORT_SYMBOL (__remove_inode_hash) |
|
void | clear_inode (struct inode *inode) |
|
| EXPORT_SYMBOL (clear_inode) |
|
void | evict_inodes (struct super_block *sb) |
|
int | invalidate_inodes (struct super_block *sb, bool kill_dirty) |
|
void | prune_icache_sb (struct super_block *sb, int nr_to_scan) |
|
unsigned int | get_next_ino (void) |
|
| EXPORT_SYMBOL (get_next_ino) |
|
struct inode * | new_inode_pseudo (struct super_block *sb) |
|
struct inode * | new_inode (struct super_block *sb) |
|
| EXPORT_SYMBOL (new_inode) |
|
void | unlock_new_inode (struct inode *inode) |
|
| EXPORT_SYMBOL (unlock_new_inode) |
|
struct inode * | iget5_locked (struct super_block *sb, unsigned long hashval, int(*test)(struct inode *, void *), int(*set)(struct inode *, void *), void *data) |
|
| EXPORT_SYMBOL (iget5_locked) |
|
struct inode * | iget_locked (struct super_block *sb, unsigned long ino) |
|
| EXPORT_SYMBOL (iget_locked) |
|
ino_t | iunique (struct super_block *sb, ino_t max_reserved) |
|
| EXPORT_SYMBOL (iunique) |
|
struct inode * | igrab (struct inode *inode) |
|
| EXPORT_SYMBOL (igrab) |
|
struct inode * | ilookup5_nowait (struct super_block *sb, unsigned long hashval, int(*test)(struct inode *, void *), void *data) |
|
| EXPORT_SYMBOL (ilookup5_nowait) |
|
struct inode * | ilookup5 (struct super_block *sb, unsigned long hashval, int(*test)(struct inode *, void *), void *data) |
|
| EXPORT_SYMBOL (ilookup5) |
|
struct inode * | ilookup (struct super_block *sb, unsigned long ino) |
|
| EXPORT_SYMBOL (ilookup) |
|
int | insert_inode_locked (struct inode *inode) |
|
| EXPORT_SYMBOL (insert_inode_locked) |
|
int | insert_inode_locked4 (struct inode *inode, unsigned long hashval, int(*test)(struct inode *, void *), void *data) |
|
| EXPORT_SYMBOL (insert_inode_locked4) |
|
int | generic_delete_inode (struct inode *inode) |
|
| EXPORT_SYMBOL (generic_delete_inode) |
|
void | iput (struct inode *inode) |
|
| EXPORT_SYMBOL (iput) |
|
sector_t | bmap (struct inode *inode, sector_t block) |
|
| EXPORT_SYMBOL (bmap) |
|
void | touch_atime (struct path *path) |
|
| EXPORT_SYMBOL (touch_atime) |
|
int | should_remove_suid (struct dentry *dentry) |
|
| EXPORT_SYMBOL (should_remove_suid) |
|
int | file_remove_suid (struct file *file) |
|
| EXPORT_SYMBOL (file_remove_suid) |
|
int | file_update_time (struct file *file) |
|
| EXPORT_SYMBOL (file_update_time) |
|
int | inode_needs_sync (struct inode *inode) |
|
| EXPORT_SYMBOL (inode_needs_sync) |
|
int | inode_wait (void *word) |
|
| EXPORT_SYMBOL (inode_wait) |
|
| __setup ("ihash_entries=", set_ihash_entries) |
|
void __init | inode_init_early (void) |
|
void __init | inode_init (void) |
|
void | init_special_inode (struct inode *inode, umode_t mode, dev_t rdev) |
|
| EXPORT_SYMBOL (init_special_inode) |
|
void | inode_init_owner (struct inode *inode, const struct inode *dir, umode_t mode) |
|
| EXPORT_SYMBOL (inode_init_owner) |
|
bool | inode_owner_or_capable (const struct inode *inode) |
|
| EXPORT_SYMBOL (inode_owner_or_capable) |
|
void | inode_dio_wait (struct inode *inode) |
|
| EXPORT_SYMBOL (inode_dio_wait) |
|
void | inode_dio_done (struct inode *inode) |
|
| EXPORT_SYMBOL (inode_dio_done) |
|
iget5_locked - obtain an inode from a mounted file system : super block of file system : hash value (usually inode number) to get
- Test:
: callback used for comparisons between inodes : callback used to initialize a new struct inode : opaque data pointer to pass to
and
Search for the inode specified by and in the inode cache, and if present it is return it with an increased reference count. This is a generalized version of iget_locked() for file systems where the inode number is not sufficient for unique identification of an inode.
If the inode is not in cache, allocate a new inode and return it locked, hashed, and with the I_NEW flag set. The file system gets to fill it in before unlocking it via unlock_new_inode().
Note both
- Test:
- and are called with the inode_hash_lock held, so can't sleep.
Definition at line 1004 of file inode.c.
iget_locked - obtain an inode from a mounted file system : super block of file system : inode number to get
Search for the inode specified by in the inode cache and if present return it with an increased reference count. This is for file systems where the inode number is sufficient for unique identification of an inode.
If the inode is not in cache, allocate a new inode and return it locked, hashed, and with the I_NEW flag set. The file system gets to fill it in before unlocking it via unlock_new_inode().
Definition at line 1076 of file inode.c.
ilookup5 - search for an inode in the inode cache : super block of file system to search : hash value (usually inode number) to search for
- Test:
- : callback used for comparisons between inodes : opaque data pointer to pass to
Search for the inode specified by and in the inode cache, and if the inode is in the cache, return the inode with an incremented reference count. Waits on I_NEW before returning the inode. returned with an incremented reference count.
This is a generalized version of ilookup() for file systems where the inode number is not sufficient for unique identification of an inode.
Note:
- Test:
- is called with the inode_hash_lock held, so can't sleep.
Definition at line 1253 of file inode.c.
ilookup5_nowait - search for an inode in the inode cache : super block of file system to search : hash value (usually inode number) to search for
- Test:
- : callback used for comparisons between inodes : opaque data pointer to pass to
Search for the inode specified by and in the inode cache. If the inode is in the cache, the inode is returned with an incremented reference count.
Note: I_NEW is not waited upon so you have to be very careful what you do with the returned inode. You probably should be using ilookup5() instead.
Note2:
- Test:
- is called with the inode_hash_lock held, so can't sleep.
Definition at line 1222 of file inode.c.
inode_dio_wait - wait for outstanding DIO requests to finish : inode to wait for
Waits for all pending direct I/O requests to finish so that we can proceed with a truncate or equivalent operation.
Must be called under a lock that serializes taking new references to i_dio_count, usually by inode->i_mutex.
Definition at line 1884 of file inode.c.
invalidate_inodes - attempt to free all inodes on a superblock : superblock to operate on : flag to guide handling of dirty inodes
Attempts to free all inodes for a given superblock. If there were any busy inodes return a non-zero value, else zero. If is set, discard dirty inodes too, otherwise treat them as busy.
Definition at line 640 of file inode.c.
iunique - get a unique inode number : superblock : highest reserved inode number
Obtain an inode number that is unique on the system for a given superblock. This is used by file systems that have no natural permanent inode numbering system. An inode number is returned that is higher than the reserved limit but unique.
BUGS: With a large number of inodes live on the file system this function currently becomes quite slow.
Definition at line 1164 of file inode.c.