[Ocfs2-commits] jlbec commits r1213 - trunk/src
svn-commits at oss.oracle.com
svn-commits at oss.oracle.com
Fri Jun 25 19:39:44 CDT 2004
Author: jlbec
Date: 2004-06-25 18:39:43 -0500 (Fri, 25 Jun 2004)
New Revision: 1213
Modified:
trunk/src/ocfs2_fs.h
Log:
o Fill out local alloc size.
Modified: trunk/src/ocfs2_fs.h
===================================================================
--- trunk/src/ocfs2_fs.h 2004-06-25 19:13:37 UTC (rev 1212)
+++ trunk/src/ocfs2_fs.h 2004-06-25 23:39:43 UTC (rev 1213)
@@ -488,11 +488,12 @@
static inline int ocfs2_local_alloc_size(struct super_block *sb)
{
- /*
- * Perhaps change one day when we want to be dynamic
- * based on sb->s_blocksize.
- */
- return OCFS2_LOCAL_BITMAP_DEFAULT_SIZE;
+ int size;
+
+ size = sb->s_blocksize -
+ offsetof(struct _ocfs2_dinode, id2.i_lab.la_bitmap);
+
+ return size;
}
#else
static inline int ocfs2_extent_recs_per_inode(int blocksize)
@@ -517,7 +518,12 @@
static inline int ocfs2_local_alloc_size(int blocksize)
{
- return OCFS2_LOCAL_BITMAP_DEFAULT_SIZE;
+ int size;
+
+ size = blocksize -
+ offsetof(struct _ocfs2_dinode, id2.i_lab.la_bitmap);
+
+ return size;
}
#endif /* __KERNEL__ */
More information about the Ocfs2-commits
mailing list