Skip to content

Commit

Permalink
xfs: remove xfs_ialloc_find_free
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Christoph Hellwig authored and Ben Myers committed Jul 22, 2012
1 parent 0d882a3 commit 824c313
Showing 1 changed file with 1 addition and 8 deletions.
9 changes: 1 addition & 8 deletions fs/xfs/xfs_ialloc.c
Original file line number Diff line number Diff line change
Expand Up @@ -609,13 +609,6 @@ xfs_ialloc_get_rec(
/*
* 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.
Expand Down Expand Up @@ -995,7 +988,7 @@ xfs_dialloc(
}

alloc_inode:
offset = xfs_ialloc_find_free(&rec.ir_free);
offset = xfs_lowbit64(rec.ir_free);
ASSERT(offset >= 0);
ASSERT(offset < XFS_INODES_PER_CHUNK);
ASSERT((XFS_AGINO_TO_OFFSET(mp, rec.ir_startino) %
Expand Down

0 comments on commit 824c313

Please sign in to comment.