[Ocfs2-tools-commits] mfasheh commits r527 - trunk/libocfs2/include

svn-commits at oss.oracle.com svn-commits at oss.oracle.com
Thu Dec 30 17:34:53 CST 2004


Author: mfasheh
Date: 2004-12-30 17:34:51 -0600 (Thu, 30 Dec 2004)
New Revision: 527

Modified:
   trunk/libocfs2/include/ocfs2_fs.h
Log:
* sync up the ocfs2-tools version of the file system disk layout with
  the module.



Modified: trunk/libocfs2/include/ocfs2_fs.h
===================================================================
--- trunk/libocfs2/include/ocfs2_fs.h	2004-12-30 23:20:53 UTC (rev 526)
+++ trunk/libocfs2/include/ocfs2_fs.h	2004-12-30 23:34:51 UTC (rev 527)
@@ -383,6 +383,7 @@
 		ocfs2_local_alloc i_lab;
 		ocfs2_chain_list  i_chain;
 		ocfs2_extent_list i_list;
+		__u8              i_symlink;
 	} id2;
 /* Actual on-disk size is one block */
 } ocfs2_dinode;
@@ -423,6 +424,12 @@
 } ocfs2_group_desc;
 
 #ifdef __KERNEL__
+static inline int ocfs2_fast_symlink_chars(struct super_block *sb)
+{
+	return  sb->s_blocksize -
+		 offsetof(struct _ocfs2_dinode, id2.i_symlink);
+}
+
 static inline int ocfs2_extent_recs_per_inode(struct super_block *sb)
 {
 	int size;
@@ -473,6 +480,11 @@
 	return size;
 }
 #else
+static inline int ocfs2_fast_symlink_chars(int blocksize)
+{
+	return blocksize - offsetof(struct _ocfs2_dinode, id2.i_symlink);
+}
+
 static inline int ocfs2_extent_recs_per_inode(int blocksize)
 {
 	int size;



More information about the Ocfs2-tools-commits mailing list