Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

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>

authored by

Ryusuke Konishi and committed by
Andrew Morton
cdee1796 aac6925e

-21
-19
fs/nilfs2/alloc.c
··· 391 391 } 392 392 393 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 - 412 - /** 413 394 * nilfs_palloc_find_available_slot - find available slot in a group 414 395 * @bitmap: bitmap of the group 415 396 * @target: offset number of an entry in the group (start point)
-2
fs/nilfs2/alloc.h
··· 31 31 int nilfs_palloc_init_blockgroup(struct inode *, unsigned int); 32 32 int nilfs_palloc_get_entry_block(struct inode *, __u64, int, 33 33 struct buffer_head **); 34 - void *nilfs_palloc_block_get_entry(const struct inode *, __u64, 35 - const struct buffer_head *, void *); 36 34 size_t nilfs_palloc_entry_offset(const struct inode *inode, __u64 nr, 37 35 const struct buffer_head *bh); 38 36