Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Structures | Macros | Typedefs | Functions
xfs_filestream.c File Reference
#include "xfs.h"
#include "xfs_bmap_btree.h"
#include "xfs_inum.h"
#include "xfs_dinode.h"
#include "xfs_inode.h"
#include "xfs_ag.h"
#include "xfs_log.h"
#include "xfs_trans.h"
#include "xfs_sb.h"
#include "xfs_mount.h"
#include "xfs_bmap.h"
#include "xfs_alloc.h"
#include "xfs_utils.h"
#include "xfs_mru_cache.h"
#include "xfs_filestream.h"
#include "xfs_trace.h"

Go to the source code of this file.

Data Structures

struct  fstrm_item
 

Macros

#define TRACE_AG_SCAN(mp, ag, ag2)
 
#define TRACE_AG_PICK1(mp, max_ag, maxfree)
 
#define TRACE_AG_PICK2(mp, ag, ag2, cnt, free, scan, flag)
 
#define TRACE_UPDATE(mp, ip, ag, cnt, ag2, cnt2)
 
#define TRACE_FREE(mp, ip, pip, ag, cnt)
 
#define TRACE_LOOKUP(mp, ip, pip, ag, cnt)
 
#define TRACE_ASSOCIATE(mp, ip, pip, ag, cnt)
 
#define TRACE_MOVEAG(mp, ip, pip, oag, ocnt, nag, ncnt)
 
#define TRACE_ORPHAN(mp, ip, ag)
 

Typedefs

typedef struct fstrm_item fstrm_item_t
 

Functions

STATIC void xfs_fstrm_free_func (unsigned long ino, void *data)
 
int xfs_filestream_init (void)
 
void xfs_filestream_uninit (void)
 
int xfs_filestream_mount (xfs_mount_t *mp)
 
void xfs_filestream_unmount (xfs_mount_t *mp)
 
xfs_agnumber_t xfs_filestream_lookup_ag (xfs_inode_t *ip)
 
int xfs_filestream_associate (xfs_inode_t *pip, xfs_inode_t *ip)
 
int xfs_filestream_new_ag (xfs_bmalloca_t *ap, xfs_agnumber_t *agp)
 
void xfs_filestream_deassociate (xfs_inode_t *ip)
 

Macro Definition Documentation

#define TRACE_AG_PICK1 (   mp,
  max_ag,
  maxfree 
)

Definition at line 101 of file xfs_filestream.c.

#define TRACE_AG_PICK2 (   mp,
  ag,
  ag2,
  cnt,
  free,
  scan,
  flag 
)

Definition at line 102 of file xfs_filestream.c.

#define TRACE_AG_SCAN (   mp,
  ag,
  ag2 
)

Definition at line 100 of file xfs_filestream.c.

#define TRACE_ASSOCIATE (   mp,
  ip,
  pip,
  ag,
  cnt 
)

Definition at line 106 of file xfs_filestream.c.

#define TRACE_FREE (   mp,
  ip,
  pip,
  ag,
  cnt 
)

Definition at line 104 of file xfs_filestream.c.

#define TRACE_LOOKUP (   mp,
  ip,
  pip,
  ag,
  cnt 
)

Definition at line 105 of file xfs_filestream.c.

#define TRACE_MOVEAG (   mp,
  ip,
  pip,
  oag,
  ocnt,
  nag,
  ncnt 
)

Definition at line 107 of file xfs_filestream.c.

#define TRACE_ORPHAN (   mp,
  ip,
  ag 
)

Definition at line 108 of file xfs_filestream.c.

#define TRACE_UPDATE (   mp,
  ip,
  ag,
  cnt,
  ag2,
  cnt2 
)

Definition at line 103 of file xfs_filestream.c.

Typedef Documentation

Function Documentation

int xfs_filestream_associate ( xfs_inode_t *  pip,
xfs_inode_t *  ip 
)

Definition at line 572 of file xfs_filestream.c.

void xfs_filestream_deassociate ( xfs_inode_t *  ip)

Definition at line 818 of file xfs_filestream.c.

int xfs_filestream_init ( void  )

Definition at line 467 of file xfs_filestream.c.

xfs_agnumber_t xfs_filestream_lookup_ag ( xfs_inode_t *  ip)

Definition at line 532 of file xfs_filestream.c.

int xfs_filestream_mount ( xfs_mount_t *  mp)

Definition at line 492 of file xfs_filestream.c.

int xfs_filestream_new_ag ( xfs_bmalloca_t ap,
xfs_agnumber_t agp 
)

Definition at line 670 of file xfs_filestream.c.

void xfs_filestream_uninit ( void  )

Definition at line 481 of file xfs_filestream.c.

void xfs_filestream_unmount ( xfs_mount_t *  mp)

Definition at line 521 of file xfs_filestream.c.

STATIC void xfs_fstrm_free_func ( unsigned long  ino,
void data 
)

Definition at line 424 of file xfs_filestream.c.