Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Macros | Functions
osd_client.c File Reference
#include <linux/ceph/ceph_debug.h>
#include <linux/module.h>
#include <linux/err.h>
#include <linux/highmem.h>
#include <linux/mm.h>
#include <linux/pagemap.h>
#include <linux/slab.h>
#include <linux/uaccess.h>
#include <linux/ceph/libceph.h>
#include <linux/ceph/osd_client.h>
#include <linux/ceph/messenger.h>
#include <linux/ceph/decode.h>
#include <linux/ceph/auth.h>
#include <linux/ceph/pagelist.h>

Go to the source code of this file.

Macros

#define OSD_OP_FRONT_LEN   4096
 
#define OSD_OPREPLY_FRONT_LEN   512
 

Functions

int ceph_calc_raw_layout (struct ceph_osd_client *osdc, struct ceph_file_layout *layout, u64 snapid, u64 off, u64 *plen, u64 *bno, struct ceph_osd_request *req, struct ceph_osd_req_op *op)
 
 EXPORT_SYMBOL (ceph_calc_raw_layout)
 
void ceph_osdc_release_request (struct kref *kref)
 
 EXPORT_SYMBOL (ceph_osdc_release_request)
 
struct ceph_osd_requestceph_osdc_alloc_request (struct ceph_osd_client *osdc, int flags, struct ceph_snap_context *snapc, struct ceph_osd_req_op *ops, bool use_mempool, gfp_t gfp_flags, struct page **pages, struct bio *bio)
 
 EXPORT_SYMBOL (ceph_osdc_alloc_request)
 
void ceph_osdc_build_request (struct ceph_osd_request *req, u64 off, u64 *plen, struct ceph_osd_req_op *src_ops, struct ceph_snap_context *snapc, struct timespec *mtime, const char *oid, int oid_len)
 
 EXPORT_SYMBOL (ceph_osdc_build_request)
 
struct ceph_osd_requestceph_osdc_new_request (struct ceph_osd_client *osdc, struct ceph_file_layout *layout, struct ceph_vino vino, u64 off, u64 *plen, int opcode, int flags, struct ceph_snap_context *snapc, int do_sync, u32 truncate_seq, u64 truncate_size, struct timespec *mtime, bool use_mempool, int num_reply, int page_align)
 
 EXPORT_SYMBOL (ceph_osdc_new_request)
 
void ceph_osdc_unregister_linger_request (struct ceph_osd_client *osdc, struct ceph_osd_request *req)
 
 EXPORT_SYMBOL (ceph_osdc_unregister_linger_request)
 
void ceph_osdc_set_request_linger (struct ceph_osd_client *osdc, struct ceph_osd_request *req)
 
 EXPORT_SYMBOL (ceph_osdc_set_request_linger)
 
void ceph_osdc_handle_map (struct ceph_osd_client *osdc, struct ceph_msg *msg)
 
void ceph_osdc_put_event (struct ceph_osd_event *event)
 
 EXPORT_SYMBOL (ceph_osdc_put_event)
 
int ceph_osdc_create_event (struct ceph_osd_client *osdc, void(*event_cb)(u64, u64, u8, void *), int one_shot, void *data, struct ceph_osd_event **pevent)
 
 EXPORT_SYMBOL (ceph_osdc_create_event)
 
void ceph_osdc_cancel_event (struct ceph_osd_event *event)
 
 EXPORT_SYMBOL (ceph_osdc_cancel_event)
 
void handle_watch_notify (struct ceph_osd_client *osdc, struct ceph_msg *msg)
 
int ceph_osdc_wait_event (struct ceph_osd_event *event, unsigned long timeout)
 
 EXPORT_SYMBOL (ceph_osdc_wait_event)
 
int ceph_osdc_start_request (struct ceph_osd_client *osdc, struct ceph_osd_request *req, bool nofail)
 
 EXPORT_SYMBOL (ceph_osdc_start_request)
 
int ceph_osdc_wait_request (struct ceph_osd_client *osdc, struct ceph_osd_request *req)
 
 EXPORT_SYMBOL (ceph_osdc_wait_request)
 
void ceph_osdc_sync (struct ceph_osd_client *osdc)
 
 EXPORT_SYMBOL (ceph_osdc_sync)
 
int ceph_osdc_init (struct ceph_osd_client *osdc, struct ceph_client *client)
 
 EXPORT_SYMBOL (ceph_osdc_init)
 
void ceph_osdc_stop (struct ceph_osd_client *osdc)
 
 EXPORT_SYMBOL (ceph_osdc_stop)
 
int ceph_osdc_readpages (struct ceph_osd_client *osdc, struct ceph_vino vino, struct ceph_file_layout *layout, u64 off, u64 *plen, u32 truncate_seq, u64 truncate_size, struct page **pages, int num_pages, int page_align)
 
 EXPORT_SYMBOL (ceph_osdc_readpages)
 
int ceph_osdc_writepages (struct ceph_osd_client *osdc, struct ceph_vino vino, struct ceph_file_layout *layout, struct ceph_snap_context *snapc, u64 off, u64 len, u32 truncate_seq, u64 truncate_size, struct timespec *mtime, struct page **pages, int num_pages, int flags, int do_sync, bool nofail)
 
 EXPORT_SYMBOL (ceph_osdc_writepages)
 

Macro Definition Documentation

#define OSD_OP_FRONT_LEN   4096

Definition at line 21 of file osd_client.c.

#define OSD_OPREPLY_FRONT_LEN   512

Definition at line 22 of file osd_client.c.

