hc
2024-01-03 2f7c68cb55ecb7331f2381deb497c27155f32faf
kernel/fs/xfs/libxfs/xfs_ialloc.h
....@@ -23,16 +23,6 @@
2323 * sparse chunks */
2424 };
2525
26
-/* Calculate and return the number of filesystem blocks per inode cluster */
27
-static inline int
28
-xfs_icluster_size_fsb(
29
- struct xfs_mount *mp)
30
-{
31
- if (mp->m_sb.sb_blocksize >= mp->m_inode_cluster_size)
32
- return 1;
33
- return mp->m_inode_cluster_size >> mp->m_sb.sb_blocklog;
34
-}
35
-
3626 /*
3727 * Make an inode pointer out of the buffer/offset.
3828 */
....@@ -94,13 +84,6 @@
9484 xfs_ino_t ino, /* inode to locate */
9585 struct xfs_imap *imap, /* location map structure */
9686 uint flags); /* flags for inode btree lookup */
97
-
98
-/*
99
- * Compute and fill in value of m_in_maxlevels.
100
- */
101
-void
102
-xfs_ialloc_compute_maxlevels(
103
- struct xfs_mount *mp); /* file system mount structure */
10487
10588 /*
10689 * Log specified fields for the ag hdr (inode section)
....@@ -168,5 +151,7 @@
168151 int *stat);
169152
170153 int xfs_ialloc_cluster_alignment(struct xfs_mount *mp);
154
+void xfs_ialloc_setup_geometry(struct xfs_mount *mp);
155
+xfs_ino_t xfs_ialloc_calc_rootino(struct xfs_mount *mp, int sunit);
171156
172157 #endif /* __XFS_IALLOC_H__ */