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

Go to the source code of this file.

Data Structures

struct  objlayout
 
struct  objlayout_io_res
 

Functions

int objio_alloc_lseg (struct pnfs_layout_segment **outp, struct pnfs_layout_hdr *pnfslay, struct pnfs_layout_range *range, struct xdr_stream *xdr, gfp_t gfp_flags)
 
void objio_free_lseg (struct pnfs_layout_segment *lseg)
 
void objio_free_result (struct objlayout_io_res *oir)
 
int objio_read_pagelist (struct nfs_read_data *rdata)
 
int objio_write_pagelist (struct nfs_write_data *wdata, int how)
 
void objlayout_io_set_result (struct objlayout_io_res *oir, unsigned index, struct pnfs_osd_objid *pooid, int osd_error, u64 offset, u64 length, bool is_write)
 
void objlayout_read_done (struct objlayout_io_res *oir, ssize_t status, bool sync)
 
void objlayout_write_done (struct objlayout_io_res *oir, ssize_t status, bool sync)
 
int objlayout_get_deviceinfo (struct pnfs_layout_hdr *pnfslay, struct nfs4_deviceid *d_id, struct pnfs_osd_deviceaddr **deviceaddr, gfp_t gfp_flags)
 
void objlayout_put_deviceinfo (struct pnfs_osd_deviceaddr *deviceaddr)
 
struct pnfs_layout_hdr * objlayout_alloc_layout_hdr (struct inode *, gfp_t gfp_flags)
 
void objlayout_free_layout_hdr (struct pnfs_layout_hdr *)
 
struct pnfs_layout_segmentobjlayout_alloc_lseg (struct pnfs_layout_hdr *, struct nfs4_layoutget_res *, gfp_t gfp_flags)
 
void objlayout_free_lseg (struct pnfs_layout_segment *)
 
enum pnfs_try_status objlayout_read_pagelist (struct nfs_read_data *)
 
enum pnfs_try_status objlayout_write_pagelist (struct nfs_write_data *, int how)
 
void objlayout_encode_layoutcommit (struct pnfs_layout_hdr *, struct xdr_stream *, const struct nfs4_layoutcommit_args *)
 
void objlayout_encode_layoutreturn (struct pnfs_layout_hdr *, struct xdr_stream *, const struct nfs4_layoutreturn_args *)
 
int objlayout_autologin (struct pnfs_osd_deviceaddr *deviceaddr)
 

Function Documentation

int objio_alloc_lseg ( struct pnfs_layout_segment **  outp,
struct pnfs_layout_hdr *  pnfslay,
struct pnfs_layout_range range,
struct xdr_stream *  xdr,
gfp_t  gfp_flags 
)

Definition at line 251 of file objio_osd.c.

void objio_free_lseg ( struct pnfs_layout_segment lseg)

Definition at line 308 of file objio_osd.c.

void objio_free_result ( struct objlayout_io_res oir)

Definition at line 364 of file objio_osd.c.

int objio_read_pagelist ( struct nfs_read_data rdata)

Definition at line 442 of file objio_osd.c.

int objio_write_pagelist ( struct nfs_write_data wdata,
int  how 
)

Definition at line 534 of file objio_osd.c.

struct pnfs_layout_hdr* objlayout_alloc_layout_hdr ( struct inode ,
gfp_t  gfp_flags 
)
read

Definition at line 51 of file objlayout.c.

struct pnfs_layout_segment* objlayout_alloc_lseg ( struct pnfs_layout_hdr *  ,
struct nfs4_layoutget_res ,
gfp_t  gfp_flags 
)
read

Definition at line 82 of file objlayout.c.

int objlayout_autologin ( struct pnfs_osd_deviceaddr deviceaddr)

Definition at line 764 of file objlayout.c.

void objlayout_encode_layoutcommit ( struct pnfs_layout_hdr *  ,
struct xdr_stream *  ,
const struct nfs4_layoutcommit_args  
)

Definition at line 385 of file objlayout.c.

void objlayout_encode_layoutreturn ( struct pnfs_layout_hdr *  ,
struct xdr_stream *  ,
const struct nfs4_layoutreturn_args  
)

Definition at line 521 of file objlayout.c.

void objlayout_free_layout_hdr ( struct pnfs_layout_hdr *  )

Definition at line 68 of file objlayout.c.

void objlayout_free_lseg ( struct pnfs_layout_segment )

Definition at line 129 of file objlayout.c.

int objlayout_get_deviceinfo ( struct pnfs_layout_hdr *  pnfslay,
struct nfs4_deviceid d_id,
struct pnfs_osd_deviceaddr **  deviceaddr,
gfp_t  gfp_flags 
)

Definition at line 604 of file objlayout.c.

void objlayout_io_set_result ( struct objlayout_io_res oir,
unsigned  index,
struct pnfs_osd_objid pooid,
int  osd_error,
u64  offset,
u64  length,
bool  is_write 
)

Definition at line 206 of file objlayout.c.

void objlayout_put_deviceinfo ( struct pnfs_osd_deviceaddr deviceaddr)

Definition at line 649 of file objlayout.c.

void objlayout_read_done ( struct objlayout_io_res oir,
ssize_t  status,
bool  sync 
)

Definition at line 253 of file objlayout.c.

enum pnfs_try_status objlayout_read_pagelist ( struct nfs_read_data )

Definition at line 280 of file objlayout.c.

void objlayout_write_done ( struct objlayout_io_res oir,
ssize_t  status,
bool  sync 
)

Definition at line 336 of file objlayout.c.

enum pnfs_try_status objlayout_write_pagelist ( struct nfs_write_data ,
int  how 
)

Definition at line 365 of file objlayout.c.