Function Documentation

int ceph_calc_raw_layout ( struct ceph_osd_client osdc,
struct ceph_file_layout layout,
u64  snapid,
u64  off,
u64 plen,
u64 bno,
struct ceph_osd_request req,
struct ceph_osd_req_op op 
)

Definition at line 55 of file osd_client.c.

struct ceph_osd_request* ceph_osdc_alloc_request ( struct ceph_osd_client osdc,
int  flags,
struct ceph_snap_context snapc,
struct ceph_osd_req_op ops,
bool  use_mempool,
gfp_t  gfp_flags,
struct page **  pages,
struct bio *  bio 
)
read

Definition at line 192 of file osd_client.c.

void ceph_osdc_build_request ( struct ceph_osd_request req,
u64  off,
u64 plen,
struct ceph_osd_req_op src_ops,
struct ceph_snap_context snapc,
struct timespec mtime,
const char oid,
int  oid_len 
)

Definition at line 366 of file osd_client.c.

void ceph_osdc_cancel_event ( struct ceph_osd_event event)

Definition at line 1616 of file osd_client.c.

int ceph_osdc_create_event ( struct ceph_osd_client osdc,
void(*)(u64, u64, u8, void *)  event_cb,
int  one_shot,
void data,
struct ceph_osd_event **  pevent 
)

Definition at line 1585 of file osd_client.c.

void ceph_osdc_handle_map ( struct ceph_osd_client osdc,
struct ceph_msg msg 
)

Definition at line 1386 of file osd_client.c.

int ceph_osdc_init ( struct ceph_osd_client osdc,
struct ceph_client client 
)

Definition at line 1834 of file osd_client.c.

struct ceph_osd_request* ceph_osdc_new_request ( struct ceph_osd_client osdc,
struct ceph_file_layout layout,
struct ceph_vino  vino,
u64  off,
u64 plen,
int  opcode,
int  flags,
struct ceph_snap_context snapc,
int  do_sync,
u32  truncate_seq,
u64  truncate_size,
struct timespec mtime,
bool  use_mempool,
int  num_reply,
int  page_align 
)
read

Definition at line 451 of file osd_client.c.

void ceph_osdc_put_event ( struct ceph_osd_event event)

Definition at line 1524 of file osd_client.c.

int ceph_osdc_readpages ( struct ceph_osd_client osdc,
struct ceph_vino  vino,
struct ceph_file_layout layout,
u64  off,
u64 plen,
u32  truncate_seq,
u64  truncate_size,
struct page **  pages,
int  num_pages,
int  page_align 
)

Definition at line 1918 of file osd_client.c.

void ceph_osdc_release_request ( struct kref kref)

Definition at line 142 of file osd_client.c.

void ceph_osdc_set_request_linger ( struct ceph_osd_client osdc,
struct ceph_osd_request req 
)

Definition at line 939 of file osd_client.c.

int ceph_osdc_start_request ( struct ceph_osd_client osdc,
struct ceph_osd_request req,
bool  nofail 
)

Definition at line 1725 of file osd_client.c.

void ceph_osdc_stop ( struct ceph_osd_client osdc)

Definition at line 1897 of file osd_client.c.

void ceph_osdc_sync ( struct ceph_osd_client osdc)

Definition at line 1800 of file osd_client.c.

void ceph_osdc_unregister_linger_request ( struct ceph_osd_client osdc,
struct ceph_osd_request req 
)

Definition at line 927 of file osd_client.c.

int ceph_osdc_wait_event ( struct ceph_osd_event event,
unsigned long  timeout 
)

Definition at line 1707 of file osd_client.c.

int ceph_osdc_wait_request ( struct ceph_osd_client osdc,
struct ceph_osd_request req 
)

Definition at line 1776 of file osd_client.c.

int ceph_osdc_writepages ( struct ceph_osd_client osdc,
struct ceph_vino  vino,
struct ceph_file_layout layout,
struct ceph_snap_context snapc,
u64  off,
u64  len,
u32  truncate_seq,
u64  truncate_size,
struct timespec mtime,
struct page **  pages,
int  num_pages,
int  flags,
int  do_sync,
bool  nofail 
)

Definition at line 1955 of file osd_client.c.

EXPORT_SYMBOL ( ceph_calc_raw_layout  )
EXPORT_SYMBOL ( ceph_osdc_release_request  )
EXPORT_SYMBOL ( ceph_osdc_alloc_request  )
EXPORT_SYMBOL ( ceph_osdc_build_request  )
EXPORT_SYMBOL ( ceph_osdc_new_request  )
EXPORT_SYMBOL ( ceph_osdc_set_request_linger  )
EXPORT_SYMBOL ( ceph_osdc_put_event  )
EXPORT_SYMBOL ( ceph_osdc_create_event  )
EXPORT_SYMBOL ( ceph_osdc_cancel_event  )
EXPORT_SYMBOL ( ceph_osdc_wait_event  )
EXPORT_SYMBOL ( ceph_osdc_start_request  )
EXPORT_SYMBOL ( ceph_osdc_wait_request  )
EXPORT_SYMBOL ( ceph_osdc_sync  )
EXPORT_SYMBOL ( ceph_osdc_init  )
EXPORT_SYMBOL ( ceph_osdc_stop  )
EXPORT_SYMBOL ( ceph_osdc_readpages  )
EXPORT_SYMBOL ( ceph_osdc_writepages  )
void handle_watch_notify ( struct ceph_osd_client osdc,
struct ceph_msg msg 
)

Definition at line 1650 of file osd_client.c.