Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Macros | Functions
pnfs.c File Reference
#include <linux/nfs_fs.h>
#include <linux/nfs_page.h>
#include <linux/module.h>
#include "internal.h"
#include "pnfs.h"
#include "iostat.h"

Go to the source code of this file.

Macros

#define NFSDBG_FACILITY   NFSDBG_PNFS
 
#define PNFS_LAYOUTGET_RETRY_TIMEOUT   (120*HZ)
 

Functions

void unset_pnfs_layoutdriver (struct nfs_server *nfss)
 
void set_pnfs_layoutdriver (struct nfs_server *server, const struct nfs_fh *mntfh, u32 id)
 
int pnfs_register_layoutdriver (struct pnfs_layoutdriver_type *ld_type)
 
 EXPORT_SYMBOL_GPL (pnfs_register_layoutdriver)
 
void pnfs_unregister_layoutdriver (struct pnfs_layoutdriver_type *ld_type)
 
 EXPORT_SYMBOL_GPL (pnfs_unregister_layoutdriver)
 
void pnfs_get_layout_hdr (struct pnfs_layout_hdr *lo)
 
void pnfs_put_layout_hdr (struct pnfs_layout_hdr *lo)
 
void pnfs_put_lseg (struct pnfs_layout_segment *lseg)
 
 EXPORT_SYMBOL_GPL (pnfs_put_lseg)
 
int pnfs_mark_matching_lsegs_invalid (struct pnfs_layout_hdr *lo, struct list_head *tmp_list, struct pnfs_layout_range *recall_range)
 
void pnfs_free_lseg_list (struct list_head *free_me)
 
void pnfs_destroy_layout (struct nfs_inode *nfsi)
 
 EXPORT_SYMBOL_GPL (pnfs_destroy_layout)
 
void pnfs_destroy_all_layouts (struct nfs_client *clp)
 
void pnfs_set_layout_stateid (struct pnfs_layout_hdr *lo, const nfs4_stateid *new, bool update_barrier)
 
int pnfs_choose_layoutget_stateid (nfs4_stateid *dst, struct pnfs_layout_hdr *lo, struct nfs4_state *open_state)
 
int _pnfs_return_layout (struct inode *ino)
 
 EXPORT_SYMBOL_GPL (_pnfs_return_layout)
 
bool pnfs_roc (struct inode *ino)
 
void pnfs_roc_release (struct inode *ino)
 
void pnfs_roc_set_barrier (struct inode *ino, u32 barrier)
 
bool pnfs_roc_drain (struct inode *ino, u32 *barrier, struct rpc_task *task)
 
struct pnfs_layout_segmentpnfs_update_layout (struct inode *ino, struct nfs_open_context *ctx, loff_t pos, u64 count, enum pnfs_iomode iomode, gfp_t gfp_flags)
 
 EXPORT_SYMBOL_GPL (pnfs_update_layout)
 
struct pnfs_layout_segmentpnfs_layout_process (struct nfs4_layoutget *lgp)
 
void pnfs_generic_pg_init_read (struct nfs_pageio_descriptor *pgio, struct nfs_page *req)
 
 EXPORT_SYMBOL_GPL (pnfs_generic_pg_init_read)
 
void pnfs_generic_pg_init_write (struct nfs_pageio_descriptor *pgio, struct nfs_page *req, u64 wb_size)
 
 EXPORT_SYMBOL_GPL (pnfs_generic_pg_init_write)
 
void pnfs_pageio_init_read (struct nfs_pageio_descriptor *pgio, struct inode *inode, const struct nfs_pgio_completion_ops *compl_ops)
 
void pnfs_pageio_init_write (struct nfs_pageio_descriptor *pgio, struct inode *inode, int ioflags, const struct nfs_pgio_completion_ops *compl_ops)
 
bool pnfs_generic_pg_test (struct nfs_pageio_descriptor *pgio, struct nfs_page *prev, struct nfs_page *req)
 
 EXPORT_SYMBOL_GPL (pnfs_generic_pg_test)
 
int pnfs_write_done_resend_to_mds (struct inode *inode, struct list_head *head, const struct nfs_pgio_completion_ops *compl_ops)
 
 EXPORT_SYMBOL_GPL (pnfs_write_done_resend_to_mds)
 
void pnfs_ld_write_done (struct nfs_write_data *data)
 
 EXPORT_SYMBOL_GPL (pnfs_ld_write_done)
 
 EXPORT_SYMBOL_GPL (pnfs_writehdr_free)
 
