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

Go to the source code of this file.

Macros

#define NFSDBG_FACILITY   NFSDBG_PNFS
 
#define NFS4_DEVICE_ID_HASH_BITS   5
 
#define NFS4_DEVICE_ID_HASH_SIZE   (1 << NFS4_DEVICE_ID_HASH_BITS)
 
#define NFS4_DEVICE_ID_HASH_MASK   (NFS4_DEVICE_ID_HASH_SIZE - 1)
 
#define PNFS_DEVICE_RETRY_TIMEOUT   (120*HZ)
 

Functions

struct nfs4_deviceid_node * nfs4_find_get_deviceid (const struct pnfs_layoutdriver_type *ld, const struct nfs_client *clp, const struct nfs4_deviceid *id)
 
 EXPORT_SYMBOL_GPL (nfs4_find_get_deviceid)
 
void nfs4_delete_deviceid (const struct pnfs_layoutdriver_type *ld, const struct nfs_client *clp, const struct nfs4_deviceid *id)
 
 EXPORT_SYMBOL_GPL (nfs4_delete_deviceid)
 
void nfs4_init_deviceid_node (struct nfs4_deviceid_node *d, const struct pnfs_layoutdriver_type *ld, const struct nfs_client *nfs_client, const struct nfs4_deviceid *id)
 
 EXPORT_SYMBOL_GPL (nfs4_init_deviceid_node)
 
struct nfs4_deviceid_node * nfs4_insert_deviceid_node (struct nfs4_deviceid_node *new)
 
 EXPORT_SYMBOL_GPL (nfs4_insert_deviceid_node)
 
bool nfs4_put_deviceid_node (struct nfs4_deviceid_node *d)
 
 EXPORT_SYMBOL_GPL (nfs4_put_deviceid_node)
 
void nfs4_mark_deviceid_unavailable (struct nfs4_deviceid_node *node)
 
 EXPORT_SYMBOL_GPL (nfs4_mark_deviceid_unavailable)
 
bool nfs4_test_deviceid_unavailable (struct nfs4_deviceid_node *node)
 
 EXPORT_SYMBOL_GPL (nfs4_test_deviceid_unavailable)
 
void nfs4_deviceid_purge_client (const struct nfs_client *clp)
 
void nfs4_deviceid_mark_client_invalid (struct nfs_client *clp)
 

Macro Definition Documentation

#define NFS4_DEVICE_ID_HASH_BITS   5

Definition at line 39 of file pnfs_dev.c.

#define NFS4_DEVICE_ID_HASH_MASK   (NFS4_DEVICE_ID_HASH_SIZE - 1)

Definition at line 41 of file pnfs_dev.c.

#define NFS4_DEVICE_ID_HASH_SIZE   (1 << NFS4_DEVICE_ID_HASH_BITS)

Definition at line 40 of file pnfs_dev.c.

#define NFSDBG_FACILITY   NFSDBG_PNFS

Definition at line 34 of file pnfs_dev.c.

#define PNFS_DEVICE_RETRY_TIMEOUT   (120*HZ)

Definition at line 43 of file pnfs_dev.c.

Function Documentation

EXPORT_SYMBOL_GPL ( nfs4_find_get_deviceid  )
EXPORT_SYMBOL_GPL ( nfs4_delete_deviceid  )
EXPORT_SYMBOL_GPL ( nfs4_init_deviceid_node  )
EXPORT_SYMBOL_GPL ( nfs4_insert_deviceid_node  )
EXPORT_SYMBOL_GPL ( nfs4_put_deviceid_node  )
EXPORT_SYMBOL_GPL ( nfs4_mark_deviceid_unavailable  )
EXPORT_SYMBOL_GPL ( nfs4_test_deviceid_unavailable  )
void nfs4_delete_deviceid ( const struct pnfs_layoutdriver_type *  ld,
const struct nfs_client clp,
const struct nfs4_deviceid id 
)

Definition at line 131 of file pnfs_dev.c.

void nfs4_deviceid_mark_client_invalid ( struct nfs_client clp)

Definition at line 291 of file pnfs_dev.c.

void nfs4_deviceid_purge_client ( const struct nfs_client clp)

Definition at line 277 of file pnfs_dev.c.

struct nfs4_deviceid_node* nfs4_find_get_deviceid ( const struct pnfs_layoutdriver_type *  ld,
const struct nfs_client clp,
const struct nfs4_deviceid id 
)
read

Definition at line 115 of file pnfs_dev.c.

void nfs4_init_deviceid_node ( struct nfs4_deviceid_node *  d,
const struct pnfs_layoutdriver_type *  ld,
const struct nfs_client nfs_client,
const struct nfs4_deviceid id 
)

Definition at line 155 of file pnfs_dev.c.

struct nfs4_deviceid_node* nfs4_insert_deviceid_node ( struct nfs4_deviceid_node *  new)
read

Definition at line 182 of file pnfs_dev.c.

void nfs4_mark_deviceid_unavailable ( struct nfs4_deviceid_node *  node)

Definition at line 224 of file pnfs_dev.c.

bool nfs4_put_deviceid_node ( struct nfs4_deviceid_node *  d)

Definition at line 214 of file pnfs_dev.c.

bool nfs4_test_deviceid_unavailable ( struct nfs4_deviceid_node *  node)

Definition at line 232 of file pnfs_dev.c.