mirror of
https://github.com/versity/scoutfs.git
synced 2026-01-07 20:45:18 +00:00
Remove unused scoutfs_last_ino()
Signed-off-by: Zach Brown <zab@versity.com>
This commit is contained in:
@@ -1299,22 +1299,6 @@ static int remove_index_items(struct super_block *sb, u64 ino,
|
||||
return ret;
|
||||
}
|
||||
|
||||
/*
|
||||
* A quick atomic sample of the last inode number that's been allocated.
|
||||
*/
|
||||
u64 scoutfs_last_ino(struct super_block *sb)
|
||||
{
|
||||
struct scoutfs_sb_info *sbi = SCOUTFS_SB(sb);
|
||||
struct scoutfs_super_block *super = &sbi->super;
|
||||
u64 last;
|
||||
|
||||
spin_lock(&sbi->next_ino_lock);
|
||||
last = le64_to_cpu(super->next_ino);
|
||||
spin_unlock(&sbi->next_ino_lock);
|
||||
|
||||
return last;
|
||||
}
|
||||
|
||||
/*
|
||||
* Return an allocated and unused inode number. Returns -ENOSPC if
|
||||
* we're out of inode.
|
||||
|
||||
@@ -127,8 +127,6 @@ int scoutfs_inode_orphan_delete(struct super_block *sb, u64 ino, struct scoutfs_
|
||||
void scoutfs_inode_queue_writeback(struct inode *inode);
|
||||
int scoutfs_inode_walk_writeback(struct super_block *sb, bool write);
|
||||
|
||||
u64 scoutfs_last_ino(struct super_block *sb);
|
||||
|
||||
void scoutfs_inode_exit(void);
|
||||
int scoutfs_inode_init(void);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user