[Ocfs2-tools-commits] mfasheh commits r1285 - trunk/libocfs2/include
svn-commits at oss.oracle.com
svn-commits at oss.oracle.com
Sun Jan 21 16:12:35 PST 2007
Author: mfasheh
Date: 2007-01-21 16:12:34 -0800 (Sun, 21 Jan 2007)
New Revision: 1285
Modified:
trunk/libocfs2/include/ocfs2_fs.h
Log:
Sync ocfs2_fs.h from the kernel tree - this just adds some kernel-only code
for backup superblocks which we didn't catch the 1st time around.
Signed-off-by: jlbec
Modified: trunk/libocfs2/include/ocfs2_fs.h
===================================================================
--- trunk/libocfs2/include/ocfs2_fs.h 2007-01-19 04:38:22 UTC (rev 1284)
+++ trunk/libocfs2/include/ocfs2_fs.h 2007-01-22 00:12:34 UTC (rev 1285)
@@ -580,6 +580,20 @@
return size / sizeof(struct ocfs2_truncate_rec);
}
+
+static inline u64 ocfs2_backup_super_blkno(struct super_block *sb, int index)
+{
+ u64 offset = OCFS2_BACKUP_SB_START;
+
+ if (index >= 0 && index < OCFS2_MAX_BACKUP_SUPERBLOCKS) {
+ offset <<= (2 * index);
+ offset /= sb->s_blocksize;
+ return offset;
+ }
+
+ return 0;
+
+}
#else
static inline int ocfs2_fast_symlink_chars(int blocksize)
{
More information about the Ocfs2-tools-commits
mailing list