Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 38825
b: refs/heads/master
c: f2f7ba5
h: refs/heads/master
i:
  38823: 14e287d
v: v3
  • Loading branch information
Steven Whitehouse committed Sep 5, 2006
1 parent 381bc0e commit b32d749
Show file tree
Hide file tree
Showing 28 changed files with 78 additions and 3 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 2bdbc5d73961c040fdc9b30d985fab3047d697a0
refs/heads/master: f2f7ba5237e2fe10ba3e328a4f728b9e1ff141da
2 changes: 2 additions & 0 deletions trunk/fs/gfs2/acl.h
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,8 @@
#ifndef __ACL_DOT_H__
#define __ACL_DOT_H__

#include "incore.h"

#define GFS2_POSIX_ACL_ACCESS "posix_acl_access"
#define GFS2_POSIX_ACL_ACCESS_LEN 16
#define GFS2_POSIX_ACL_DEFAULT "posix_acl_default"
Expand Down
4 changes: 4 additions & 0 deletions trunk/fs/gfs2/bmap.h
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,10 @@
#ifndef __BMAP_DOT_H__
#define __BMAP_DOT_H__

struct inode;
struct gfs2_inode;
struct page;

int gfs2_unstuff_dinode(struct gfs2_inode *ip, struct page *page);
int gfs2_block_map(struct inode *inode, u64 lblock, int *new, u64 *dblock, int *boundary);
int gfs2_extent_map(struct inode *inode, u64 lblock, int *new, u64 *dblock, unsigned *extlen);
Expand Down
6 changes: 6 additions & 0 deletions trunk/fs/gfs2/dir.h
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,12 @@
#ifndef __DIR_DOT_H__
#define __DIR_DOT_H__

#include <linux/dcache.h>

struct inode;
struct gfs2_inode;
struct gfs2_inum;

/**
* gfs2_filldir_t - Report a directory entry to the caller of gfs2_dir_read()
* @opaque: opaque data used by the function
Expand Down
1 change: 1 addition & 0 deletions trunk/fs/gfs2/eaops.h
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@
#define __EAOPS_DOT_H__

struct gfs2_ea_request;
struct gfs2_inode;

struct gfs2_eattr_operations {
int (*eo_get) (struct gfs2_inode *ip, struct gfs2_ea_request *er);
Expand Down
3 changes: 3 additions & 0 deletions trunk/fs/gfs2/eattr.h
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,9 @@
#ifndef __EATTR_DOT_H__
#define __EATTR_DOT_H__

struct gfs2_inode;
struct iattr;

#define GFS2_EA_REC_LEN(ea) be32_to_cpu((ea)->ea_rec_len)
#define GFS2_EA_DATA_LEN(ea) be32_to_cpu((ea)->ea_data_len)

Expand Down
2 changes: 2 additions & 0 deletions trunk/fs/gfs2/glock.h
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,8 @@
#ifndef __GLOCK_DOT_H__
#define __GLOCK_DOT_H__

#include "incore.h"

/* Flags for lock requests; used in gfs2_holder gh_flag field.
From lm_interface.h:
#define LM_FLAG_TRY 0x00000001
Expand Down
2 changes: 2 additions & 0 deletions trunk/fs/gfs2/glops.h
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,8 @@
#ifndef __GLOPS_DOT_H__
#define __GLOPS_DOT_H__

#include "incore.h"

extern const struct gfs2_glock_operations gfs2_meta_glops;
extern const struct gfs2_glock_operations gfs2_inode_glops;
extern const struct gfs2_glock_operations gfs2_rgrp_glops;
Expand Down
2 changes: 2 additions & 0 deletions trunk/fs/gfs2/incore.h
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,8 @@
#ifndef __INCORE_DOT_H__
#define __INCORE_DOT_H__

#include <linux/fs.h>

#define DIO_FORCE 0x00000001
#define DIO_CLEAN 0x00000002
#define DIO_DIRTY 0x00000004
Expand Down
2 changes: 2 additions & 0 deletions trunk/fs/gfs2/lm.h
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,8 @@
#ifndef __LM_DOT_H__
#define __LM_DOT_H__

struct gfs2_sbd;

#define GFS2_MIN_LVB_SIZE 32

int gfs2_lm_mount(struct gfs2_sbd *sdp, int silent);
Expand Down
4 changes: 4 additions & 0 deletions trunk/fs/gfs2/log.h
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,10 @@
#ifndef __LOG_DOT_H__
#define __LOG_DOT_H__

#include <linux/list.h>
#include <linux/spinlock.h>
#include "incore.h"

/**
* gfs2_log_lock - acquire the right to mess with the log manager
* @sdp: the filesystem
Expand Down
3 changes: 3 additions & 0 deletions trunk/fs/gfs2/lops.h
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,9 @@
#ifndef __LOPS_DOT_H__
#define __LOPS_DOT_H__

#include <linux/list.h>
#include "incore.h"

extern const struct gfs2_log_operations gfs2_glock_lops;
extern const struct gfs2_log_operations gfs2_buf_lops;
extern const struct gfs2_log_operations gfs2_revoke_lops;
Expand Down
4 changes: 4 additions & 0 deletions trunk/fs/gfs2/meta_io.h
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,10 @@
#ifndef __DIO_DOT_H__
#define __DIO_DOT_H__

#include <linux/buffer_head.h>
#include <linux/string.h>
#include "incore.h"

static inline void gfs2_buffer_clear(struct buffer_head *bh)
{
memset(bh->b_data, 0, bh->b_size);
Expand Down
2 changes: 2 additions & 0 deletions trunk/fs/gfs2/mount.h
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,8 @@
#ifndef __MOUNT_DOT_H__
#define __MOUNT_DOT_H__

struct gfs2_sbd;

int gfs2_mount_args(struct gfs2_sbd *sdp, char *data_arg, int remount);

#endif /* __MOUNT_DOT_H__ */
4 changes: 4 additions & 0 deletions trunk/fs/gfs2/ops_address.h
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,10 @@
#ifndef __OPS_ADDRESS_DOT_H__
#define __OPS_ADDRESS_DOT_H__

