Skip to content

Commit cdee179

Browse files
konisakpm00
authored andcommitted
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/[email protected] Signed-off-by: Ryusuke Konishi <[email protected]> Cc: Matthew Wilcox (Oracle) <[email protected]> Signed-off-by: Andrew Morton <[email protected]>
1 parent aac6925 commit cdee179

File tree

2 files changed

+0
-21
lines changed

2 files changed

+0
-21
lines changed

fs/nilfs2/alloc.c

Lines changed: 0 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -390,25 +390,6 @@ size_t nilfs_palloc_entry_offset(const struct inode *inode, __u64 nr,
390390
entry_index_in_block * NILFS_MDT(inode)->mi_entry_size;
391391
}
392392

393-
/**
394-
* nilfs_palloc_block_get_entry - get kernel address of an entry
395-
* @inode: inode of metadata file using this allocator
396-
* @nr: serial number of the entry (e.g. inode number)
397-
* @bh: buffer head of the buffer storing the entry block
398-
* @kaddr: kernel address mapped for the page including the buffer
399-
*/
400-
void *nilfs_palloc_block_get_entry(const struct inode *inode, __u64 nr,
401-
const struct buffer_head *bh, void *kaddr)
402-
{
403-
unsigned long entry_offset, group_offset;
404-
405-
nilfs_palloc_group(inode, nr, &group_offset);
406-
entry_offset = group_offset % NILFS_MDT(inode)->mi_entries_per_block;
407-
408-
return kaddr + bh_offset(bh) +
409-
entry_offset * NILFS_MDT(inode)->mi_entry_size;
410-
}
411-
412393
/**
413394
* nilfs_palloc_find_available_slot - find available slot in a group
414395
* @bitmap: bitmap of the group

fs/nilfs2/alloc.h

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,8 +31,6 @@ nilfs_palloc_entries_per_group(const struct inode *inode)
3131
int nilfs_palloc_init_blockgroup(struct inode *, unsigned int);
3232
int nilfs_palloc_get_entry_block(struct inode *, __u64, int,
3333
struct buffer_head **);
34-
void *nilfs_palloc_block_get_entry(const struct inode *, __u64,
35-
const struct buffer_head *, void *);
3634
size_t nilfs_palloc_entry_offset(const struct inode *inode, __u64 nr,
3735
const struct buffer_head *bh);
3836

0 commit comments

Comments
 (0)