Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Structures | Macros | Enumerations | Functions | Variables
super.c File Reference
#include <linux/bio.h>
#include <linux/sched.h>
#include <linux/slab.h>
#include <linux/spinlock.h>
#include <linux/completion.h>
#include <linux/buffer_head.h>
#include <linux/statfs.h>
#include <linux/seq_file.h>
#include <linux/mount.h>
#include <linux/kthread.h>
#include <linux/delay.h>
#include <linux/gfs2_ondisk.h>
#include <linux/crc32.h>
#include <linux/time.h>
#include <linux/wait.h>
#include <linux/writeback.h>
#include <linux/backing-dev.h>
#include "gfs2.h"
#include "incore.h"
#include "bmap.h"
#include "dir.h"
#include "glock.h"
#include "glops.h"
#include "inode.h"
#include "log.h"
#include "meta_io.h"
#include "quota.h"
#include "recovery.h"
#include "rgrp.h"
#include "super.h"
#include "trans.h"
#include "util.h"
#include "sys.h"
#include "xattr.h"

Go to the source code of this file.

Data Structures

struct  lfcc
 

Macros

#define args_neq(a1, a2, x)   ((a1)->ar_##x != (a2)->ar_##x)
 

Enumerations

enum  {
  Opt_lockproto, Opt_locktable, Opt_hostdata, Opt_spectator,
  Opt_ignore_local_fs, Opt_localflocks, Opt_localcaching, Opt_debug,
  Opt_nodebug, Opt_upgrade, Opt_acl, Opt_noacl,
  Opt_quota_off, Opt_quota_account, Opt_quota_on, Opt_quota,
  Opt_noquota, Opt_suiddir, Opt_nosuiddir, Opt_data_writeback,
  Opt_data_ordered, Opt_meta, Opt_discard, Opt_nodiscard,
  Opt_commit, Opt_err_withdraw, Opt_err_panic, Opt_statfs_quantum,
  Opt_statfs_percent, Opt_quota_quantum, Opt_barrier, Opt_nobarrier,
  Opt_rgrplvb, Opt_norgrplvb, Opt_error
}
 

Functions

int gfs2_mount_args (struct gfs2_args *args, char *options)
 
void gfs2_jindex_free (struct gfs2_sbd *sdp)
 
struct gfs2_jdescgfs2_jdesc_find (struct gfs2_sbd *sdp, unsigned int jid)
 
int gfs2_jdesc_check (struct gfs2_jdesc *jd)
 
int gfs2_make_fs_rw (struct gfs2_sbd *sdp)
 
void gfs2_statfs_change_in (struct gfs2_statfs_change_host *sc, const void *buf)
 
int gfs2_statfs_init (struct gfs2_sbd *sdp)
 
void gfs2_statfs_change (struct gfs2_sbd *sdp, s64 total, s64 free, s64 dinodes)
 
void update_statfs (struct gfs2_sbd *sdp, struct buffer_head *m_bh, struct buffer_head *l_bh)
 
int gfs2_statfs_sync (struct super_block *sb, int type)
 
int gfs2_freeze_fs (struct gfs2_sbd *sdp)
 
void gfs2_unfreeze_fs (struct gfs2_sbd *sdp)
 
void gfs2_dinode_out (const struct gfs2_inode *ip, void *buf)
 

Variables

struct super_operations gfs2_super_ops
 

Macro Definition Documentation

#define args_neq (   a1,
  a2,
  x 
)    ((a1)->ar_##x != (a2)->ar_##x)

Definition at line 46 of file super.c.

Enumeration Type Documentation

anonymous enum
Enumerator:
Opt_lockproto 
Opt_locktable 
Opt_hostdata 
Opt_spectator 
Opt_ignore_local_fs 
Opt_localflocks 
Opt_localcaching 
Opt_debug 
Opt_nodebug 
Opt_upgrade 
Opt_acl 
Opt_noacl 
Opt_quota_off 
Opt_quota_account 
Opt_quota_on 
Opt_quota 
Opt_noquota 
Opt_suiddir 
Opt_nosuiddir 
Opt_data_writeback 
Opt_data_ordered 
Opt_meta 
Opt_discard 
Opt_nodiscard 
Opt_commit 
Opt_err_withdraw 
Opt_err_panic 
Opt_statfs_quantum 
Opt_statfs_percent 
Opt_quota_quantum 
Opt_barrier 
Opt_nobarrier 
Opt_rgrplvb 
Opt_norgrplvb 
Opt_error 

Definition at line 48 of file super.c.

Function Documentation

void gfs2_dinode_out ( const struct gfs2_inode ip,
void buf 
)

Definition at line 714 of file super.c.

int gfs2_freeze_fs ( struct gfs2_sbd sdp)

gfs2_freeze_fs - freezes the file system : the file system

This function flushes data and meta data for all machines by acquiring the transaction log exclusively. All journals are ensured to be in a clean state as well.

Returns: errno

Definition at line 677 of file super.c.

int gfs2_jdesc_check ( struct gfs2_jdesc jd)

Definition at line 353 of file super.c.

struct gfs2_jdesc* gfs2_jdesc_find ( struct gfs2_sbd sdp,
unsigned int  jid 
)
read

Definition at line 342 of file super.c.

void gfs2_jindex_free ( struct gfs2_sbd sdp)

gfs2_jindex_free - Clear all the journal index information : The GFS2 superblock

Definition at line 296 of file super.c.

int gfs2_make_fs_rw ( struct gfs2_sbd sdp)

gfs2_make_fs_rw - Turn a Read-Only FS into a Read-Write one : the filesystem

Returns: errno

Definition at line 379 of file super.c.

int gfs2_mount_args ( struct gfs2_args args,
char options 
)

gfs2_mount_args - Parse mount options : The structure into which the parsed options will be written : The options to parse

Return: errno

Definition at line 133 of file super.c.

void gfs2_statfs_change ( struct gfs2_sbd sdp,
s64  total,
s64  free,
s64  dinodes 
)

Definition at line 488 of file super.c.

void gfs2_statfs_change_in ( struct gfs2_statfs_change_host sc,
const void buf 
)

Definition at line 424 of file super.c.

int gfs2_statfs_init ( struct gfs2_sbd sdp)

Definition at line 442 of file super.c.

int gfs2_statfs_sync ( struct super_block sb,
int  type 
)

Definition at line 546 of file super.c.

void gfs2_unfreeze_fs ( struct gfs2_sbd sdp)

gfs2_unfreeze_fs - unfreezes the file system : the file system

This function allows the file system to proceed by unlocking the exclusively held transaction lock. Other GFS2 nodes are now free to acquire the lock shared and go on with their lives.

Definition at line 704 of file super.c.

void update_statfs ( struct gfs2_sbd sdp,
struct buffer_head *  m_bh,
struct buffer_head *  l_bh 
)

Definition at line 523 of file super.c.

Variable Documentation

struct super_operations gfs2_super_ops
Initial value:
= {
.alloc_inode = gfs2_alloc_inode,
.destroy_inode = gfs2_destroy_inode,
.write_inode = gfs2_write_inode,
.dirty_inode = gfs2_dirty_inode,
.evict_inode = gfs2_evict_inode,
.put_super = gfs2_put_super,
.sync_fs = gfs2_sync_fs,
.freeze_fs = gfs2_freeze,
.unfreeze_fs = gfs2_unfreeze,
.statfs = gfs2_statfs,
.remount_fs = gfs2_remount_fs,
.drop_inode = gfs2_drop_inode,
.show_options = gfs2_show_options,
}

Definition at line 1618 of file super.c.