id
stringlengths
4
63
text
stringlengths
153
8.81M
gfs2_glock_nq_init(9)
NAME gfs2_glock_nq_init - initialize a holder and enqueue it on a glock SYNOPSIS int gfs2_glock_nq_init (struct gfs2_glock *gl , unsigned int state , u16 flags , struct gfs2_holder *gh ); ARGUMENTS gl the glock state the state we're requesting flags the modifier flags gh ...
gfs2_glock_nq_m(9)
NAME gfs2_glock_nq_m - acquire multiple glocks SYNOPSIS int gfs2_glock_nq_m (unsigned int num_gh , struct gfs2_holder *ghs ); ARGUMENTS num_gh the number of structures ghs an array of struct gfs2_holder structures RETURN 0 on success (all glocks acquired), errno on failure (no glocks acquired) ...
gfs2_glock_nq_num(9)
NAME gfs2_glock_nq_num - acquire a glock based on lock number SYNOPSIS int gfs2_glock_nq_num (struct gfs2_sbd *sdp , u64 number , const struct gfs2_glock_operations *glops , unsigned int state , u16 flags , struct gfs2_holder *gh ); ARGUMENTS sdp the filesystem number the lock number glop...
gfs2_glock_poll(9)
NAME gfs2_glock_poll - poll to see if an async request has been completed SYNOPSIS int gfs2_glock_poll (struct gfs2_holder *gh ); ARGUMENTS gh the holder RETURN 1 if the request is ready to be gfs2_glock_waited on SEE ALSO Kernel file ./fs/gfs2/glock.c wake_up_glock(9), gfs2_glock_hold(9), gfs2_glock_...
gfs2_glock_put(9)
NAME gfs2_glock_put - Decrement reference count on glock SYNOPSIS void gfs2_glock_put (struct gfs2_glock *gl ); ARGUMENTS gl The glock to put SEE ALSO Kernel file ./fs/gfs2/glock.c wake_up_glock(9), gfs2_glock_hold(9), may_grant(9), do_error(9), find_first_holder(9), do_promote(9), find_first_waiter(9), fin...
gfs2_glock_put_eventually(9)
NAME gfs2_glock_put_eventually - SYNOPSIS void gfs2_glock_put_eventually (struct gfs2_glock *gl ); ARGUMENTS gl The glock to put DESCRIPTION When under memory pressure, trigger a deferred glock put to make sure we won't call into DLM and deadlock. Otherwise, put the glock directly. SEE ALSO Kernel file ...
gfs2_glock_thaw(9)
NAME gfs2_glock_thaw - Thaw any frozen glocks SYNOPSIS void gfs2_glock_thaw (struct gfs2_sbd *sdp ); ARGUMENTS sdp The super block SEE ALSO Kernel file ./fs/gfs2/glock.c wake_up_glock(9), gfs2_glock_hold(9), gfs2_glock_put(9), may_grant(9), do_error(9), find_first_holder(9), do_promote(9), find_first_w...
gfs2_glock_wait(9)
NAME gfs2_glock_wait - wait on a glock acquisition SYNOPSIS int gfs2_glock_wait (struct gfs2_holder *gh ); ARGUMENTS gh the glock holder RETURN 0 on success SEE ALSO Kernel file ./fs/gfs2/glock.c wake_up_glock(9), gfs2_glock_hold(9), gfs2_glock_put(9), may_grant(9), do_error(9), find_first_holder(9),...
gfs2_holder_reinit(9)
NAME gfs2_holder_reinit - reinitialize a struct gfs2_holder so we can requeue it SYNOPSIS void gfs2_holder_reinit (unsigned int state , u16 flags , struct gfs2_holder *gh ); ARGUMENTS state the state we're requesting flags the modifier flags gh the holder structure DESCRIPTION Do...
gfs2_holder_uninit(9)
NAME gfs2_holder_uninit - uninitialize a holder structure (drop glock reference) SYNOPSIS void gfs2_holder_uninit (struct gfs2_holder *gh ); ARGUMENTS gh the holder structure SEE ALSO Kernel file ./fs/gfs2/glock.c wake_up_glock(9), gfs2_glock_hold(9), gfs2_glock_put(9), may_grant(9), do_error(9), find...
gfs2_hole_size(9)
NAME gfs2_hole_size - figure out the size of a hole SYNOPSIS int gfs2_hole_size (struct inode *inode , sector_t lblock , u64 len , struct metapath *mp , struct iomap *iomap ); ARGUMENTS inode The inode lblock The logical starting block number len How far to look (in blocks) ...
gfs2_init_xattr(9)
NAME gfs2_init_xattr - Initialise an xattr block for a new inode SYNOPSIS void gfs2_init_xattr (struct gfs2_inode *ip ); ARGUMENTS ip The inode in question DESCRIPTION This sets up an empty xattr block for a new inode, ready to take any ACLs, LSM xattrs, etc. SEE ALSO Kernel file ./fs/gfs2/inode.c gfs2_set...
gfs2_inode_lookup(9)
NAME gfs2_inode_lookup - Lookup an inode SYNOPSIS struct inode * gfs2_inode_lookup (struct super_block *sb , unsigned int type , u64 no_addr , u64 no_formal_ino , unsigned int blktype ); ARGUMENTS sb The super block type The type of the inode no_addr The inode number no_for...
gfs2_inode_metasync(9)
NAME gfs2_inode_metasync - sync out the metadata of an inode SYNOPSIS int gfs2_inode_metasync (struct gfs2_glock *gl ); ARGUMENTS gl the glock protecting the inode SEE ALSO Kernel file ./fs/gfs2/glops.c __gfs2_ail_flush(9), gfs2_rgrp_metasync(9), rgrp_go_sync(9), rgrp_go_inval(9), inode_go_sync(9), ...
gfs2_inode_refresh(9)
NAME gfs2_inode_refresh - Refresh the incore copy of the dinode SYNOPSIS int gfs2_inode_refresh (struct gfs2_inode *ip ); ARGUMENTS ip The GFS2 inode RETURN errno SEE ALSO Kernel file ./fs/gfs2/glops.c __gfs2_ail_flush(9), gfs2_rgrp_metasync(9), rgrp_go_sync(9), rgrp_go_inval(9), gfs2_inode_metasync...
gfs2_inplace_release(9)
NAME gfs2_inplace_release - release an inplace reservation SYNOPSIS void gfs2_inplace_release (struct gfs2_inode *ip ); ARGUMENTS ip the inode the reservation was taken out on DESCRIPTION Release a reservation made by gfs2_inplace_reserve. SEE ALSO Kernel file ./fs/gfs2/rgrp.c gfs2_setbit(9), gfs2_test...
gfs2_inplace_reserve(9)
NAME gfs2_inplace_reserve - Reserve space in the filesystem SYNOPSIS int gfs2_inplace_reserve (struct gfs2_inode *ip , struct gfs2_alloc_parms *ap ); ARGUMENTS ip the inode to reserve space for ap the allocation parameters DESCRIPTION We try our best to find an rgrp that has at least ap->ta...
gfs2_internal_read(9)
NAME gfs2_internal_read - read an internal file SYNOPSIS ssize_t gfs2_internal_read (struct gfs2_inode *ip , char *buf , loff_t *pos , size_t size ); ARGUMENTS ip The gfs2 inode buf The buffer to fill pos The file position size The amount to read SEE ALSO Kerne...
gfs2_iter_unstuffed(9)
NAME gfs2_iter_unstuffed - copies the unstuffed xattr data to/from the request buffer SYNOPSIS int gfs2_iter_unstuffed (struct gfs2_inode *ip , struct gfs2_ea_header *ea , const char *din , char *dout ); ARGUMENTS ip The GFS2 inode ea The extended attribute header structure din ...
gfs2_jdata_writeback(9)
NAME gfs2_jdata_writeback - Write jdata folios to the log SYNOPSIS int gfs2_jdata_writeback (struct address_space *mapping , struct writeback_control *wbc ); ARGUMENTS mapping The mapping to write wbc The writeback control RETURN errno SEE ALSO Kernel file ./fs/gfs2/aops.c gfs2_get_block_noa...
gfs2_jdata_writepages(9)
NAME gfs2_jdata_writepages - Write a bunch of dirty pages back to disk SYNOPSIS int gfs2_jdata_writepages (struct address_space *mapping , struct writeback_control *wbc ); ARGUMENTS mapping The mapping to write wbc The writeback control SEE ALSO Kernel file ./fs/gfs2/aops.c gfs2_get_block_no...
gfs2_jhead_folio_search(9)
NAME gfs2_jhead_folio_search - Look for the journal head in a given page. SYNOPSIS bool gfs2_jhead_folio_search (struct gfs2_jdesc *jd , struct gfs2_log_header_host *head , struct folio *folio ); ARGUMENTS jd The journal descriptor head The journal head to start from folio The fo...
gfs2_jhead_process_page(9)
NAME gfs2_jhead_process_page - Search/cleanup a page SYNOPSIS void gfs2_jhead_process_page (struct gfs2_jdesc *jd , unsigned long index , struct gfs2_log_header_host *head , bool *done ); ARGUMENTS jd The journal descriptor index Index of the page to look into head The journal he...
gfs2_jindex_free(9)
NAME gfs2_jindex_free - Clear all the journal index information SYNOPSIS void gfs2_jindex_free (struct gfs2_sbd *sdp ); ARGUMENTS sdp The GFS2 superblock SEE ALSO Kernel file ./fs/gfs2/super.c gfs2_make_fs_rw(9), gfs2_lock_fs_check_clean(9), gfs2_write_inode(9), gfs2_dirty_inode(9), gfs2_make_fs_ro(9), gf...
gfs2_jindex_hold(9)
NAME gfs2_jindex_hold - Grab a lock on the jindex SYNOPSIS int gfs2_jindex_hold (struct gfs2_sbd *sdp , struct gfs2_holder *ji_gh ); ARGUMENTS sdp The GFS2 superblock ji_gh the holder for the jindex glock RETURN errno SEE ALSO Kernel file ./fs/gfs2/ops_fstype.c gfs2_tune_init(9), gfs2_check_sb...
gfs2_journal_wipe(9)
NAME gfs2_journal_wipe - make inode's buffers so they aren't dirty/pinned anymore SYNOPSIS void gfs2_journal_wipe (struct gfs2_inode *ip , u64 bstart , u32 blen ); ARGUMENTS ip the inode who owns the buffers bstart the first buffer in the run blen the number of buffers in the run ...
gfs2_journaled_truncate(9)
NAME gfs2_journaled_truncate - Wrapper for truncate_pagecache for jdata files SYNOPSIS int gfs2_journaled_truncate (struct inode *inode , u64 oldsize , u64 newsize ); ARGUMENTS inode The inode being truncated oldsize The original (larger) size newsize The new smaller size DESCRIPTION Wi...
gfs2_link(9)
NAME gfs2_link - Link to a file SYNOPSIS int gfs2_link (struct dentry *old_dentry , struct inode *dir , struct dentry *dentry ); ARGUMENTS old_dentry The inode to link dir Add link to this directory dentry The name of the link DESCRIPTION Link the inode in "old_dentry" into the director...
gfs2_listxattr(9)
NAME gfs2_listxattr - List gfs2 extended attributes SYNOPSIS ssize_t gfs2_listxattr (struct dentry *dentry , char *buffer , size_t size ); ARGUMENTS dentry The dentry whose inode we are interested in buffer The buffer to write the results size The size of the buffer RETURN actual siz...
gfs2_llseek(9)
NAME gfs2_llseek - seek to a location in a file SYNOPSIS loff_t gfs2_llseek (struct file *file , loff_t offset , int whence ); ARGUMENTS file the file offset the offset whence Where to seek from (SEEK_SET, SEEK_CUR, or SEEK_END) DESCRIPTION SEEK_END requires the glock for the file be...
gfs2_lm_mount(9)
NAME gfs2_lm_mount - mount a locking protocol SYNOPSIS int gfs2_lm_mount (struct gfs2_sbd *sdp , int silent ); ARGUMENTS sdp the filesystem silent if 1, don't complain if the FS isn't a GFS2 fs RETURN errno SEE ALSO Kernel file ./fs/gfs2/ops_fstype.c gfs2_tune_init(9), gfs2_check_sb(9), gfs2_re...
gfs2_lock(9)
NAME gfs2_lock - acquire/release a posix lock on a file SYNOPSIS int gfs2_lock (struct file *file , int cmd , struct file_lock *fl ); ARGUMENTS file the file pointer cmd either modify or retrieve lock state, possibly wait fl type and range of lock RETURN errno SEE ALSO Kernel...
gfs2_lock_fs_check_clean(9)
NAME gfs2_lock_fs_check_clean - Stop all writes to the FS and check that all journals are clean SYNOPSIS int gfs2_lock_fs_check_clean (struct gfs2_sbd *sdp ); ARGUMENTS sdp the file system RETURN errno SEE ALSO Kernel file ./fs/gfs2/super.c gfs2_jindex_free(9), gfs2_make_fs_rw(9), gfs2_write_inode(9), ...
gfs2_log_alloc_bio(9)
NAME gfs2_log_alloc_bio - Allocate a bio SYNOPSIS struct bio * gfs2_log_alloc_bio (struct gfs2_sbd *sdp , u64 blkno , bio_end_io_t *end_io , blk_opf_t opf ); ARGUMENTS sdp The super block blkno The device block number we want to write to end_io The bi_end_io callback opf ...
gfs2_log_commit(9)
NAME gfs2_log_commit - Commit a transaction to the log SYNOPSIS void gfs2_log_commit (struct gfs2_sbd *sdp , struct gfs2_trans *tr ); ARGUMENTS sdp the filesystem tr the transaction DESCRIPTION We wake up gfs2_logd if the number of pinned blocks exceed thresh1 or the total number of used b...
gfs2_log_flush(9)
NAME gfs2_log_flush - flush incore transaction(s) SYNOPSIS void gfs2_log_flush (struct gfs2_sbd *sdp , struct gfs2_glock *gl , u32 flags ); ARGUMENTS sdp The filesystem gl The glock structure to flush. If NULL, flush the whole incore log flags The log header flags: GFS2_LOG_HEA...
gfs2_log_get_bio(9)
NAME gfs2_log_get_bio - Get cached log bio, or allocate a new one SYNOPSIS struct bio * gfs2_log_get_bio (struct gfs2_sbd *sdp , u64 blkno , struct bio **biop , blk_opf_t opf , bio_end_io_t *end_io , bool flush ); ARGUMENTS sdp The super block blkno The device block number we want to write to ...
gfs2_log_is_empty(9)
NAME gfs2_log_is_empty - Check if the log is empty SYNOPSIS bool gfs2_log_is_empty (struct gfs2_sbd *sdp ); ARGUMENTS sdp The GFS2 superblock SEE ALSO Kernel file ./fs/gfs2/log.c gfs2_struct2blk(9), gfs2_remove_from_ail(9), gfs2_ail1_start_one(9), gfs2_ail1_flush(9), gfs2_ail1_start(9), gfs2_ail1_e...
gfs2_log_lock(9)
NAME gfs2_log_lock - acquire the right to mess with the log manager SYNOPSIS void gfs2_log_lock (struct gfs2_sbd *sdp ); ARGUMENTS sdp the filesystem SEE ALSO Kernel file ./fs/gfs2/log.h gfs2_log_unlock(9) April 2026 ...
gfs2_log_release(9)
NAME gfs2_log_release - Release a given number of log blocks SYNOPSIS void gfs2_log_release (struct gfs2_sbd *sdp , unsigned int blks ); ARGUMENTS sdp The GFS2 superblock blks The number of blocks SEE ALSO Kernel file ./fs/gfs2/log.c gfs2_struct2blk(9), gfs2_remove_from_ail(9), gfs2_ail1_...
gfs2_log_release_revokes(9)
NAME gfs2_log_release_revokes - Release a given number of revokes SYNOPSIS void gfs2_log_release_revokes (struct gfs2_sbd *sdp , unsigned int revokes ); ARGUMENTS sdp The GFS2 superblock revokes The number of revokes to release DESCRIPTION sdp->sd_log_flush_lock must be held. SEE ALSO Kernel f...
gfs2_log_reserve(9)
NAME gfs2_log_reserve - Make a log reservation SYNOPSIS void gfs2_log_reserve (struct gfs2_sbd *sdp , struct gfs2_trans *tr , unsigned int *extra_revokes ); ARGUMENTS sdp The GFS2 superblock tr The transaction extra_revokes The number of additional revokes reserved ...
gfs2_log_shutdown(9)
NAME gfs2_log_shutdown - write a shutdown header into a journal SYNOPSIS void gfs2_log_shutdown (struct gfs2_sbd *sdp ); ARGUMENTS sdp the filesystem SEE ALSO Kernel file ./fs/gfs2/log.c gfs2_struct2blk(9), gfs2_remove_from_ail(9), gfs2_ail1_start_one(9), gfs2_ail1_flush(9), gfs2_ail1_start(9), gfs2_ai...
gfs2_log_submit_write(9)
NAME gfs2_log_submit_write - Submit a pending log write bio SYNOPSIS void gfs2_log_submit_write (struct bio **biop ); ARGUMENTS biop Address of the bio pointer DESCRIPTION Submit any pending part-built or full bio to the block device. If there is no pending bio, then this is a no-op. SEE ALSO Kernel file ....
gfs2_log_try_reserve(9)
NAME gfs2_log_try_reserve - Try to make a log reservation SYNOPSIS bool gfs2_log_try_reserve (struct gfs2_sbd *sdp , struct gfs2_trans *tr , unsigned int *extra_revokes ); ARGUMENTS sdp The GFS2 superblock tr The transaction extra_revokes The number of additional re...
gfs2_log_unlock(9)
NAME gfs2_log_unlock - release the right to mess with the log manager SYNOPSIS void gfs2_log_unlock (struct gfs2_sbd *sdp ); ARGUMENTS sdp the filesystem SEE ALSO Kernel file ./fs/gfs2/log.h gfs2_log_lock(9) April 2026 ...
gfs2_log_write(9)
NAME gfs2_log_write - write to log SYNOPSIS void gfs2_log_write (struct gfs2_sbd *sdp , struct gfs2_jdesc *jd , struct page *page , unsigned size , unsigned offset , u64 blkno , blk_opf_t opf ); ARGUMENTS sdp the filesystem jd The journal descriptor page the page to write ...
gfs2_log_write_bh(9)
NAME gfs2_log_write_bh - write a buffer's content to the log SYNOPSIS void gfs2_log_write_bh (struct gfs2_sbd *sdp , struct buffer_head *bh ); ARGUMENTS sdp The super block bh The buffer pointing to the in-place location DESCRIPTION This writes the content of the buffer to the next available...
gfs2_log_write_page(9)
NAME gfs2_log_write_page - write one block stored in a page, into the log SYNOPSIS void gfs2_log_write_page (struct gfs2_sbd *sdp , struct page *page ); ARGUMENTS sdp The superblock page The struct page DESCRIPTION This writes the first block-sized part of the page into the log. Note that the ...
gfs2_logd(9)
NAME gfs2_logd - Update log tail as Active Items get flushed to in-place blocks SYNOPSIS int gfs2_logd (void *data ); ARGUMENTS data Pointer to GFS2 superblock DESCRIPTION Also, periodically check to make sure that we're using the most recent journal index. SEE ALSO Kernel file ./fs/gfs2/log.c gfs2_struct...
gfs2_lookup_by_inum(9)
NAME gfs2_lookup_by_inum - look up an inode by inode number SYNOPSIS struct inode * gfs2_lookup_by_inum (struct gfs2_sbd *sdp , u64 no_addr , u64 no_formal_ino , unsigned int blktype ); ARGUMENTS sdp The super block no_addr The inode number no_formal_ino The inode genera...
gfs2_lookup_meta(9)
NAME gfs2_lookup_meta - Look up an inode in a metadata directory SYNOPSIS struct inode * gfs2_lookup_meta (struct inode *dip , const char *name ); ARGUMENTS dip The directory name The name of the inode SEE ALSO Kernel file ./fs/gfs2/inode.c gfs2_set_iop(9), gfs2_inode_lookup(9), gfs2_lookup_b...
gfs2_lookupi(9)
NAME gfs2_lookupi - Look up a filename in a directory and return its inode SYNOPSIS struct inode * gfs2_lookupi (struct inode *dir , const struct qstr *name , int is_root ); ARGUMENTS dir The inode of the directory containing the inode to look-up name The name of the inode to look for i...
gfs2_make_fs_ro(9)
NAME gfs2_make_fs_ro - Turn a Read-Write FS into a Read-Only one SYNOPSIS void gfs2_make_fs_ro (struct gfs2_sbd *sdp ); ARGUMENTS sdp the filesystem RETURN errno SEE ALSO Kernel file ./fs/gfs2/super.c gfs2_jindex_free(9), gfs2_make_fs_rw(9), gfs2_lock_fs_check_clean(9), gfs2_write_inode(9), gfs2_dirty_ino...
gfs2_make_fs_rw(9)
NAME gfs2_make_fs_rw - Turn a Read-Only FS into a Read-Write one SYNOPSIS int gfs2_make_fs_rw (struct gfs2_sbd *sdp ); ARGUMENTS sdp the filesystem RETURN errno SEE ALSO Kernel file ./fs/gfs2/super.c gfs2_jindex_free(9), gfs2_lock_fs_check_clean(9), gfs2_write_inode(9), gfs2_dirty_inode(9), gfs2_make_fs_r...
gfs2_map_journal_extents(9)
NAME gfs2_map_journal_extents - Cache journal bmap info SYNOPSIS int gfs2_map_journal_extents (struct gfs2_sbd *sdp , struct gfs2_jdesc *jd ); ARGUMENTS sdp The super block jd The journal to map DESCRIPTION Create a reusable "extent" mapping from all logical blocks to all physical blocks ...
gfs2_merge_trans(9)
NAME gfs2_merge_trans - Merge a new transaction into a cached transaction SYNOPSIS void gfs2_merge_trans (struct gfs2_sbd *sdp , struct gfs2_trans *new ); ARGUMENTS sdp the filesystem new New transaction to be merged SEE ALSO Kernel file ./fs/gfs2/log.c gfs2_struct2blk(9), gfs2_remove_fro...
gfs2_meta_buffer(9)
NAME gfs2_meta_buffer - Get a metadata buffer SYNOPSIS int gfs2_meta_buffer (struct gfs2_inode *ip , u32 mtype , u64 num , struct buffer_head **bhp ); ARGUMENTS ip The GFS2 inode mtype The block type (GFS2_METATYPE_*) num The block number (device relative) of the buffer ...
gfs2_meta_new(9)
NAME gfs2_meta_new - Get a block SYNOPSIS struct buffer_head * gfs2_meta_new (struct gfs2_glock *gl , u64 blkno ); ARGUMENTS gl The glock associated with this block blkno The block number RETURN The buffer SEE ALSO Kernel file ./fs/gfs2/meta_io.c gfs2_getbuf(9), gfs2_meta_read(9), gfs2_meta_w...
gfs2_meta_ra(9)
NAME gfs2_meta_ra - start readahead on an extent of a file SYNOPSIS struct buffer_head * gfs2_meta_ra (struct gfs2_glock *gl , u64 dblock , u32 extlen ); ARGUMENTS gl the glock the blocks belong to dblock the starting disk block extlen the number of blocks in the extent RETURN the ...
gfs2_meta_read(9)
NAME gfs2_meta_read - Read a block from disk SYNOPSIS int gfs2_meta_read (struct gfs2_glock *gl , u64 blkno , int flags , int rahead , struct buffer_head **bhp ); ARGUMENTS gl The glock covering the block blkno The block number flags flags rahead Do read-ahead ...
gfs2_meta_wait(9)
NAME gfs2_meta_wait - Reread a block from disk SYNOPSIS int gfs2_meta_wait (struct gfs2_sbd *sdp , struct buffer_head *bh ); ARGUMENTS sdp the filesystem bh The block to wait for RETURN errno SEE ALSO Kernel file ./fs/gfs2/meta_io.c gfs2_getbuf(9), gfs2_meta_new(9), gfs2_meta_read(9), gfs2_...
gfs2_mkdir(9)
NAME gfs2_mkdir - Make a directory SYNOPSIS struct dentry * gfs2_mkdir (struct mnt_idmap *idmap , struct inode *dir , struct dentry *dentry , umode_t mode ); ARGUMENTS idmap idmap of the mount the inode was found from dir The parent directory of the new one dentry The dentry of the ...
gfs2_mknod(9)
NAME gfs2_mknod - Make a special file SYNOPSIS int gfs2_mknod (struct mnt_idmap *idmap , struct inode *dir , struct dentry *dentry , umode_t mode , dev_t dev ); ARGUMENTS idmap idmap of the mount the inode was found from dir The directory in which the special file will reside dentry ...
gfs2_mmap(9)
NAME gfs2_mmap - SYNOPSIS int gfs2_mmap (struct file *file , struct vm_area_struct *vma ); ARGUMENTS file The file to map vma The VMA which described the mapping DESCRIPTION There is no need to get a lock here unless we should be updating atime. We ignore any locking errors since the only cons...
gfs2_next_unreserved_block(9)
NAME gfs2_next_unreserved_block - Return next block that is not reserved SYNOPSIS u64 gfs2_next_unreserved_block (struct gfs2_rgrpd *rgd , u64 block , u32 length , struct gfs2_blkreserv *ignore_rs ); ARGUMENTS rgd The resource group block The starting block length The required lengt...
gfs2_offline_uevent(9)
NAME gfs2_offline_uevent - run gfs2_withdraw_helper SYNOPSIS bool gfs2_offline_uevent (struct gfs2_sbd *sdp ); ARGUMENTS sdp The GFS2 superblock SEE ALSO Kernel file ./fs/gfs2/util.c check_journal_clean(9), gfs2_freeze_lock_shared(9) April 2026 ...
gfs2_open(9)
NAME gfs2_open - open a file SYNOPSIS int gfs2_open (struct inode *inode , struct file *file ); ARGUMENTS inode the inode to open file the struct file for this opening DESCRIPTION After atomic_open, this function is only used for opening files which are already cached. We must still get the g...
gfs2_open_common(9)
NAME gfs2_open_common - This is common to open and atomic_open SYNOPSIS int gfs2_open_common (struct inode *inode , struct file *file ); ARGUMENTS inode The inode being opened file The file being opened DESCRIPTION This maybe called under a glock or not depending upon how it has been called. We ...
gfs2_page_mkwrite(9)
NAME gfs2_page_mkwrite - Make a shared, mmap()ed, page writable SYNOPSIS vm_fault_t gfs2_page_mkwrite (struct vm_fault *vmf ); ARGUMENTS vmf The virtual memory fault containing the page to become writable DESCRIPTION When the page becomes writable, we need to ensure that we have blocks allocated on disk to b...
gfs2_permission(9)
NAME gfs2_permission - SYNOPSIS int gfs2_permission (struct mnt_idmap *idmap , struct inode *inode , int mask ); ARGUMENTS idmap idmap of the mount the inode was found from inode The inode mask The mask to be tested DESCRIPTION This may be called from the VFS directly, or from with...
gfs2_pin(9)
NAME gfs2_pin - Pin a buffer in memory SYNOPSIS void gfs2_pin (struct gfs2_sbd *sdp , struct buffer_head *bh ); ARGUMENTS sdp The superblock bh The buffer to be pinned DESCRIPTION The log lock must be held when calling this function SEE ALSO Kernel file ./fs/gfs2/lops.c gfs2_unpin(9),...
gfs2_put_super(9)
NAME gfs2_put_super - Unmount the filesystem SYNOPSIS void gfs2_put_super (struct super_block *sb ); ARGUMENTS sb The VFS superblock SEE ALSO Kernel file ./fs/gfs2/super.c gfs2_jindex_free(9), gfs2_make_fs_rw(9), gfs2_lock_fs_check_clean(9), gfs2_write_inode(9), gfs2_dirty_inode(9), gfs2_make_fs_ro(9), gfs...
gfs2_qa_get(9)
NAME gfs2_qa_get - make sure we have a quota allocations data structure, if necessary SYNOPSIS int gfs2_qa_get (struct gfs2_inode *ip ); ARGUMENTS ip the inode for this reservation SEE ALSO Kernel file ./fs/gfs2/quota.c gfs2_adjust_quota(9), gfs2_quota_check(9), gfs2_quotad(9) April 2026 ...
gfs2_quota_check(9)
NAME gfs2_quota_check - check if allocating new blocks will exceed quota SYNOPSIS int gfs2_quota_check (struct gfs2_inode *ip , kuid_t uid , kgid_t gid , struct gfs2_alloc_parms *ap ); ARGUMENTS ip The inode for which this check is being performed uid The uid to check against gid ...
gfs2_quotad(9)
NAME gfs2_quotad - Write cached quota changes into the quota file SYNOPSIS int gfs2_quotad (void *data ); ARGUMENTS data Pointer to GFS2 superblock SEE ALSO Kernel file ./fs/gfs2/quota.c gfs2_qa_get(9), gfs2_adjust_quota(9), gfs2_quota_check(9) April 2026 ...
gfs2_rbm_add(9)
NAME gfs2_rbm_add - add a number of blocks to an rbm SYNOPSIS bool gfs2_rbm_add (struct gfs2_rbm *rbm , u32 blocks ); ARGUMENTS rbm The rbm with rgd already set correctly blocks The number of blocks to add to rpm DESCRIPTION This function takes an existing rbm structure and adds a number of bloc...
gfs2_rbm_find(9)
NAME gfs2_rbm_find - Look for blocks of a particular state SYNOPSIS int gfs2_rbm_find (struct gfs2_rbm *rbm , u8 state , u32 *minext , struct gfs2_blkreserv *rs , bool nowrap ); ARGUMENTS rbm Value/result starting position and final position state The state which we want to find minext ...
gfs2_rbm_from_block(9)
NAME gfs2_rbm_from_block - Set the rbm based upon rgd and block number SYNOPSIS int gfs2_rbm_from_block (struct gfs2_rbm *rbm , u64 block ); ARGUMENTS rbm The rbm with rgd already set correctly block The block number (filesystem relative) DESCRIPTION This sets the bi and offset members of an rb...
gfs2_read_folio(9)
NAME gfs2_read_folio - read a folio from a file SYNOPSIS int gfs2_read_folio (struct file *file , struct folio *folio ); ARGUMENTS file The file to read folio The folio in the file SEE ALSO Kernel file ./fs/gfs2/aops.c gfs2_get_block_noalloc(9), gfs2_write_jdata_folio(9), __gfs2_jdata_wri...
gfs2_read_sb(9)
NAME gfs2_read_sb - Read super block SYNOPSIS int gfs2_read_sb (struct gfs2_sbd *sdp , int silent ); ARGUMENTS sdp The GFS2 superblock silent Don't print message if mount fails SEE ALSO Kernel file ./fs/gfs2/ops_fstype.c gfs2_tune_init(9), gfs2_check_sb(9), gfs2_read_super(9), gfs2_jindex_hold(9...
gfs2_read_super(9)
NAME gfs2_read_super - Read the gfs2 super block from disk SYNOPSIS int gfs2_read_super (struct gfs2_sbd *sdp , sector_t sector , int silent ); ARGUMENTS sdp The GFS2 super block sector The location of the super block silent Don't print a message if the check fails DESCRIPTION This ...
gfs2_readahead(9)
NAME gfs2_readahead - Read a bunch of pages at once SYNOPSIS void gfs2_readahead (struct readahead_control *rac ); ARGUMENTS rac Read-ahead control structure DESCRIPTION Some notes: 1. This is only for readahead, so we can simply ignore any things which are slightly inconvenient (such as locking conflicts...
gfs2_readdir(9)
NAME gfs2_readdir - Iterator for a directory SYNOPSIS int gfs2_readdir (struct file *file , struct dir_context *ctx ); ARGUMENTS file The directory to read from ctx What to feed directory entries to RETURN errno SEE ALSO Kernel file ./fs/gfs2/file.c gfs2_llseek(9), do_gfs2_set_flags(9), gfs2...
gfs2_release(9)
NAME gfs2_release - called to close a struct file SYNOPSIS int gfs2_release (struct inode *inode , struct file *file ); ARGUMENTS inode the inode the struct file belongs to file the struct file being closed RETURN errno SEE ALSO Kernel file ./fs/gfs2/file.c gfs2_llseek(9), gfs2_readdir(9), do_...
gfs2_release_folio(9)
NAME gfs2_release_folio - free the metadata associated with a folio SYNOPSIS bool gfs2_release_folio (struct folio *folio , gfp_t gfp_mask ); ARGUMENTS folio the folio that's being released gfp_mask passed from Linux VFS, ignored by us DESCRIPTION Calls try_to_free_buffers to free the buffers and pu...
gfs2_remove_from_ail(9)
NAME gfs2_remove_from_ail - Remove an entry from the ail lists, updating counters SYNOPSIS void gfs2_remove_from_ail (struct gfs2_bufdata *bd ); ARGUMENTS bd The gfs2_bufdata to remove DESCRIPTION The ail lock _must_ be held when calling this function SEE ALSO Kernel file ./fs/gfs2/log.c gfs2_struct2blk...
gfs2_rename(9)
NAME gfs2_rename - Rename a file SYNOPSIS int gfs2_rename (struct inode *odir , struct dentry *odentry , struct inode *ndir , struct dentry *ndentry ); ARGUMENTS odir Parent directory of old file name odentry The old dentry of the file ndir Parent directory of new file name n...
gfs2_reservation_check_and_update(9)
NAME gfs2_reservation_check_and_update - Check for reservations during block alloc SYNOPSIS int gfs2_reservation_check_and_update (struct gfs2_rbm *rbm , struct gfs2_blkreserv *rs , u32 minext , struct gfs2_extent *maxext ); ARGUMENTS rbm The current position in the resource group rs Our own ...
gfs2_rgrp_brelse(9)
NAME gfs2_rgrp_brelse - Release RG bitmaps read in with gfs2_rgrp_bh_get() SYNOPSIS void gfs2_rgrp_brelse (struct gfs2_rgrpd *rgd ); ARGUMENTS rgd The resource group SEE ALSO Kernel file ./fs/gfs2/rgrp.c gfs2_setbit(9), gfs2_testbit(9), gfs2_bit_search(9), rs_cmp(9), gfs2_bitfit(9), gfs2_rbm_from_bloc...
gfs2_rgrp_congested(9)
NAME gfs2_rgrp_congested - Use stats to figure out whether an rgrp is congested SYNOPSIS bool gfs2_rgrp_congested (const struct gfs2_rgrpd *rgd , int loops ); ARGUMENTS rgd The rgrp in question loops An indication of how picky we can be (0=very, 1=less so) DESCRIPTION This function uses the rec...
gfs2_rgrp_dump(9)
NAME gfs2_rgrp_dump - print out an rgrp SYNOPSIS void gfs2_rgrp_dump (struct seq_file *seq , struct gfs2_rgrpd *rgd , const char *fs_id_buf ); ARGUMENTS seq The iterator rgd The rgrp in question fs_id_buf pointer to file system id (if requested) SEE ALSO Kernel file ./fs/gfs2/rgrp...
gfs2_rgrp_go_instantiate(9)
NAME gfs2_rgrp_go_instantiate - Read in a RG's header and bitmaps SYNOPSIS int gfs2_rgrp_go_instantiate (struct gfs2_glock *gl ); ARGUMENTS gl the glock representing the rgrpd to read in DESCRIPTION Read in all of a Resource Group's header and bitmap blocks. Caller must eventually call gfs2_rgrp_brelse to ...
gfs2_rgrp_metasync(9)
NAME gfs2_rgrp_metasync - sync out the metadata of a resource group SYNOPSIS int gfs2_rgrp_metasync (struct gfs2_glock *gl ); ARGUMENTS gl the glock protecting the resource group SEE ALSO Kernel file ./fs/gfs2/glops.c __gfs2_ail_flush(9), rgrp_go_sync(9), rgrp_go_inval(9), gfs2_inode_metasync(9), ino...
gfs2_rgrp_used_recently(9)
NAME gfs2_rgrp_used_recently - test if an rgrp has been used recently SYNOPSIS bool gfs2_rgrp_used_recently (const struct gfs2_blkreserv *rs , u64 msecs ); ARGUMENTS rs The block reservation with the rgrp to test msecs The time limit in milliseconds RETURN True if the rgrp glock has been used ...
gfs2_rgrp_verify(9)
NAME gfs2_rgrp_verify - Verify that a resource group is consistent SYNOPSIS void gfs2_rgrp_verify (struct gfs2_rgrpd *rgd ); ARGUMENTS rgd the rgrp SEE ALSO Kernel file ./fs/gfs2/rgrp.c gfs2_setbit(9), gfs2_testbit(9), gfs2_bit_search(9), rs_cmp(9), gfs2_bitfit(9), gfs2_rbm_from_block(9), gfs2_rbm_add...
gfs2_rgrpd_get_first(9)
NAME gfs2_rgrpd_get_first - get the first Resource Group in the filesystem SYNOPSIS struct gfs2_rgrpd * gfs2_rgrpd_get_first (struct gfs2_sbd *sdp ); ARGUMENTS sdp The GFS2 superblock RETURN The first rgrp in the filesystem SEE ALSO Kernel file ./fs/gfs2/rgrp.c gfs2_setbit(9), gfs2_testbit(9), gfs2_bit...
gfs2_rgrpd_get_next(9)
NAME gfs2_rgrpd_get_next - get the next RG SYNOPSIS struct gfs2_rgrpd * gfs2_rgrpd_get_next (struct gfs2_rgrpd *rgd ); ARGUMENTS rgd the resource group descriptor RETURN The next rgrp SEE ALSO Kernel file ./fs/gfs2/rgrp.c gfs2_setbit(9), gfs2_testbit(9), gfs2_bit_search(9), rs_cmp(9), gfs2_bitfit(9),...
gfs2_ri_total(9)
NAME gfs2_ri_total - Total up the file system space, according to the rindex. SYNOPSIS u64 gfs2_ri_total (struct gfs2_sbd *sdp ); ARGUMENTS sdp the filesystem SEE ALSO Kernel file ./fs/gfs2/rgrp.c gfs2_setbit(9), gfs2_testbit(9), gfs2_bit_search(9), rs_cmp(9), gfs2_bitfit(9), gfs2_rbm_from_block(9), g...
gfs2_ri_update(9)
NAME gfs2_ri_update - Pull in a new resource index from the disk SYNOPSIS int gfs2_ri_update (struct gfs2_inode *ip ); ARGUMENTS ip pointer to the rindex inode RETURN 0 on successful update, error code otherwise SEE ALSO Kernel file ./fs/gfs2/rgrp.c gfs2_setbit(9), gfs2_testbit(9), gfs2_bit_search(9),...