]> git.karo-electronics.de Git - linux-beck.git/commitdiff
xfs: report finobt status in fs geometry
authorBrian Foster <bfoster@redhat.com>
Thu, 24 Apr 2014 06:01:41 +0000 (16:01 +1000)
committerDave Chinner <david@fromorbit.com>
Thu, 24 Apr 2014 06:01:41 +0000 (16:01 +1000)
Define the XFS_FSOP_GEOM_FLAGS_FINOBT fs geometry flag and set the
associated bit if the filesystem supports the free inode btree.

Signed-off-by: Brian Foster <bfoster@redhat.com>
Reviewed-by: Dave Chinner <dchinner@redhat.com>
Signed-off-by: Dave Chinner <david@fromorbit.com>
fs/xfs/xfs_fs.h
fs/xfs/xfs_fsops.c

index c5fc116dfaa307b156e0b652bfffd4f80c173b89..d34703dbcb423b7fdbb52438b2525dd74417f1eb 100644 (file)
@@ -238,6 +238,7 @@ typedef struct xfs_fsop_resblks {
 #define XFS_FSOP_GEOM_FLAGS_LAZYSB     0x4000  /* lazy superblock counters */
 #define XFS_FSOP_GEOM_FLAGS_V5SB       0x8000  /* version 5 superblock */
 #define XFS_FSOP_GEOM_FLAGS_FTYPE      0x10000 /* inode directory types */
+#define XFS_FSOP_GEOM_FLAGS_FINOBT     0x20000 /* free inode btree */
 
 /*
  * Minimum and maximum sizes need for growth checks.
index 96e4eb0d945286a6223484b6cabf7fda16582e88..3445ead7c1fcfb63611d018ec38cb78a68ae1fcf 100644 (file)
@@ -104,7 +104,9 @@ xfs_fs_geometry(
                        (xfs_sb_version_hascrc(&mp->m_sb) ?
                                XFS_FSOP_GEOM_FLAGS_V5SB : 0) |
                        (xfs_sb_version_hasftype(&mp->m_sb) ?
-                               XFS_FSOP_GEOM_FLAGS_FTYPE : 0);
+                               XFS_FSOP_GEOM_FLAGS_FTYPE : 0) |
+                       (xfs_sb_version_hasfinobt(&mp->m_sb) ?
+                               XFS_FSOP_GEOM_FLAGS_FINOBT : 0);
                geo->logsectsize = xfs_sb_version_hassector(&mp->m_sb) ?
                                mp->m_sb.sb_logsectsize : BBSIZE;
                geo->rtsectsize = mp->m_sb.sb_blocksize;