Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Functions
util.c File Reference
#include <linux/string.h>
#include <linux/slab.h>
#include <linux/buffer_head.h>
#include "ufs_fs.h"
#include "ufs.h"
#include "swab.h"
#include "util.h"

Go to the source code of this file.

Functions

struct ufs_buffer_head_ubh_bread_ (struct ufs_sb_private_info *uspi, struct super_block *sb, u64 fragment, u64 size)
 
struct ufs_buffer_headubh_bread_uspi (struct ufs_sb_private_info *uspi, struct super_block *sb, u64 fragment, u64 size)
 
void ubh_brelse (struct ufs_buffer_head *ubh)
 
void ubh_brelse_uspi (struct ufs_sb_private_info *uspi)
 
void ubh_mark_buffer_dirty (struct ufs_buffer_head *ubh)
 
void ubh_mark_buffer_uptodate (struct ufs_buffer_head *ubh, int flag)
 
void ubh_sync_block (struct ufs_buffer_head *ubh)
 
void ubh_bforget (struct ufs_buffer_head *ubh)
 
int ubh_buffer_dirty (struct ufs_buffer_head *ubh)
 
void _ubh_ubhcpymem_ (struct ufs_sb_private_info *uspi, unsigned char *mem, struct ufs_buffer_head *ubh, unsigned size)
 
void _ubh_memcpyubh_ (struct ufs_sb_private_info *uspi, struct ufs_buffer_head *ubh, unsigned char *mem, unsigned size)
 
dev_t ufs_get_inode_dev (struct super_block *sb, struct ufs_inode_info *ufsi)
 
void ufs_set_inode_dev (struct super_block *sb, struct ufs_inode_info *ufsi, dev_t dev)
 
struct pageufs_get_locked_page (struct address_space *mapping, pgoff_t index)
 

Function Documentation

struct ufs_buffer_head* _ubh_bread_ ( struct ufs_sb_private_info uspi,
struct super_block sb,
u64  fragment,
u64  size 
)
read

Definition at line 18 of file util.c.

void _ubh_memcpyubh_ ( struct ufs_sb_private_info uspi,
struct ufs_buffer_head ubh,
unsigned char mem,
unsigned  size 
)

Definition at line 165 of file util.c.

void _ubh_ubhcpymem_ ( struct ufs_sb_private_info uspi,
unsigned char mem,
struct ufs_buffer_head ubh,
unsigned  size 
)

Definition at line 149 of file util.c.

void ubh_bforget ( struct ufs_buffer_head ubh)

Definition at line 129 of file util.c.

struct ufs_buffer_head* ubh_bread_uspi ( struct ufs_sb_private_info uspi,
struct super_block sb,
u64  fragment,
u64  size 
)
read

Definition at line 48 of file util.c.

void ubh_brelse ( struct ufs_buffer_head ubh)

Definition at line 72 of file util.c.

void ubh_brelse_uspi ( struct ufs_sb_private_info uspi)

Definition at line 82 of file util.c.

int ubh_buffer_dirty ( struct ufs_buffer_head ubh)

Definition at line 138 of file util.c.

void ubh_mark_buffer_dirty ( struct ufs_buffer_head ubh)

Definition at line 93 of file util.c.

void ubh_mark_buffer_uptodate ( struct ufs_buffer_head ubh,
int  flag 
)

Definition at line 102 of file util.c.

void ubh_sync_block ( struct ufs_buffer_head ubh)

Definition at line 116 of file util.c.

dev_t ufs_get_inode_dev ( struct super_block sb,
struct ufs_inode_info ufsi 
)

Definition at line 182 of file util.c.

struct page* ufs_get_locked_page ( struct address_space mapping,
pgoff_t  index 
)
read

ufs_get_locked_page() - locate, pin and lock a pagecache page, if not exist read it from disk. : the address_space to search : the page index

Locates the desired pagecache page, if not exist we'll read it, locks it, increments its reference count and returns its address.

Definition at line 244 of file util.c.

void ufs_set_inode_dev ( struct super_block sb,
struct ufs_inode_info ufsi,
dev_t  dev 
)

Definition at line 209 of file util.c.