mirror of
https://github.com/AuxXxilium/linux_dsm_epyc7002.git
synced 2024-12-04 13:46:50 +07:00
xfs: remove xfs_ialloc_find_free
This function is entirely trivial and only has one caller, so remove it to simplify the code. Signed-off-by: Christoph Hellwig <hch@lst.de> Reviewed-by: Dave Chinner <dchinner@redhat.com> Signed-off-by: Ben Myers <bpm@sgi.com>
This commit is contained in:
parent
0d882a360b
commit
824c313139
@ -609,13 +609,6 @@ xfs_ialloc_get_rec(
|
|||||||
/*
|
/*
|
||||||
* Visible inode allocation functions.
|
* Visible inode allocation functions.
|
||||||
*/
|
*/
|
||||||
/*
|
|
||||||
* Find a free (set) bit in the inode bitmask.
|
|
||||||
*/
|
|
||||||
static inline int xfs_ialloc_find_free(xfs_inofree_t *fp)
|
|
||||||
{
|
|
||||||
return xfs_lowbit64(*fp);
|
|
||||||
}
|
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Allocate an inode on disk.
|
* Allocate an inode on disk.
|
||||||
@ -995,7 +988,7 @@ xfs_dialloc(
|
|||||||
}
|
}
|
||||||
|
|
||||||
alloc_inode:
|
alloc_inode:
|
||||||
offset = xfs_ialloc_find_free(&rec.ir_free);
|
offset = xfs_lowbit64(rec.ir_free);
|
||||||
ASSERT(offset >= 0);
|
ASSERT(offset >= 0);
|
||||||
ASSERT(offset < XFS_INODES_PER_CHUNK);
|
ASSERT(offset < XFS_INODES_PER_CHUNK);
|
||||||
ASSERT((XFS_AGINO_TO_OFFSET(mp, rec.ir_startino) %
|
ASSERT((XFS_AGINO_TO_OFFSET(mp, rec.ir_startino) %
|
||||||
|
Loading…
Reference in New Issue
Block a user