#include <linux/fs.h>
#include <linux/buffer_head.h>
#include <linux/mm.h>

extern const struct address_space_operations gfs2_file_aops;
extern int gfs2_get_block(struct inode *inode, sector_t lblock,
struct buffer_head *bh_result, int create);
Expand Down
2 changes: 2 additions & 0 deletions trunk/fs/gfs2/ops_dentry.h
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,8 @@
#ifndef __OPS_DENTRY_DOT_H__
#define __OPS_DENTRY_DOT_H__

#include <linux/dcache.h>

extern struct dentry_operations gfs2_dops;

#endif /* __OPS_DENTRY_DOT_H__ */
4 changes: 4 additions & 0 deletions trunk/fs/gfs2/ops_file.h
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,10 @@

#ifndef __OPS_FILE_DOT_H__
#define __OPS_FILE_DOT_H__

#include <linux/fs.h>
struct gfs2_inode;

extern struct file gfs2_internal_file_sentinel;
extern int gfs2_internal_read(struct gfs2_inode *ip,
struct file_ra_state *ra_state,
Expand Down
2 changes: 2 additions & 0 deletions trunk/fs/gfs2/ops_fstype.h
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,8 @@
#ifndef __OPS_FSTYPE_DOT_H__
#define __OPS_FSTYPE_DOT_H__

#include <linux/fs.h>

extern struct file_system_type gfs2_fs_type;
extern struct file_system_type gfs2meta_fs_type;

Expand Down
2 changes: 2 additions & 0 deletions trunk/fs/gfs2/ops_inode.h
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,8 @@
#ifndef __OPS_INODE_DOT_H__
#define __OPS_INODE_DOT_H__

#include <linux/fs.h>

extern struct inode_operations gfs2_file_iops;
extern struct inode_operations gfs2_dir_iops;
extern struct inode_operations gfs2_symlink_iops;
Expand Down
2 changes: 2 additions & 0 deletions trunk/fs/gfs2/ops_super.h
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,8 @@
#ifndef __OPS_SUPER_DOT_H__
#define __OPS_SUPER_DOT_H__

#include <linux/fs.h>

extern struct super_operations gfs2_super_ops;

#endif /* __OPS_SUPER_DOT_H__ */
2 changes: 2 additions & 0 deletions trunk/fs/gfs2/ops_vm.h
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,8 @@
#ifndef __OPS_VM_DOT_H__
#define __OPS_VM_DOT_H__

#include <linux/mm.h>

extern struct vm_operations_struct gfs2_vm_ops_private;
extern struct vm_operations_struct gfs2_vm_ops_sharewrite;

Expand Down
3 changes: 3 additions & 0 deletions trunk/fs/gfs2/quota.h
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,9 @@
#ifndef __QUOTA_DOT_H__
#define __QUOTA_DOT_H__

struct gfs2_inode;
struct gfs2_sbd;

#define NO_QUOTA_CHANGE ((u32)-1)

int gfs2_quota_hold(struct gfs2_inode *ip, u32 uid, u32 gid);
Expand Down
2 changes: 2 additions & 0 deletions trunk/fs/gfs2/recovery.h
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,8 @@
#ifndef __RECOVERY_DOT_H__
#define __RECOVERY_DOT_H__

#include "incore.h"

static inline void gfs2_replay_incr_blk(struct gfs2_sbd *sdp, unsigned int *blk)
{
if (++*blk == sdp->sd_jdesc->jd_blocks)
Expand Down
4 changes: 4 additions & 0 deletions trunk/fs/gfs2/rgrp.h
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,10 @@
#ifndef __RGRP_DOT_H__
#define __RGRP_DOT_H__

struct gfs2_rgrpd;
struct gfs2_sbd;
struct gfs2_holder;

void gfs2_rgrp_verify(struct gfs2_rgrpd *rgd);

struct gfs2_rgrpd *gfs2_blk2rgrpd(struct gfs2_sbd *sdp, u64 blk);
Expand Down
2 changes: 2 additions & 0 deletions trunk/fs/gfs2/super.h
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,8 @@
#ifndef __SUPER_DOT_H__
#define __SUPER_DOT_H__

#include "incore.h"

void gfs2_tune_init(struct gfs2_tune *gt);

int gfs2_check_sb(struct gfs2_sbd *sdp, struct gfs2_sb *sb, int silent);
Expand Down
3 changes: 3 additions & 0 deletions trunk/fs/gfs2/sys.h
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,9 @@
#ifndef __SYS_DOT_H__
#define __SYS_DOT_H__

#include <linux/spinlock.h>
struct gfs2_sbd;

/* Allow args to be passed to GFS2 when using an initial ram disk */
extern char *gfs2_sys_margs;
extern spinlock_t gfs2_sys_margs_lock;
Expand Down
9 changes: 7 additions & 2 deletions trunk/fs/gfs2/trans.h
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,11 @@
#ifndef __TRANS_DOT_H__
#define __TRANS_DOT_H__

#include <linux/buffer_head.h>
struct gfs2_sbd;
struct gfs2_rgrpd;
struct gfs2_glock;

#define RES_DINODE 1
#define RES_INDIRECT 1
#define RES_JDATA 1
Expand All @@ -20,8 +25,8 @@
#define RES_STATFS 1
#define RES_QUOTA 2

int gfs2_trans_begin(struct gfs2_sbd *sdp,
unsigned int blocks, unsigned int revokes);
int gfs2_trans_begin(struct gfs2_sbd *sdp, unsigned int blocks,
unsigned int revokes);

void gfs2_trans_end(struct gfs2_sbd *sdp);

Expand Down
1 change: 1 addition & 0 deletions trunk/fs/gfs2/util.h
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@
#ifndef __UTIL_DOT_H__
#define __UTIL_DOT_H__

#include "incore.h"

#define fs_printk(level, fs, fmt, arg...) \
printk(level "GFS2: fsid=%s: " fmt , (fs)->sd_fsname , ## arg)
Expand Down

0 comments on commit b32d749

Please sign in to comment.