int pnfs_generic_pg_writepages (struct nfs_pageio_descriptor *desc)
 
 EXPORT_SYMBOL_GPL (pnfs_generic_pg_writepages)
 
int pnfs_read_done_resend_to_mds (struct inode *inode, struct list_head *head, const struct nfs_pgio_completion_ops *compl_ops)
 
 EXPORT_SYMBOL_GPL (pnfs_read_done_resend_to_mds)
 
void pnfs_ld_read_done (struct nfs_read_data *data)
 
 EXPORT_SYMBOL_GPL (pnfs_ld_read_done)
 
 EXPORT_SYMBOL_GPL (pnfs_readhdr_free)
 
int pnfs_generic_pg_readpages (struct nfs_pageio_descriptor *desc)
 
 EXPORT_SYMBOL_GPL (pnfs_generic_pg_readpages)
 
void pnfs_set_lo_fail (struct pnfs_layout_segment *lseg)
 
 EXPORT_SYMBOL_GPL (pnfs_set_lo_fail)
 
void pnfs_set_layoutcommit (struct nfs_write_data *wdata)
 
 EXPORT_SYMBOL_GPL (pnfs_set_layoutcommit)
 
void pnfs_cleanup_layoutcommit (struct nfs4_layoutcommit_data *data)
 
int pnfs_layoutcommit_inode (struct inode *inode, bool sync)
 
struct nfs4_thresholdpnfs_mdsthreshold_alloc (void)
 

Macro Definition Documentation

#define NFSDBG_FACILITY   NFSDBG_PNFS

Definition at line 37 of file pnfs.c.

#define PNFS_LAYOUTGET_RETRY_TIMEOUT   (120*HZ)

Definition at line 38 of file pnfs.c.

Function Documentation

int _pnfs_return_layout ( struct inode ino)

Definition at line 691 of file pnfs.c.

EXPORT_SYMBOL_GPL ( pnfs_register_layoutdriver  )
EXPORT_SYMBOL_GPL ( pnfs_unregister_layoutdriver  )
EXPORT_SYMBOL_GPL ( pnfs_put_lseg  )
EXPORT_SYMBOL_GPL ( pnfs_destroy_layout  )
EXPORT_SYMBOL_GPL ( _pnfs_return_layout  )
EXPORT_SYMBOL_GPL ( pnfs_update_layout  )
EXPORT_SYMBOL_GPL ( pnfs_generic_pg_init_read  )
EXPORT_SYMBOL_GPL ( pnfs_generic_pg_init_write  )
EXPORT_SYMBOL_GPL ( pnfs_generic_pg_test  )
EXPORT_SYMBOL_GPL ( pnfs_write_done_resend_to_mds  )
EXPORT_SYMBOL_GPL ( pnfs_ld_write_done  )
EXPORT_SYMBOL_GPL ( pnfs_writehdr_free  )
EXPORT_SYMBOL_GPL ( pnfs_generic_pg_writepages  )
EXPORT_SYMBOL_GPL ( pnfs_read_done_resend_to_mds  )
EXPORT_SYMBOL_GPL ( pnfs_ld_read_done  )
EXPORT_SYMBOL_GPL ( pnfs_readhdr_free  )
EXPORT_SYMBOL_GPL ( pnfs_generic_pg_readpages  )
EXPORT_SYMBOL_GPL ( pnfs_set_lo_fail  )
EXPORT_SYMBOL_GPL ( pnfs_set_layoutcommit  )
int pnfs_choose_layoutget_stateid ( nfs4_stateid dst,
struct pnfs_layout_hdr *  lo,
struct nfs4_state *  open_state 
)

Definition at line 606 of file pnfs.c.

void pnfs_cleanup_layoutcommit ( struct nfs4_layoutcommit_data data)

Definition at line 1690 of file pnfs.c.

void pnfs_destroy_all_layouts ( struct nfs_client clp)

Definition at line 524 of file pnfs.c.

void pnfs_destroy_layout ( struct nfs_inode nfsi)

Definition at line 498 of file pnfs.c.

void pnfs_free_lseg_list ( struct list_head free_me)

Definition at line 484 of file pnfs.c.

void pnfs_generic_pg_init_read ( struct nfs_pageio_descriptor pgio,
struct nfs_page req 
)

Definition at line 1221 of file pnfs.c.

void pnfs_generic_pg_init_write ( struct nfs_pageio_descriptor pgio,
struct nfs_page req,
u64  wb_size 
)

