Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Macros | Functions
caps.c File Reference
#include <linux/ceph/ceph_debug.h>
#include <linux/fs.h>
#include <linux/kernel.h>
#include <linux/sched.h>
#include <linux/slab.h>
#include <linux/vmalloc.h>
#include <linux/wait.h>
#include <linux/writeback.h>
#include "super.h"
#include "mds_client.h"
#include <linux/ceph/decode.h>
#include <linux/ceph/messenger.h>

Go to the source code of this file.

Macros

#define MAX_CAP_STR   20
 

Functions

const charceph_cap_string (int caps)
 
void ceph_caps_init (struct ceph_mds_client *mdsc)
 
void ceph_caps_finalize (struct ceph_mds_client *mdsc)
 
void ceph_adjust_min_caps (struct ceph_mds_client *mdsc, int delta)
 
int ceph_reserve_caps (struct ceph_mds_client *mdsc, struct ceph_cap_reservation *ctx, int need)
 
int ceph_unreserve_caps (struct ceph_mds_client *mdsc, struct ceph_cap_reservation *ctx)
 
void ceph_put_cap (struct ceph_mds_client *mdsc, struct ceph_cap *cap)
 
void ceph_reservation_status (struct ceph_fs_client *fsc, int *total, int *avail, int *used, int *reserved, int *min)
 
struct ceph_capceph_get_cap_for_mds (struct ceph_inode_info *ci, int mds)
 
int ceph_get_cap_mds (struct inode *inode)
 
int ceph_add_cap (struct inode *inode, struct ceph_mds_session *session, u64 cap_id, int fmode, unsigned issued, unsigned wanted, unsigned seq, unsigned mseq, u64 realmino, int flags, struct ceph_cap_reservation *caps_reservation)
 
int __ceph_caps_issued (struct ceph_inode_info *ci, int *implemented)
 
int __ceph_caps_issued_other (struct ceph_inode_info *ci, struct ceph_cap *ocap)
 
int __ceph_caps_issued_mask (struct ceph_inode_info *ci, int mask, int touch)
 
int ceph_caps_revoking (struct ceph_inode_info *ci, int mask)
 
int __ceph_caps_used (struct ceph_inode_info *ci)
 
int __ceph_caps_file_wanted (struct ceph_inode_info *ci)
 
int __ceph_caps_mds_wanted (struct ceph_inode_info *ci)
 
void __ceph_remove_cap (struct ceph_cap *cap)
 
void ceph_queue_caps_release (struct inode *inode)
 
void __ceph_flush_snaps (struct ceph_inode_info *ci, struct ceph_mds_session **psession, int again) __releases(ci-> i_ceph_lock) __acquires(ci->i_ceph_lock)
 
int __ceph_mark_dirty_caps (struct ceph_inode_info *ci, int mask)
 
void ceph_check_caps (struct ceph_inode_info *ci, int flags, struct ceph_mds_session *session)
 
int ceph_fsync (struct file *file, loff_t start, loff_t end, int datasync)
 
int ceph_write_inode (struct inode *inode, struct writeback_control *wbc)
 
void ceph_kick_flushing_caps (struct ceph_mds_client *mdsc, struct ceph_mds_session *session)
 
int ceph_get_caps (struct ceph_inode_info *ci, int need, int want, int *got, loff_t endoff)
 
void ceph_get_cap_refs (struct ceph_inode_info *ci, int caps)
 
void ceph_put_cap_refs (struct ceph_inode_info *ci, int had)
 
void ceph_put_wrbuffer_cap_refs (struct ceph_inode_info *ci, int nr, struct ceph_snap_context *snapc)
 
void ceph_handle_caps (struct ceph_mds_session *session, struct ceph_msg *msg)
 
void ceph_check_delayed_caps (struct ceph_mds_client *mdsc)
 
void ceph_flush_dirty_caps (struct ceph_mds_client *mdsc)
 
void ceph_put_fmode (struct ceph_inode_info *ci, int fmode)
 
int ceph_encode_inode_release (void **p, struct inode *inode, int mds, int drop, int unless, int force)
 
int ceph_encode_dentry_release (void **p, struct dentry *dentry, int mds, int drop, int unless)
 

Macro Definition Documentation

#define MAX_CAP_STR   20

Definition at line 46 of file caps.c.

Function Documentation

int __ceph_caps_file_wanted ( struct ceph_inode_info ci)

Definition at line 830 of file caps.c.

int __ceph_caps_issued ( struct ceph_inode_info ci,
int implemented 
)

Definition at line 664 of file caps.c.

int __ceph_caps_issued_mask ( struct ceph_inode_info ci,
int  mask,
int  touch 
)

Definition at line 730 of file caps.c.

int __ceph_caps_issued_other ( struct ceph_inode_info ci,
struct ceph_cap ocap 
)

