Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Macros | Functions
extents.c File Reference
#include "blocklayout.h"

Go to the source code of this file.

Macros

#define NFSDBG_FACILITY   NFSDBG_PNFS_LD
 
#define EXTENT_INITIALIZED   0
 
#define EXTENT_WRITTEN   1
 
#define EXTENT_IN_COMMIT   2
 
#define INTERNAL_EXISTS   MY_MAX_TAGS
 
#define INTERNAL_MASK   ((1 << INTERNAL_EXISTS) - 1)
 

Functions

int bl_is_sector_init (struct pnfs_inval_markings *marks, sector_t isect)
 
int bl_mark_sectors_init (struct pnfs_inval_markings *marks, sector_t offset, sector_t length)
 
int bl_mark_for_commit (struct pnfs_block_extent *be, sector_t offset, sector_t length, struct pnfs_block_short_extent *new)
 
void bl_put_extent (struct pnfs_block_extent *be)
 
struct pnfs_block_extentbl_alloc_extent (void)
 
int bl_add_merge_extent (struct pnfs_block_layout *bl, struct pnfs_block_extent *new)
 
struct pnfs_block_extentbl_find_get_extent (struct pnfs_block_layout *bl, sector_t isect, struct pnfs_block_extent **cow_read)
 
int encode_pnfs_block_layoutupdate (struct pnfs_block_layout *bl, struct xdr_stream *xdr, const struct nfs4_layoutcommit_args *arg)
 
void clean_pnfs_block_layoutupdate (struct pnfs_block_layout *bl, const struct nfs4_layoutcommit_args *arg, int status)
 
int bl_push_one_short_extent (struct pnfs_inval_markings *marks)
 
struct pnfs_block_short_extentbl_pop_one_short_extent (struct pnfs_inval_markings *marks)
 
void bl_free_short_extents (struct pnfs_inval_markings *marks, int num_to_free)
 

Macro Definition Documentation

#define EXTENT_IN_COMMIT   2

Definition at line 39 of file extents.c.

#define EXTENT_INITIALIZED   0

Definition at line 37 of file extents.c.

#define EXTENT_WRITTEN   1

Definition at line 38 of file extents.c.

#define INTERNAL_EXISTS   MY_MAX_TAGS

Definition at line 40 of file extents.c.

#define INTERNAL_MASK   ((1 << INTERNAL_EXISTS) - 1)

Definition at line 41 of file extents.c.

#define NFSDBG_FACILITY   NFSDBG_PNFS_LD

Definition at line 34 of file extents.c.

Function Documentation

int bl_add_merge_extent ( struct pnfs_block_layout bl,
struct pnfs_block_extent new 
)

Definition at line 495 of file extents.c.

struct pnfs_block_extent* bl_alloc_extent ( void  )
read

Definition at line 449 of file extents.c.

struct pnfs_block_extent* bl_find_get_extent ( struct pnfs_block_layout bl,
sector_t  isect,
struct pnfs_block_extent **  cow_read 
)
read

Definition at line 590 of file extents.c.

void bl_free_short_extents ( struct pnfs_inval_markings marks,
int  num_to_free 
)

Definition at line 891 of file extents.c.

int bl_is_sector_init ( struct pnfs_inval_markings marks,
sector_t  isect 
)

Definition at line 178 of file extents.c.

int bl_mark_for_commit ( struct pnfs_block_extent be,
sector_t  offset,
sector_t  length,
struct pnfs_block_short_extent new 
)

Definition at line 375 of file extents.c.

int bl_mark_sectors_init ( struct pnfs_inval_markings marks,
sector_t  offset,
sector_t  length 
)

Definition at line 234 of file extents.c.

struct pnfs_block_short_extent* bl_pop_one_short_extent ( struct pnfs_inval_markings marks)
read

Definition at line 876 of file extents.c.

int bl_push_one_short_extent ( struct pnfs_inval_markings marks)

Definition at line 860 of file extents.c.

void bl_put_extent ( struct pnfs_block_extent be)

Definition at line 440 of file extents.c.

void clean_pnfs_block_layoutupdate ( struct pnfs_block_layout bl,
const struct nfs4_layoutcommit_args arg,
int  status 
)

Definition at line 833 of file extents.c.

int encode_pnfs_block_layoutupdate ( struct pnfs_block_layout bl,
struct xdr_stream *  xdr,
const struct nfs4_layoutcommit_args arg 
)

Definition at line 657 of file extents.c.