Definition at line 1251 of file pnfs.c.

int pnfs_generic_pg_readpages ( struct nfs_pageio_descriptor desc)

Definition at line 1608 of file pnfs.c.

bool pnfs_generic_pg_test ( struct nfs_pageio_descriptor pgio,
struct nfs_page prev,
struct nfs_page req 
)

Definition at line 1301 of file pnfs.c.

int pnfs_generic_pg_writepages ( struct nfs_pageio_descriptor desc)

Definition at line 1453 of file pnfs.c.

void pnfs_get_layout_hdr ( struct pnfs_layout_hdr *  lo)

Definition at line 194 of file pnfs.c.

struct pnfs_layout_segment* pnfs_layout_process ( struct nfs4_layoutget lgp)
read

Definition at line 1163 of file pnfs.c.

int pnfs_layoutcommit_inode ( struct inode inode,
bool  sync 
)

Definition at line 1707 of file pnfs.c.

void pnfs_ld_read_done ( struct nfs_read_data data)

Definition at line 1527 of file pnfs.c.

void pnfs_ld_write_done ( struct nfs_write_data data)

Definition at line 1375 of file pnfs.c.

int pnfs_mark_matching_lsegs_invalid ( struct pnfs_layout_hdr *  lo,
struct list_head tmp_list,
struct pnfs_layout_range recall_range 
)

Definition at line 457 of file pnfs.c.

struct nfs4_threshold* pnfs_mdsthreshold_alloc ( void  )
read

Definition at line 1776 of file pnfs.c.

void pnfs_pageio_init_read ( struct nfs_pageio_descriptor pgio,
struct inode inode,
const struct nfs_pgio_completion_ops compl_ops 
)

Definition at line 1274 of file pnfs.c.

void pnfs_pageio_init_write ( struct nfs_pageio_descriptor pgio,
struct inode inode,
int  ioflags,
const struct nfs_pgio_completion_ops compl_ops 
)

Definition at line 1287 of file pnfs.c.

void pnfs_put_layout_hdr ( struct pnfs_layout_hdr *  lo)

Definition at line 235 of file pnfs.c.

void pnfs_put_lseg ( struct pnfs_layout_segment lseg)

Definition at line 340 of file pnfs.c.

int pnfs_read_done_resend_to_mds ( struct inode inode,
struct list_head head,
const struct nfs_pgio_completion_ops compl_ops 
)

Definition at line 1482 of file pnfs.c.

int pnfs_register_layoutdriver ( struct pnfs_layoutdriver_type *  ld_type)

Definition at line 146 of file pnfs.c.

bool pnfs_roc ( struct inode ino)

Definition at line 750 of file pnfs.c.

bool pnfs_roc_drain ( struct inode ino,
u32 barrier,
struct rpc_task task 
)

Definition at line 806 of file pnfs.c.

void pnfs_roc_release ( struct inode ino)

Definition at line 780 of file pnfs.c.

void pnfs_roc_set_barrier ( struct inode ino,
u32  barrier 
)

Definition at line 795 of file pnfs.c.

void pnfs_set_layout_stateid ( struct pnfs_layout_hdr *  lo,
const nfs4_stateid new,
bool  update_barrier 
)

Definition at line 563 of file pnfs.c.

void pnfs_set_layoutcommit ( struct nfs_write_data wdata)

Definition at line 1659 of file pnfs.c.

void pnfs_set_lo_fail ( struct pnfs_layout_segment lseg)

Definition at line 1652 of file pnfs.c.

void pnfs_unregister_layoutdriver ( struct pnfs_layoutdriver_type *  ld_type)

Definition at line 179 of file pnfs.c.

struct pnfs_layout_segment* pnfs_update_layout ( struct inode ino,
struct nfs_open_context ctx,
loff_t  pos,
u64  count,
enum pnfs_iomode  iomode,
gfp_t  gfp_flags 
)
read

Definition at line 1069 of file pnfs.c.

int pnfs_write_done_resend_to_mds ( struct inode inode,
struct list_head head,
const struct nfs_pgio_completion_ops compl_ops 
)

Definition at line 1326 of file pnfs.c.

void set_pnfs_layoutdriver ( struct nfs_server server,
const struct nfs_fh mntfh,
u32  id 
)

Definition at line 103 of file pnfs.c.

void unset_pnfs_layoutdriver ( struct nfs_server nfss)

Definition at line 83 of file pnfs.c.