id
stringlengths
4
63
text
stringlengths
153
8.81M
nilfs_folio_buffers_clean(9)
NAME nilfs_folio_buffers_clean - Check if a folio has dirty buffers or not. SYNOPSIS bool nilfs_folio_buffers_clean (struct folio *folio ); ARGUMENTS folio Folio to be checked. RETURN false if the folio has dirty buffers, true otherwise. SEE ALSO Kernel file ./fs/nilfs2/page.c nilfs_forget_buffer(9), nilfs_co...
nilfs_forget_buffer(9)
NAME nilfs_forget_buffer - discard dirty state SYNOPSIS void nilfs_forget_buffer (struct buffer_head *bh ); ARGUMENTS bh buffer head of the buffer to be discarded SEE ALSO Kernel file ./fs/nilfs2/page.c nilfs_copy_buffer(9), nilfs_folio_buffers_clean(9), nilfs_copy_folio(9), nilfs_copy_back_pages(9), nilfs_...
nilfs_free_segments(9)
NAME nilfs_free_segments - free the segments given by an array of segment numbers SYNOPSIS int nilfs_free_segments (struct the_nilfs *nilfs , __u64 *segnumv , size_t nsegs ); ARGUMENTS nilfs nilfs object segnumv array of segment numbers to be freed nsegs number of segments to be freed ...
nilfs_get_block(9)
NAME nilfs_get_block - get a file block on the filesystem (callback function) SYNOPSIS int nilfs_get_block (struct inode *inode , sector_t blkoff , struct buffer_head *bh_result , int create ); ARGUMENTS inode inode struct of the target file blkoff file block number bh_result buffer head ...
nilfs_get_blocksize(9)
NAME nilfs_get_blocksize - get block size from raw superblock data SYNOPSIS int nilfs_get_blocksize (struct super_block *sb , struct nilfs_super_block *sbp , int *blocksize ); ARGUMENTS sb super block instance sbp superblock raw data buffer blocksize place to store block size DESCR...
nilfs_ifile_count_free_inodes(9)
NAME nilfs_ifile_count_free_inodes - calculate free inodes count SYNOPSIS int nilfs_ifile_count_free_inodes (struct inode *ifile , u64 *nmaxinodes , u64 *nfreeinodes ); ARGUMENTS ifile ifile inode nmaxinodes current maximum of available inodes count [out] nfreeinodes free inodes count [out] RE...
nilfs_ifile_create_inode(9)
NAME nilfs_ifile_create_inode - create a new disk inode SYNOPSIS int nilfs_ifile_create_inode (struct inode *ifile , ino_t *out_ino , struct buffer_head **out_bh ); ARGUMENTS ifile ifile inode out_ino pointer to a variable to store inode number out_bh buffer_head contains newly allocate...
nilfs_ifile_delete_inode(9)
NAME nilfs_ifile_delete_inode - delete a disk inode SYNOPSIS int nilfs_ifile_delete_inode (struct inode *ifile , ino_t ino ); ARGUMENTS ifile ifile inode ino inode number RETURN 0 on success, or one of the following negative error codes on failure: * -EIO - I/O error (including metadata co...
nilfs_ifile_read(9)
NAME nilfs_ifile_read - read or get ifile inode SYNOPSIS int nilfs_ifile_read (struct super_block *sb , struct nilfs_root *root , __u64 cno , size_t inode_size ); ARGUMENTS sb super block instance root root object cno number of checkpoint entry to read inode_size size ...
nilfs_iget_for_shadow(9)
NAME nilfs_iget_for_shadow - obtain inode for shadow mapping SYNOPSIS struct inode * nilfs_iget_for_shadow (struct inode *inode ); ARGUMENTS inode inode object that uses shadow mapping DESCRIPTION nilfs_iget_for_shadow allocates a pair of inodes that holds page caches for shadow mapping. The page cache for...
nilfs_init_btnc_inode(9)
NAME nilfs_init_btnc_inode - initialize B-tree node cache inode SYNOPSIS void nilfs_init_btnc_inode (struct inode *btnc_inode ); ARGUMENTS btnc_inode inode to be initialized DESCRIPTION nilfs_init_btnc_inode sets up an inode for B-tree node cache. SEE ALSO Kernel file ./fs/nilfs2/btnode.c nilfs_btnode_delete(9), n...
nilfs_ioctl_change_cpmode(9)
NAME nilfs_ioctl_change_cpmode - change checkpoint mode (checkpoint/snapshot) SYNOPSIS int nilfs_ioctl_change_cpmode (struct inode *inode , struct file *filp , unsigned int cmd , void __user *argp ); ARGUMENTS inode inode object filp file object cmd ioctl's request code ar...
nilfs_ioctl_clean_segments(9)
NAME nilfs_ioctl_clean_segments - clean segments SYNOPSIS int nilfs_ioctl_clean_segments (struct inode *inode , struct file *filp , unsigned int cmd , void __user *argp ); ARGUMENTS inode inode object filp file object cmd ioctl's request code argp pointer on argumen...
nilfs_ioctl_delete_checkpoint(9)
NAME nilfs_ioctl_delete_checkpoint - remove checkpoint SYNOPSIS int nilfs_ioctl_delete_checkpoint (struct inode *inode , struct file *filp , unsigned int cmd , void __user *argp ); ARGUMENTS inode inode object filp file object cmd ioctl's request code argp pointer o...
nilfs_ioctl_delete_checkpoints(9)
NAME nilfs_ioctl_delete_checkpoints - delete checkpoints SYNOPSIS int nilfs_ioctl_delete_checkpoints (struct the_nilfs *nilfs , struct nilfs_argv *argv , void *buf ); ARGUMENTS nilfs nilfs object argv vector of arguments from userspace buf array of periods of checkpoints numbers ...
nilfs_ioctl_do_get_bdescs(9)
NAME nilfs_ioctl_do_get_bdescs - callback method getting disk block descriptors SYNOPSIS ssize_t nilfs_ioctl_do_get_bdescs (struct the_nilfs *nilfs , __u64 *posp , int flags , void *buf , size_t size , size_t nmembs ); ARGUMENTS nilfs nilfs object posp *not used* flags *not used* ...
nilfs_ioctl_do_get_cpinfo(9)
NAME nilfs_ioctl_do_get_cpinfo - callback method getting info about checkpoints SYNOPSIS ssize_t nilfs_ioctl_do_get_cpinfo (struct the_nilfs *nilfs , __u64 *posp , int flags , void *buf , size_t size , size_t nmembs ); ARGUMENTS nilfs nilfs object posp pointer on array of checkpoint's numbers ...
nilfs_ioctl_do_get_suinfo(9)
NAME nilfs_ioctl_do_get_suinfo - callback method getting segment usage info SYNOPSIS ssize_t nilfs_ioctl_do_get_suinfo (struct the_nilfs *nilfs , __u64 *posp , int flags , void *buf , size_t size , size_t nmembs ); ARGUMENTS nilfs nilfs object posp pointer on array of segment numbers flag...
nilfs_ioctl_do_get_vinfo(9)
NAME nilfs_ioctl_do_get_vinfo - callback method getting virtual blocks info SYNOPSIS ssize_t nilfs_ioctl_do_get_vinfo (struct the_nilfs *nilfs , __u64 *posp , int flags , void *buf , size_t size , size_t nmembs ); ARGUMENTS nilfs nilfs object posp *not used* flags *not used* ...
nilfs_ioctl_free_vblocknrs(9)
NAME nilfs_ioctl_free_vblocknrs - free virtual block numbers SYNOPSIS int nilfs_ioctl_free_vblocknrs (struct the_nilfs *nilfs , struct nilfs_argv *argv , void *buf ); ARGUMENTS nilfs nilfs object argv vector of arguments from userspace buf array of virtual block numbers DESCRIPTI...
nilfs_ioctl_get_bdescs(9)
NAME nilfs_ioctl_get_bdescs - get disk block descriptors SYNOPSIS int nilfs_ioctl_get_bdescs (struct inode *inode , struct file *filp , unsigned int cmd , void __user *argp ); ARGUMENTS inode inode object filp file object cmd ioctl's request code argp pointer on arg...
nilfs_ioctl_get_cpstat(9)
NAME nilfs_ioctl_get_cpstat - get checkpoints statistics SYNOPSIS int nilfs_ioctl_get_cpstat (struct inode *inode , struct file *filp , unsigned int cmd , void __user *argp ); ARGUMENTS inode inode object filp file object cmd ioctl's request code argp pointer on arg...
nilfs_ioctl_get_fslabel(9)
NAME nilfs_ioctl_get_fslabel - get the volume name of the file system SYNOPSIS int nilfs_ioctl_get_fslabel (struct super_block *sb , void __user *argp ); ARGUMENTS sb super block instance argp pointer to userspace memory where the volume name should be stored RETURN 0 on success, -EFAULT if c...
nilfs_ioctl_get_info(9)
NAME nilfs_ioctl_get_info - wrapping function of get metadata info SYNOPSIS int nilfs_ioctl_get_info (struct inode *inode , struct file *filp , unsigned int cmd , void __user *argp , size_t membsz , ssize_t (*dofunc)(struct the_nilfs *, __u64 *, int, void *, size_t, size_t) ); ARGUMENTS inode inode object ...
nilfs_ioctl_get_sustat(9)
NAME nilfs_ioctl_get_sustat - get segment usage statistics SYNOPSIS int nilfs_ioctl_get_sustat (struct inode *inode , struct file *filp , unsigned int cmd , void __user *argp ); ARGUMENTS inode inode object filp file object cmd ioctl's request code argp pointer on a...
nilfs_ioctl_getversion(9)
NAME nilfs_ioctl_getversion - get info about a file's version (generation number) SYNOPSIS int nilfs_ioctl_getversion (struct inode *inode , void __user *argp ); ARGUMENTS inode inode object argp userspace memory where the generation number of inode is stored RETURN 0 on success, or -EFAULT on e...
nilfs_ioctl_mark_blocks_dirty(9)
NAME nilfs_ioctl_mark_blocks_dirty - mark blocks dirty SYNOPSIS int nilfs_ioctl_mark_blocks_dirty (struct the_nilfs *nilfs , struct nilfs_argv *argv , void *buf ); ARGUMENTS nilfs nilfs object argv vector of arguments from userspace buf array of block descriptors DESCRIPTION nilf...
nilfs_ioctl_move_blocks(9)
NAME nilfs_ioctl_move_blocks - move valid inode's blocks during garbage collection SYNOPSIS int nilfs_ioctl_move_blocks (struct super_block *sb , struct nilfs_argv *argv , void *buf ); ARGUMENTS sb superblock object argv vector of arguments from userspace buf array of nilfs_vde...
nilfs_ioctl_move_inode_block(9)
NAME nilfs_ioctl_move_inode_block - prepare data/node block for moving by GC SYNOPSIS int nilfs_ioctl_move_inode_block (struct inode *inode , struct nilfs_vdesc *vdesc , struct list_head *buffers ); ARGUMENTS inode inode object vdesc descriptor of virtual block number buffers list of m...
nilfs_ioctl_resize(9)
NAME nilfs_ioctl_resize - resize NILFS2 volume SYNOPSIS int nilfs_ioctl_resize (struct inode *inode , struct file *filp , void __user *argp ); ARGUMENTS inode inode object filp file object argp pointer on argument from userspace RETURN 0 on success, or a negative error code on fai...
nilfs_ioctl_set_alloc_range(9)
NAME nilfs_ioctl_set_alloc_range - limit range of segments to be allocated SYNOPSIS int nilfs_ioctl_set_alloc_range (struct inode *inode , void __user *argp ); ARGUMENTS inode inode object argp pointer on argument from userspace DESCRIPTION nilfs_ioctl_set_alloc_range function defines lower limi...
nilfs_ioctl_set_fslabel(9)
NAME nilfs_ioctl_set_fslabel - set the volume name of the file system SYNOPSIS int nilfs_ioctl_set_fslabel (struct super_block *sb , struct file *filp , void __user *argp ); ARGUMENTS sb super block instance filp file object argp pointer to userspace memory that contains the vol...
nilfs_ioctl_set_suinfo(9)
NAME nilfs_ioctl_set_suinfo - set segment usage info SYNOPSIS int nilfs_ioctl_set_suinfo (struct inode *inode , struct file *filp , unsigned int cmd , void __user *argp ); ARGUMENTS inode inode object filp file object cmd ioctl's request code argp pointer on argumen...
nilfs_ioctl_sync(9)
NAME nilfs_ioctl_sync - make a checkpoint SYNOPSIS int nilfs_ioctl_sync (struct inode *inode , struct file *filp , unsigned int cmd , void __user *argp ); ARGUMENTS inode inode object filp file object cmd ioctl's request code argp pointer on argument from userspace ...
nilfs_ioctl_trim_fs(9)
NAME nilfs_ioctl_trim_fs - trim ioctl handle function SYNOPSIS int nilfs_ioctl_trim_fs (struct inode *inode , void __user *argp ); ARGUMENTS inode inode object argp pointer on argument from userspace DESCRIPTION nilfs_ioctl_trim_fs is the FITRIM ioctl handle function. It checks the arguments fro...
nilfs_ioctl_wrap_copy(9)
NAME nilfs_ioctl_wrap_copy - wrapping function of get/set metadata info SYNOPSIS int nilfs_ioctl_wrap_copy (struct the_nilfs *nilfs , struct nilfs_argv *argv , int dir , ssize_t (*dofunc)(struct the_nilfs *, __u64 *, int, void *, size_t, size_t) ); ARGUMENTS nilfs nilfs object argv vector of argu...
nilfs_log_write_required(9)
NAME nilfs_log_write_required - determine whether log writing is required SYNOPSIS bool nilfs_log_write_required (struct nilfs_sc_info *sci , int *modep ); ARGUMENTS sci nilfs_sc_info struct modep location for storing log writing mode RETURN true if log writing is required, false otherwise. If...
nilfs_max_segment_count(9)
NAME nilfs_max_segment_count - calculate the maximum number of segments SYNOPSIS u64 nilfs_max_segment_count (struct the_nilfs *nilfs ); ARGUMENTS nilfs nilfs object RETURN Maximum number of segments SEE ALSO Kernel file ./fs/nilfs2/the_nilfs.c alloc_nilfs(9), destroy_nilfs(9), nilfs_store_log_cursor(9), nilf...
nilfs_mdt_clear(9)
NAME nilfs_mdt_clear - do cleanup for the metadata file SYNOPSIS void nilfs_mdt_clear (struct inode *inode ); ARGUMENTS inode inode of the metadata file SEE ALSO Kernel file ./fs/nilfs2/mdt.c nilfs_mdt_get_block(9), nilfs_mdt_find_block(9), nilfs_mdt_delete_block(9), nilfs_mdt_forget_block(9), nilfs_mdt_des...
nilfs_mdt_clear_shadow_map(9)
NAME nilfs_mdt_clear_shadow_map - truncate pages in shadow map caches SYNOPSIS void nilfs_mdt_clear_shadow_map (struct inode *inode ); ARGUMENTS inode inode of the metadata file SEE ALSO Kernel file ./fs/nilfs2/mdt.c nilfs_mdt_get_block(9), nilfs_mdt_find_block(9), nilfs_mdt_delete_block(9), nilfs_...
nilfs_mdt_delete_block(9)
NAME nilfs_mdt_delete_block - make a hole on the meta data file. SYNOPSIS int nilfs_mdt_delete_block (struct inode *inode , unsigned long block ); ARGUMENTS inode inode of the meta data file block block offset RETURN 0 on success, or one of the following negative error codes on failure: * -EIO ...
nilfs_mdt_destroy(9)
NAME nilfs_mdt_destroy - release resources used by the metadata file SYNOPSIS void nilfs_mdt_destroy (struct inode *inode ); ARGUMENTS inode inode of the metadata file SEE ALSO Kernel file ./fs/nilfs2/mdt.c nilfs_mdt_get_block(9), nilfs_mdt_find_block(9), nilfs_mdt_delete_block(9), nilfs_mdt_forget_block(...
nilfs_mdt_find_block(9)
NAME nilfs_mdt_find_block - find and get a buffer on meta data file. SYNOPSIS int nilfs_mdt_find_block (struct inode *inode , unsigned long start , unsigned long end , unsigned long *blkoff , struct buffer_head **out_bh ); ARGUMENTS inode inode of the meta data file start start block offset (inclu...
nilfs_mdt_forget_block(9)
NAME nilfs_mdt_forget_block - discard dirty state and try to remove the page SYNOPSIS int nilfs_mdt_forget_block (struct inode *inode , unsigned long block ); ARGUMENTS inode inode of the meta data file block block offset DESCRIPTION nilfs_mdt_forget_block clears a dirty flag of the specified buf...
nilfs_mdt_get_block(9)
NAME nilfs_mdt_get_block - read or create a buffer on meta data file. SYNOPSIS int nilfs_mdt_get_block (struct inode *inode , unsigned long blkoff , int create , void (*init_block)(struct inode *, struct buffer_head *, void *) , struct buffer_head **out_bh ); ARGUMENTS inode inode of the meta data file ...
nilfs_mdt_restore_from_shadow_map(9)
NAME nilfs_mdt_restore_from_shadow_map - restore dirty pages and bmap state SYNOPSIS void nilfs_mdt_restore_from_shadow_map (struct inode *inode ); ARGUMENTS inode inode of the metadata file SEE ALSO Kernel file ./fs/nilfs2/mdt.c nilfs_mdt_get_block(9), nilfs_mdt_find_block(9), nilfs_mdt_delete_block...
nilfs_mdt_save_to_shadow_map(9)
NAME nilfs_mdt_save_to_shadow_map - copy bmap and dirty pages to shadow map SYNOPSIS int nilfs_mdt_save_to_shadow_map (struct inode *inode ); ARGUMENTS inode inode of the metadata file RETURN 0 on success, or a negative error code on failure. SEE ALSO Kernel file ./fs/nilfs2/mdt.c nilfs_mdt_get_block(9), ni...
nilfs_mdt_setup_shadow_map(9)
NAME nilfs_mdt_setup_shadow_map - setup shadow map and bind it to metadata file SYNOPSIS int nilfs_mdt_setup_shadow_map (struct inode *inode , struct nilfs_shadow_map *shadow ); ARGUMENTS inode inode of the metadata file shadow shadow mapping RETURN 0 on success, or a negative error code on failur...
nilfs_move_2nd_super(9)
NAME nilfs_move_2nd_super - relocate secondary super block SYNOPSIS int nilfs_move_2nd_super (struct super_block *sb , loff_t sb2off ); ARGUMENTS sb super block instance sb2off new offset of the secondary super block (in bytes) RETURN 0 on success, or a negative error code on failure. SEE ALSO...
nilfs_nrsvsegs(9)
NAME nilfs_nrsvsegs - calculate the number of reserved segments SYNOPSIS unsigned long nilfs_nrsvsegs (struct the_nilfs *nilfs , unsigned long nsegs ); ARGUMENTS nilfs nilfs object nsegs total number of segments RETURN Number of reserved segments. SEE ALSO Kernel file ./fs/nilfs2/the_nilfs.c all...
nilfs_palloc_abort_alloc_entry(9)
NAME nilfs_palloc_abort_alloc_entry - cancel allocation of a persistent object SYNOPSIS void nilfs_palloc_abort_alloc_entry (struct inode *inode , struct nilfs_palloc_req *req ); ARGUMENTS inode inode of metadata file using this allocator req nilfs_palloc_req structure exchanged for the allocati...
nilfs_palloc_abort_free_entry(9)
NAME nilfs_palloc_abort_free_entry - cancel deallocating a persistent object SYNOPSIS void nilfs_palloc_abort_free_entry (struct inode *inode , struct nilfs_palloc_req *req ); ARGUMENTS inode inode of metadata file using this allocator req nilfs_palloc_req structure exchanged for the removal SE...
nilfs_palloc_bitmap_blkoff(9)
NAME nilfs_palloc_bitmap_blkoff - get block offset of a bitmap block SYNOPSIS unsigned long nilfs_palloc_bitmap_blkoff (const struct inode *inode , unsigned long group ); ARGUMENTS inode inode of metadata file using this allocator group group number DESCRIPTION nilfs_palloc_bitmap_blkoff returns ...
nilfs_palloc_bitmap_offset(9)
NAME nilfs_palloc_bitmap_offset - calculate the byte offset of a bitmap block in the folio containing it SYNOPSIS size_t nilfs_palloc_bitmap_offset (const struct buffer_head *bh ); ARGUMENTS bh buffer head of the bitmap block RETURN Byte offset in the folio of the bitmap block for bh. SEE ALSO Kernel file...
nilfs_palloc_commit_alloc_entry(9)
NAME nilfs_palloc_commit_alloc_entry - finish allocation of a persistent object SYNOPSIS void nilfs_palloc_commit_alloc_entry (struct inode *inode , struct nilfs_palloc_req *req ); ARGUMENTS inode inode of metadata file using this allocator req nilfs_palloc_req structure exchanged for the alloca...
nilfs_palloc_commit_free_entry(9)
NAME nilfs_palloc_commit_free_entry - finish deallocating a persistent object SYNOPSIS void nilfs_palloc_commit_free_entry (struct inode *inode , struct nilfs_palloc_req *req ); ARGUMENTS inode inode of metadata file using this allocator req nilfs_palloc_req structure exchanged for the removal ...
nilfs_palloc_count_desc_blocks(9)
NAME nilfs_palloc_count_desc_blocks - count descriptor blocks number SYNOPSIS int nilfs_palloc_count_desc_blocks (struct inode *inode , unsigned long *desc_blocks ); ARGUMENTS inode inode of metadata file using this allocator desc_blocks descriptor blocks number [out] RETURN 0 on success, or a negative...
nilfs_palloc_count_max_entries(9)
NAME nilfs_palloc_count_max_entries - count max number of entries that can be described by descriptor blocks count SYNOPSIS int nilfs_palloc_count_max_entries (struct inode *inode , u64 nused , u64 *nmaxp ); ARGUMENTS inode inode of metadata file using this allocator nused current number of used e...
nilfs_palloc_delete_bitmap_block(9)
NAME nilfs_palloc_delete_bitmap_block - delete a bitmap block SYNOPSIS int nilfs_palloc_delete_bitmap_block (struct inode *inode , unsigned long group ); ARGUMENTS inode inode of metadata file using this allocator group group number RETURN 0 on success, or a negative error code on failure. SEE A...
nilfs_palloc_delete_block(9)
NAME nilfs_palloc_delete_block - delete a block on the persistent allocator file SYNOPSIS int nilfs_palloc_delete_block (struct inode *inode , unsigned long blkoff , struct nilfs_bh_assoc *prev , spinlock_t *lock ); ARGUMENTS inode inode of metadata file using this allocator blkoff block offset ...
nilfs_palloc_delete_entry_block(9)
NAME nilfs_palloc_delete_entry_block - delete an entry block SYNOPSIS int nilfs_palloc_delete_entry_block (struct inode *inode , __u64 nr ); ARGUMENTS inode inode of metadata file using this allocator nr serial number of the entry RETURN 0 on success, or a negative error code on failure. SEE ...
nilfs_palloc_desc_blkoff(9)
NAME nilfs_palloc_desc_blkoff - get block offset of a group descriptor block SYNOPSIS unsigned long nilfs_palloc_desc_blkoff (const struct inode *inode , unsigned long group ); ARGUMENTS inode inode of metadata file using this allocator group group number RETURN Index number in the metadata file ...
nilfs_palloc_desc_block_init(9)
NAME nilfs_palloc_desc_block_init - initialize buffer of a group descriptor block SYNOPSIS void nilfs_palloc_desc_block_init (struct inode *inode , struct buffer_head *bh , void *from ); ARGUMENTS inode inode of metadata file bh buffer head of the buffer to be initialized from ke...
nilfs_palloc_entries_per_group(9)
NAME nilfs_palloc_entries_per_group - get the number of entries per group SYNOPSIS unsigned long nilfs_palloc_entries_per_group (const struct inode *inode ); ARGUMENTS inode inode of metadata file using this allocator DESCRIPTION The number of entries per group is defined by the number of bits that a bitmap bl...
nilfs_palloc_entry_blkoff(9)
NAME nilfs_palloc_entry_blkoff - get block offset of an entry block SYNOPSIS unsigned long nilfs_palloc_entry_blkoff (const struct inode *inode , __u64 nr ); ARGUMENTS inode inode of metadata file using this allocator nr serial number of the entry (e.g. inode number) RETURN Index number in the...
nilfs_palloc_entry_offset(9)
NAME nilfs_palloc_entry_offset - calculate the byte offset of an entry in the folio containing it SYNOPSIS size_t nilfs_palloc_entry_offset (const struct inode *inode , __u64 nr , const struct buffer_head *bh ); ARGUMENTS inode inode of metadata file using this allocator nr serial number of the...
nilfs_palloc_find_available_slot(9)
NAME nilfs_palloc_find_available_slot - find available slot in a group SYNOPSIS int nilfs_palloc_find_available_slot (unsigned char *bitmap , unsigned long target , unsigned int bsize , spinlock_t *lock , bool wrap ); ARGUMENTS bitmap bitmap of the group target offset number of an entry in the group...
nilfs_palloc_freev(9)
NAME nilfs_palloc_freev - deallocate a set of persistent objects SYNOPSIS int nilfs_palloc_freev (struct inode *inode , __u64 *entry_nrs , size_t nitems ); ARGUMENTS inode inode of metadata file using this allocator entry_nrs array of entry numbers to be deallocated nitems number of entri...
nilfs_palloc_get_bitmap_block(9)
NAME nilfs_palloc_get_bitmap_block - get buffer head of a bitmap block SYNOPSIS int nilfs_palloc_get_bitmap_block (struct inode *inode , unsigned long group , int create , struct buffer_head **bhp ); ARGUMENTS inode inode of metadata file using this allocator group group number create ...
nilfs_palloc_get_desc_block(9)
NAME nilfs_palloc_get_desc_block - get buffer head of a group descriptor block SYNOPSIS int nilfs_palloc_get_desc_block (struct inode *inode , unsigned long group , int create , struct buffer_head **bhp ); ARGUMENTS inode inode of metadata file using this allocator group group number creat...
nilfs_palloc_get_entry_block(9)
NAME nilfs_palloc_get_entry_block - get buffer head of an entry block SYNOPSIS int nilfs_palloc_get_entry_block (struct inode *inode , __u64 nr , int create , struct buffer_head **bhp ); ARGUMENTS inode inode of metadata file using this allocator nr serial number of the entry (e.g. inode number...
nilfs_palloc_group(9)
NAME nilfs_palloc_group - get group number and offset from an entry number SYNOPSIS unsigned long nilfs_palloc_group (const struct inode *inode , __u64 nr , unsigned long *offset ); ARGUMENTS inode inode of metadata file using this allocator nr serial number of the entry (e.g. inode number) ...
nilfs_palloc_group_desc_add_entries(9)
NAME nilfs_palloc_group_desc_add_entries - adjust count of free entries SYNOPSIS u32 nilfs_palloc_group_desc_add_entries (struct nilfs_palloc_group_desc *desc , spinlock_t *lock , u32 n ); ARGUMENTS desc pointer to descriptor structure for the group lock spin lock protecting desc n ...
nilfs_palloc_group_desc_nfrees(9)
NAME nilfs_palloc_group_desc_nfrees - get the number of free entries in a group SYNOPSIS unsigned long nilfs_palloc_group_desc_nfrees (const struct nilfs_palloc_group_desc *desc , spinlock_t *lock ); ARGUMENTS desc pointer to descriptor structure for the group lock spin lock protecting desc RET...
nilfs_palloc_group_desc_offset(9)
NAME nilfs_palloc_group_desc_offset - calculate the byte offset of a group descriptor in the folio containing it SYNOPSIS size_t nilfs_palloc_group_desc_offset (const struct inode *inode , unsigned long group , const struct buffer_head *bh ); ARGUMENTS inode inode of metadata file using this allocator g...
nilfs_palloc_groups_count(9)
NAME nilfs_palloc_groups_count - get maximum number of groups SYNOPSIS unsigned long nilfs_palloc_groups_count (const struct inode *inode ); ARGUMENTS inode inode of metadata file using this allocator RETURN Maximum number of groups. SEE ALSO Kernel file ./fs/nilfs2/alloc.c nilfs_palloc_groups_per_desc_block(...
nilfs_palloc_groups_per_desc_block(9)
NAME nilfs_palloc_groups_per_desc_block - get the number of groups that a group descriptor block can maintain SYNOPSIS unsigned long nilfs_palloc_groups_per_desc_block (const struct inode *inode ); ARGUMENTS inode inode of metadata file using this allocator RETURN Number of groups that a group descriptor block...
nilfs_palloc_init_blockgroup(9)
NAME nilfs_palloc_init_blockgroup - initialize private variables for allocator SYNOPSIS int nilfs_palloc_init_blockgroup (struct inode *inode , unsigned int entry_size ); ARGUMENTS inode inode of metadata file using this allocator entry_size size of the persistent object RETURN 0 on success, or a nega...
nilfs_palloc_mdt_file_can_grow(9)
NAME nilfs_palloc_mdt_file_can_grow - check potential opportunity for MDT file growing SYNOPSIS bool nilfs_palloc_mdt_file_can_grow (struct inode *inode , unsigned long desc_blocks ); ARGUMENTS inode inode of metadata file using this allocator desc_blocks known current descriptor blocks count RETURN tr...
nilfs_palloc_prepare_alloc_entry(9)
NAME nilfs_palloc_prepare_alloc_entry - prepare to allocate a persistent object SYNOPSIS int nilfs_palloc_prepare_alloc_entry (struct inode *inode , struct nilfs_palloc_req *req , bool wrap ); ARGUMENTS inode inode of metadata file using this allocator req nilfs_palloc_req structure exchanged fo...
nilfs_palloc_prepare_free_entry(9)
NAME nilfs_palloc_prepare_free_entry - prepare to deallocate a persistent object SYNOPSIS int nilfs_palloc_prepare_free_entry (struct inode *inode , struct nilfs_palloc_req *req ); ARGUMENTS inode inode of metadata file using this allocator req nilfs_palloc_req structure exchanged for the remova...
nilfs_palloc_rest_groups_in_desc_block(9)
NAME nilfs_palloc_rest_groups_in_desc_block - get the remaining number of groups in a group descriptor block SYNOPSIS unsigned long nilfs_palloc_rest_groups_in_desc_block (const struct inode *inode , unsigned long curr , unsigned long max ); ARGUMENTS inode inode of metadata file using this allocator cu...
nilfs_prepare_write_logs(9)
NAME nilfs_prepare_write_logs - prepare to write logs SYNOPSIS void nilfs_prepare_write_logs (struct list_head *logs , u32 seed ); ARGUMENTS logs logs to prepare for writing seed checksum seed value DESCRIPTION nilfs_prepare_write_logs adds checksums and prepares the block buffers/folios for ...
nilfs_read_folio(9)
NAME nilfs_read_folio - implement read_folio() method of nilfs_aops {} address_space_operations. SYNOPSIS int nilfs_read_folio (struct file *file , struct folio *folio ); ARGUMENTS file file struct of the file to be read folio the folio to be read RETURN 0 on success, or a negative error code on...
nilfs_read_log_header(9)
NAME nilfs_read_log_header - read summary header of the specified log SYNOPSIS struct buffer_head * nilfs_read_log_header (struct the_nilfs *nilfs , sector_t start_blocknr , struct nilfs_segment_summary **sum ); ARGUMENTS nilfs nilfs object start_blocknr start block number of the log ...
nilfs_read_summary_info(9)
NAME nilfs_read_summary_info - read an item on summary blocks of a log SYNOPSIS void * nilfs_read_summary_info (struct the_nilfs *nilfs , struct buffer_head **pbh , unsigned int *offset , unsigned int bytes ); ARGUMENTS nilfs nilfs object pbh the current buffer head on summary blocks [in, out] ...
nilfs_read_super_root_block(9)
NAME nilfs_read_super_root_block - read super root block SYNOPSIS int nilfs_read_super_root_block (struct the_nilfs *nilfs , sector_t sr_block , struct buffer_head **pbh , int check ); ARGUMENTS nilfs nilfs object sr_block disk block number of the super root block pbh address of a buf...
nilfs_remove_all_gcinodes(9)
NAME nilfs_remove_all_gcinodes - remove all unprocessed gc inodes SYNOPSIS void nilfs_remove_all_gcinodes (struct the_nilfs *nilfs ); ARGUMENTS nilfs NILFS filesystem instance SEE ALSO Kernel file ./fs/nilfs2/gcinode.c April 2026 ...
nilfs_resize_fs(9)
NAME nilfs_resize_fs - resize the filesystem SYNOPSIS int nilfs_resize_fs (struct super_block *sb , __u64 newsize ); ARGUMENTS sb super block instance newsize new size of the filesystem (in bytes) RETURN 0 on success, or a negative error code on failure. SEE ALSO Kernel file ./fs/nilfs2/super.c...
nilfs_salvage_orphan_logs(9)
NAME nilfs_salvage_orphan_logs - salvage logs written after the latest checkpoint SYNOPSIS int nilfs_salvage_orphan_logs (struct the_nilfs *nilfs , struct super_block *sb , struct nilfs_recovery_info *ri ); ARGUMENTS nilfs nilfs object sb super block instance ri pointer to a ni...
nilfs_sb2_bad_offset(9)
NAME nilfs_sb2_bad_offset - check the location of the second superblock SYNOPSIS bool nilfs_sb2_bad_offset (struct nilfs_super_block *sbp , u64 offset ); ARGUMENTS sbp superblock raw data buffer offset byte offset of second superblock calculated from device size DESCRIPTION nilfs_sb2_bad_offset ...
nilfs_scan_dsync_log(9)
NAME nilfs_scan_dsync_log - get block information of a log written for data sync SYNOPSIS int nilfs_scan_dsync_log (struct the_nilfs *nilfs , sector_t start_blocknr , struct nilfs_segment_summary *sum , struct list_head *head ); ARGUMENTS nilfs nilfs object start_blocknr start block n...
nilfs_search_super_root(9)
NAME nilfs_search_super_root - search the latest valid super root SYNOPSIS int nilfs_search_super_root (struct the_nilfs *nilfs , struct nilfs_recovery_info *ri ); ARGUMENTS nilfs the_nilfs ri pointer to a nilfs_recovery_info struct to store search results. DESCRIPTION nilfs_search_super_root ...
nilfs_segbuf_map_cont(9)
NAME nilfs_segbuf_map_cont - map a new log behind a given log SYNOPSIS void nilfs_segbuf_map_cont (struct nilfs_segment_buffer *segbuf , struct nilfs_segment_buffer *prev ); ARGUMENTS segbuf new segment buffer prev segment buffer containing a log to be continued SEE ALSO Kernel file ./fs/nilfs2/s...
nilfs_segbuf_wait(9)
NAME nilfs_segbuf_wait - wait for completion of requested BIOs SYNOPSIS int nilfs_segbuf_wait (struct nilfs_segment_buffer *segbuf ); ARGUMENTS segbuf segment buffer RETURN 0 on success, or -EIO if I/O error is detected. SEE ALSO Kernel file ./fs/nilfs2/segbuf.c nilfs_segbuf_map_cont(9), nilfs_add_checksums_on...
nilfs_segbuf_write(9)
NAME nilfs_segbuf_write - submit write requests of a log SYNOPSIS int nilfs_segbuf_write (struct nilfs_segment_buffer *segbuf , struct the_nilfs *nilfs ); ARGUMENTS segbuf buffer storing a log to be written nilfs nilfs object RETURN Always 0. SEE ALSO Kernel file ./fs/nilfs2/segbuf.c nilfs_segbuf...
nilfs_segctor_accept(9)
NAME nilfs_segctor_accept - record accepted sequence count of log-write requests SYNOPSIS void nilfs_segctor_accept (struct nilfs_sc_info *sci ); ARGUMENTS sci segment constructor object SEE ALSO Kernel file ./fs/nilfs2/segment.c nilfs_transaction_begin(9), nilfs_transaction_commit(9), nilfs_segctor_rese...
nilfs_segctor_begin_construction(9)
NAME nilfs_segctor_begin_construction - setup segment buffer to make a new log SYNOPSIS int nilfs_segctor_begin_construction (struct nilfs_sc_info *sci , struct the_nilfs *nilfs ); ARGUMENTS sci nilfs_sc_info nilfs nilfs object RETURN 0 on success, or a negative error code on failure. SEE ALSO...
nilfs_segctor_construct(9)
NAME nilfs_segctor_construct - form logs and write them to disk SYNOPSIS int nilfs_segctor_construct (struct nilfs_sc_info *sci , int mode ); ARGUMENTS sci segment constructor object mode mode of log forming RETURN 0 on success, or a negative error code on failure. SEE ALSO Kernel file ./fs...
nilfs_segctor_destroy(9)
NAME nilfs_segctor_destroy - destroy the segment constructor. SYNOPSIS void nilfs_segctor_destroy (struct nilfs_sc_info *sci ); ARGUMENTS sci nilfs_sc_info DESCRIPTION nilfs_segctor_destroy kills the segctord thread and frees the nilfs_sc_info struct. Caller must hold the segment semaphore. SEE ALSO Kernel...