Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Macros | Functions
xfs_mount.c File Reference
#include "xfs.h"
#include "xfs_fs.h"
#include "xfs_types.h"
#include "xfs_bit.h"
#include "xfs_log.h"
#include "xfs_inum.h"
#include "xfs_trans.h"
#include "xfs_trans_priv.h"
#include "xfs_sb.h"
#include "xfs_ag.h"
#include "xfs_dir2.h"
#include "xfs_mount.h"
#include "xfs_bmap_btree.h"
#include "xfs_alloc_btree.h"
#include "xfs_ialloc_btree.h"
#include "xfs_dinode.h"
#include "xfs_inode.h"
#include "xfs_btree.h"
#include "xfs_ialloc.h"
#include "xfs_alloc.h"
#include "xfs_rtalloc.h"
#include "xfs_bmap.h"
#include "xfs_error.h"
#include "xfs_quota.h"
#include "xfs_fsops.h"
#include "xfs_utils.h"
#include "xfs_trace.h"

Go to the source code of this file.

Macros

#define xfs_icsb_balance_counter(mp, a, b)   do { } while (0)
 
#define xfs_icsb_balance_counter_locked(mp, a, b)   do { } while (0)
 

Functions

STATIC int xfs_uuid_mount (struct xfs_mount *mp)
 
STATIC void xfs_uuid_unmount (struct xfs_mount *mp)
 
struct xfs_peragxfs_perag_get (struct xfs_mount *mp, xfs_agnumber_t agno)
 
struct xfs_peragxfs_perag_get_tag (struct xfs_mount *mp, xfs_agnumber_t first, int tag)
 
void xfs_perag_put (struct xfs_perag *pag)
 
STATIC void __xfs_free_perag (struct rcu_head *head)
 
STATIC void xfs_free_perag (xfs_mount_t *mp)
 
int xfs_sb_validate_fsb_count (xfs_sb_t *sbp, __uint64_t nblocks)
 
STATIC int xfs_mount_validate_sb (xfs_mount_t *mp, xfs_sb_t *sbp, int flags)
 
int xfs_initialize_perag (xfs_mount_t *mp, xfs_agnumber_t agcount, xfs_agnumber_t *maxagi)
 
void xfs_sb_from_disk (struct xfs_mount *mp, xfs_dsb_t *from)
 
void xfs_sb_to_disk (xfs_dsb_t *to, xfs_sb_t *from, __int64_t fields)
 
int xfs_readsb (xfs_mount_t *mp, int flags)
 
STATIC void xfs_mount_common (xfs_mount_t *mp, xfs_sb_t *sbp)
 
STATIC int xfs_initialize_perag_data (xfs_mount_t *mp, xfs_agnumber_t agcount)
 
STATIC int xfs_update_alignment (xfs_mount_t *mp)
 
STATIC void xfs_set_maxicount (xfs_mount_t *mp)
 
STATIC void xfs_set_rw_sizes (xfs_mount_t *mp)
 
void xfs_set_low_space_thresholds (struct xfs_mount *mp)
 
STATIC void xfs_set_inoalignment (xfs_mount_t *mp)
 
STATIC int xfs_check_sizes (xfs_mount_t *mp)
 
int xfs_mount_reset_sbqflags (struct xfs_mount *mp)
 
__uint64_t xfs_default_resblks (xfs_mount_t *mp)
 
int xfs_mountfs (xfs_mount_t *mp)
 
void xfs_unmountfs (struct xfs_mount *mp)
 
int xfs_fs_writable (xfs_mount_t *mp)
 
int xfs_log_sbcount (xfs_mount_t *mp)
 
void xfs_mod_sb (xfs_trans_t *tp, __int64_t fields)
 
STATIC int xfs_mod_incore_sb_unlocked (xfs_mount_t *mp, xfs_sb_field_t field, int64_t delta, int rsvd)
 
int xfs_mod_incore_sb (struct xfs_mount *mp, xfs_sb_field_t field, int64_t delta, int rsvd)
 
int xfs_mod_incore_sb_batch (struct xfs_mount *mp, xfs_mod_sb_t *msb, uint nmsb, int rsvd)
 
struct xfs_bufxfs_getsb (struct xfs_mount *mp, int flags)
 
void xfs_freesb (struct xfs_mount *mp)
 
int xfs_mount_log_sb (xfs_mount_t *mp, __int64_t fields)
 
int xfs_dev_is_read_only (struct xfs_mount *mp, char *message)
 

Macro Definition Documentation

#define xfs_icsb_balance_counter (   mp,
  a,
  b 
)    do { } while (0)

Definition at line 55 of file xfs_mount.c.

#define xfs_icsb_balance_counter_locked (   mp,
  a,
  b 
)    do { } while (0)

Definition at line 56 of file xfs_mount.c.

Function Documentation

STATIC void __xfs_free_perag ( struct rcu_head head)

Definition at line 248 of file xfs_mount.c.

STATIC int xfs_check_sizes ( xfs_mount_t *  mp)

Definition at line 992 of file xfs_mount.c.

