[Ocfs2-commits] manish commits r1162 - trunk/src
svn-commits at oss.oracle.com
svn-commits at oss.oracle.com
Mon Jun 21 17:09:47 CDT 2004
Author: manish
Date: 2004-06-21 16:09:45 -0500 (Mon, 21 Jun 2004)
New Revision: 1162
Modified:
trunk/src/ocfs_compat.h
Log:
Make sb_set_blocksize compat actually build
Modified: trunk/src/ocfs_compat.h
===================================================================
--- trunk/src/ocfs_compat.h 2004-06-21 20:49:22 UTC (rev 1161)
+++ trunk/src/ocfs_compat.h 2004-06-21 21:09:45 UTC (rev 1162)
@@ -77,17 +77,17 @@
}
#endif
-static inline int sb_set_blocksize(struct super_block *sb, int blksize)
+static inline int sb_set_blocksize(struct super_block *sb, int size)
{
int bits;
#if LINUX_VERSION_CODE >= KERNEL_VERSION(2,4,18)
- if (set_blocksize(sb->s_dev, blksize))
+ if (set_blocksize(sb->s_dev, size) < 0)
return 0;
#else
- set_blocksize(sb->s_dev, blksize);
+ set_blocksize(sb->s_dev, size);
#endif
- sb->s_blocksize = blksize;
+ sb->s_blocksize = size;
for (bits = 9, size >>= 9; size >>= 1; bits++)
;
sb->s_blocksize_bits = bits;
More information about the Ocfs2-commits
mailing list