Definition at line 688 of file caps.c.

int __ceph_caps_mds_wanted ( struct ceph_inode_info ci)

Definition at line 843 of file caps.c.

int __ceph_caps_used ( struct ceph_inode_info ci)

Definition at line 811 of file caps.c.

void __ceph_flush_snaps ( struct ceph_inode_info ci,
struct ceph_mds_session **  psession,
int  again 
) -> i_ceph_lock) __acquires(ci->i_ceph_lock)

Definition at line 1204 of file caps.c.

int __ceph_mark_dirty_caps ( struct ceph_inode_info ci,
int  mask 
)

Definition at line 1336 of file caps.c.

void __ceph_remove_cap ( struct ceph_cap cap)

Definition at line 872 of file caps.c.

int ceph_add_cap ( struct inode inode,
struct ceph_mds_session session,
u64  cap_id,
int  fmode,
unsigned  issued,
unsigned  wanted,
unsigned  seq,
unsigned  mseq,
u64  realmino,
int  flags,
struct ceph_cap_reservation caps_reservation 
)

Definition at line 512 of file caps.c.

void ceph_adjust_min_caps ( struct ceph_mds_client mdsc,
int  delta 
)

Definition at line 142 of file caps.c.

const char* ceph_cap_string ( int  caps)

Definition at line 70 of file caps.c.

void ceph_caps_finalize ( struct ceph_mds_client mdsc)

Definition at line 123 of file caps.c.

void ceph_caps_init ( struct ceph_mds_client mdsc)

Definition at line 117 of file caps.c.

int ceph_caps_revoking ( struct ceph_inode_info ci,
int  mask 
)

Definition at line 789 of file caps.c.

void ceph_check_caps ( struct ceph_inode_info ci,
int  flags,
struct ceph_mds_session session 
)

Definition at line 1450 of file caps.c.

void ceph_check_delayed_caps ( struct ceph_mds_client mdsc)

Definition at line 2907 of file caps.c.

int ceph_encode_dentry_release ( void **  p,
struct dentry dentry,
int  mds,
int  drop,
int  unless 
)

Definition at line 3054 of file caps.c.

int ceph_encode_inode_release ( void **  p,
struct inode inode,
int  mds,
int  drop,
int  unless,
int  force 
)

Definition at line 2986 of file caps.c.

void ceph_flush_dirty_caps ( struct ceph_mds_client mdsc)

Definition at line 2934 of file caps.c.

int ceph_fsync ( struct file file,
loff_t  start,
loff_t  end,
int  datasync 
)

Definition at line 1811 of file caps.c.

struct ceph_cap* ceph_get_cap_for_mds ( struct ceph_inode_info ci,
int  mds 
)
read

Definition at line 331 of file caps.c.

int ceph_get_cap_mds ( struct inode inode)

Definition at line 362 of file caps.c.

void ceph_get_cap_refs ( struct ceph_inode_info ci,
int  caps 
)

Definition at line 2140 of file caps.c.

int ceph_get_caps ( struct ceph_inode_info ci,
int  need,
int  want,
int got,
loff_t  endoff 
)

Definition at line 2115 of file caps.c.

void ceph_handle_caps ( struct ceph_mds_session session,
struct ceph_msg msg 
)

Definition at line 2758 of file caps.c.

void ceph_kick_flushing_caps ( struct ceph_mds_client mdsc,
struct ceph_mds_session session 
)

Definition at line 1910 of file caps.c.

void ceph_put_cap ( struct ceph_mds_client mdsc,
struct ceph_cap cap 
)

Definition at line 266 of file caps.c.

void ceph_put_cap_refs ( struct ceph_inode_info ci,
int  had 
)

Definition at line 2156 of file caps.c.

void ceph_put_fmode ( struct ceph_inode_info ci,
int  fmode 
)

Definition at line 2961 of file caps.c.

void ceph_put_wrbuffer_cap_refs ( struct ceph_inode_info ci,
int  nr,
struct ceph_snap_context snapc 
)

Definition at line 2217 of file caps.c.

void ceph_queue_caps_release ( struct inode inode)

Definition at line 1034 of file caps.c.

void ceph_reservation_status ( struct ceph_fs_client fsc,
int total,
int avail,
int used,
int reserved,
int min 
)

Definition at line 291 of file caps.c.

int ceph_reserve_caps ( struct ceph_mds_client mdsc,
struct ceph_cap_reservation ctx,
int  need 
)

Definition at line 150 of file caps.c.

int ceph_unreserve_caps ( struct ceph_mds_client mdsc,
struct ceph_cap_reservation ctx 
)

Definition at line 209 of file caps.c.

int ceph_write_inode ( struct inode inode,
struct writeback_control wbc 
)

Definition at line 1852 of file caps.c.