~ [ source navigation ] ~ [ diff markup ] ~ [ identifier search ] ~

TOMOYO Linux Cross Reference
Linux/fs/gfs2/trans.h

Version: ~ [ linux-5.16 ] ~ [ linux-5.15.13 ] ~ [ linux-5.14.21 ] ~ [ linux-5.13.19 ] ~ [ linux-5.12.19 ] ~ [ linux-5.11.22 ] ~ [ linux-5.10.90 ] ~ [ linux-5.9.16 ] ~ [ linux-5.8.18 ] ~ [ linux-5.7.19 ] ~ [ linux-5.6.19 ] ~ [ linux-5.5.19 ] ~ [ linux-5.4.170 ] ~ [ linux-5.3.18 ] ~ [ linux-5.2.21 ] ~ [ linux-5.1.21 ] ~ [ linux-5.0.21 ] ~ [ linux-4.20.17 ] ~ [ linux-4.19.224 ] ~ [ linux-4.18.20 ] ~ [ linux-4.17.19 ] ~ [ linux-4.16.18 ] ~ [ linux-4.15.18 ] ~ [ linux-4.14.261 ] ~ [ linux-4.13.16 ] ~ [ linux-4.12.14 ] ~ [ linux-4.11.12 ] ~ [ linux-4.10.17 ] ~ [ linux-4.9.296 ] ~ [ linux-4.8.17 ] ~ [ linux-4.7.10 ] ~ [ linux-4.6.7 ] ~ [ linux-4.5.7 ] ~ [ linux-4.4.298 ] ~ [ linux-4.3.6 ] ~ [ linux-4.2.8 ] ~ [ linux-4.1.52 ] ~ [ linux-4.0.9 ] ~ [ linux-3.18.140 ] ~ [ linux-3.16.85 ] ~ [ linux-3.14.79 ] ~ [ linux-3.12.74 ] ~ [ linux-3.10.108 ] ~ [ linux-2.6.32.71 ] ~ [ linux-2.6.0 ] ~ [ linux-2.4.37.11 ] ~ [ unix-v6-master ] ~ [ ccs-tools-1.8.5 ] ~ [ policy-sample ] ~
Architecture: ~ [ i386 ] ~ [ alpha ] ~ [ m68k ] ~ [ mips ] ~ [ ppc ] ~ [ sparc ] ~ [ sparc64 ] ~

  1 /*
  2  * Copyright (C) Sistina Software, Inc.  1997-2003 All rights reserved.
  3  * Copyright (C) 2004-2006 Red Hat, Inc.  All rights reserved.
  4  *
  5  * This copyrighted material is made available to anyone wishing to use,
  6  * modify, copy, or redistribute it subject to the terms and conditions
  7  * of the GNU General Public License version 2.
  8  */
  9 
 10 #ifndef __TRANS_DOT_H__
 11 #define __TRANS_DOT_H__
 12 
 13 #include <linux/buffer_head.h>
 14 struct gfs2_sbd;
 15 struct gfs2_rgrpd;
 16 struct gfs2_glock;
 17 
 18 #define RES_DINODE      1
 19 #define RES_INDIRECT    1
 20 #define RES_JDATA       1
 21 #define RES_DATA        1
 22 #define RES_LEAF        1
 23 #define RES_RG_HDR      1
 24 #define RES_RG_BIT      2
 25 #define RES_EATTR       1
 26 #define RES_STATFS      1
 27 #define RES_QUOTA       2
 28 
 29 /* reserve either the number of blocks to be allocated plus the rg header
 30  * block, or all of the blocks in the rg, whichever is smaller */
 31 static inline unsigned int gfs2_rg_blocks(const struct gfs2_inode *ip, unsigned requested)
 32 {
 33         if (requested < ip->i_rgd->rd_length)
 34                 return requested + 1;
 35         return ip->i_rgd->rd_length;
 36 }
 37 
 38 extern int gfs2_trans_begin(struct gfs2_sbd *sdp, unsigned int blocks,
 39                             unsigned int revokes);
 40 
 41 extern void gfs2_trans_end(struct gfs2_sbd *sdp);
 42 extern void gfs2_trans_add_data(struct gfs2_glock *gl, struct buffer_head *bh);
 43 extern void gfs2_trans_add_meta(struct gfs2_glock *gl, struct buffer_head *bh);
 44 extern void gfs2_trans_add_revoke(struct gfs2_sbd *sdp, struct gfs2_bufdata *bd);
 45 extern void gfs2_trans_add_unrevoke(struct gfs2_sbd *sdp, u64 blkno, unsigned int len);
 46 
 47 #endif /* __TRANS_DOT_H__ */
 48 

~ [ source navigation ] ~ [ diff markup ] ~ [ identifier search ] ~

kernel.org | git.kernel.org | LWN.net | Project Home | Wiki (Japanese) | Wiki (English) | SVN repository | Mail admin

Linux® is a registered trademark of Linus Torvalds in the United States and other countries.
TOMOYO® is a registered trademark of NTT DATA CORPORATION.

osdn.jp