__uint64_t xfs_default_resblks ( xfs_mount_t *  mp)

Definition at line 1072 of file xfs_mount.c.

int xfs_dev_is_read_only ( struct xfs_mount *  mp,
char message 
)

Definition at line 1931 of file xfs_mount.c.

STATIC void xfs_free_perag ( xfs_mount_t *  mp)

Definition at line 261 of file xfs_mount.c.

void xfs_freesb ( struct xfs_mount *  mp)

Definition at line 1887 of file xfs_mount.c.

int xfs_fs_writable ( xfs_mount_t *  mp)

Definition at line 1519 of file xfs_mount.c.

struct xfs_buf* xfs_getsb ( struct xfs_mount *  mp,
int  flags 
)
read

Definition at line 1866 of file xfs_mount.c.

int xfs_initialize_perag ( xfs_mount_t *  mp,
xfs_agnumber_t  agcount,
xfs_agnumber_t maxagi 
)

Definition at line 438 of file xfs_mount.c.

STATIC int xfs_initialize_perag_data ( xfs_mount_t *  mp,
xfs_agnumber_t  agcount 
)

Definition at line 759 of file xfs_mount.c.

int xfs_log_sbcount ( xfs_mount_t *  mp)

Definition at line 1535 of file xfs_mount.c.

int xfs_mod_incore_sb ( struct xfs_mount *  mp,
xfs_sb_field_t  field,
int64_t  delta,
int  rsvd 
)

Definition at line 1787 of file xfs_mount.c.

int xfs_mod_incore_sb_batch ( struct xfs_mount *  mp,
xfs_mod_sb_t *  msb,
uint  nmsb,
int  rsvd 
)

Definition at line 1818 of file xfs_mount.c.

STATIC int xfs_mod_incore_sb_unlocked ( xfs_mount_t *  mp,
xfs_sb_field_t  field,
int64_t  delta,
int  rsvd 
)

Definition at line 1617 of file xfs_mount.c.

void xfs_mod_sb ( xfs_trans_t *  tp,
__int64_t  fields 
)

Definition at line 1574 of file xfs_mount.c.

STATIC void xfs_mount_common ( xfs_mount_t *  mp,
xfs_sb_t sbp 
)

Definition at line 715 of file xfs_mount.c.

int xfs_mount_log_sb ( xfs_mount_t *  mp,
__int64_t  fields 
)

Definition at line 1903 of file xfs_mount.c.

int xfs_mount_reset_sbqflags ( struct xfs_mount *  mp)

Definition at line 1033 of file xfs_mount.c.

STATIC int xfs_mount_validate_sb ( xfs_mount_t *  mp,
xfs_sb_t sbp,
int  flags 
)

Definition at line 303 of file xfs_mount.c.

int xfs_mountfs ( xfs_mount_t *  mp)

Definition at line 1100 of file xfs_mount.c.

struct xfs_perag* xfs_perag_get ( struct xfs_mount *  mp,
xfs_agnumber_t  agno 
)
read

Definition at line 195 of file xfs_mount.c.

struct xfs_perag* xfs_perag_get_tag ( struct xfs_mount *  mp,
xfs_agnumber_t  first,
int  tag 
)
read

Definition at line 215 of file xfs_mount.c.

void xfs_perag_put ( struct xfs_perag pag)

Definition at line 238 of file xfs_mount.c.

int xfs_readsb ( xfs_mount_t *  mp,
int  flags 
)

Definition at line 635 of file xfs_mount.c.

void xfs_sb_from_disk ( struct xfs_mount *  mp,
xfs_dsb_t from 
)

Definition at line 522 of file xfs_mount.c.

void xfs_sb_to_disk ( xfs_dsb_t to,
xfs_sb_t from,
__int64_t  fields 
)

Definition at line 582 of file xfs_mount.c.

int xfs_sb_validate_fsb_count ( xfs_sb_t sbp,
__uint64_t  nblocks 
)

Definition at line 282 of file xfs_mount.c.

STATIC void xfs_set_inoalignment ( xfs_mount_t *  mp)

Definition at line 969 of file xfs_mount.c.

void xfs_set_low_space_thresholds ( struct xfs_mount *  mp)

Definition at line 951 of file xfs_mount.c.

STATIC void xfs_set_maxicount ( xfs_mount_t *  mp)

Definition at line 888 of file xfs_mount.c.

STATIC void xfs_set_rw_sizes ( xfs_mount_t *  mp)

Definition at line 915 of file xfs_mount.c.

void xfs_unmountfs ( struct xfs_mount *  mp)

Definition at line 1424 of file xfs_mount.c.

STATIC int xfs_update_alignment ( xfs_mount_t *  mp)

Definition at line 811 of file xfs_mount.c.

STATIC int xfs_uuid_mount ( struct xfs_mount *  mp)

Definition at line 123 of file xfs_mount.c.

STATIC void xfs_uuid_unmount ( struct xfs_mount *  mp)

Definition at line 166 of file xfs_mount.c.

Variable Documentation

Definition at line 60 of file xfs_mount.c.

Definition at line 61 of file xfs_mount.c.