summaryrefslogtreecommitdiff
path: root/fs/nilfs2/alloc.c
diff options
context:
space:
mode:
authorRyusuke Konishi <konishi.ryusuke@gmail.com>2024-10-24 12:25:41 +0300
committerAndrew Morton <akpm@linux-foundation.org>2024-11-06 04:12:39 +0300
commitcdee17960f67d1dad0738ef3ae9f1a63d3c92138 (patch)
tree8c0f4d37d052ce7a25acca468cf9532dd0ef2591 /fs/nilfs2/alloc.c
parentaac6925e20e0e9476bc906f6bd83b6c508430d5a (diff)
downloadlinux-cdee17960f67d1dad0738ef3ae9f1a63d3c92138.tar.xz
nilfs2: remove nilfs_palloc_block_get_entry()
All calls to nilfs_palloc_block_get_entry() are now gone, so remove it. Link: https://lkml.kernel.org/r/20241024092602.13395-8-konishi.ryusuke@gmail.com Signed-off-by: Ryusuke Konishi <konishi.ryusuke@gmail.com> Cc: Matthew Wilcox (Oracle) <willy@infradead.org> Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Diffstat (limited to 'fs/nilfs2/alloc.c')
-rw-r--r--fs/nilfs2/alloc.c19
1 files changed, 0 insertions, 19 deletions
diff --git a/fs/nilfs2/alloc.c b/fs/nilfs2/alloc.c
index 5e0a6bd3e015..ba3e1f591f36 100644
--- a/fs/nilfs2/alloc.c
+++ b/fs/nilfs2/alloc.c
@@ -391,25 +391,6 @@ size_t nilfs_palloc_entry_offset(const struct inode *inode, __u64 nr,
}
/**
- * nilfs_palloc_block_get_entry - get kernel address of an entry
- * @inode: inode of metadata file using this allocator
- * @nr: serial number of the entry (e.g. inode number)
- * @bh: buffer head of the buffer storing the entry block
- * @kaddr: kernel address mapped for the page including the buffer
- */
-void *nilfs_palloc_block_get_entry(const struct inode *inode, __u64 nr,
- const struct buffer_head *bh, void *kaddr)
-{
- unsigned long entry_offset, group_offset;
-
- nilfs_palloc_group(inode, nr, &group_offset);
- entry_offset = group_offset % NILFS_MDT(inode)->mi_entries_per_block;
-
- return kaddr + bh_offset(bh) +
- entry_offset * NILFS_MDT(inode)->mi_entry_size;
-}
-
-/**
* nilfs_palloc_find_available_slot - find available slot in a group
* @bitmap: bitmap of the group
* @target: offset number of an entry in the group (start point)