static sector_t f2fs_bmap(struct address_space *mapping, sector_t block) { struct inode *inode = mapping->host; /* we don't need to use inline_data strictly */ if (f2fs_has_inline_data(inode)) { int err = f2fs_convert_inline_inode(inode); if (err) return err; } return generic_block_bmap(mapping, block, get_data_block_bmap); }
static sector_t gfs2_bmap(struct address_space *mapping, sector_t lblock) { struct gfs2_inode *ip = GFS2_I(mapping->host); struct gfs2_holder i_gh; sector_t dblock = 0; int error; error = gfs2_glock_nq_init(ip->i_gl, LM_ST_SHARED, LM_FLAG_ANY, &i_gh); if (error) return 0; if (!gfs2_is_stuffed(ip)) dblock = generic_block_bmap(mapping, lblock, gfs2_block_map); gfs2_glock_dq_uninit(&i_gh); return dblock; }
static sector_t minix_bmap(struct address_space *mapping, sector_t block) { return generic_block_bmap(mapping,block,minix_get_block); }
static sector_t hfsplus_bmap(struct address_space *mapping, sector_t block) { return generic_block_bmap(mapping, block, hfsplus_get_block); }
/** * vxfs_bmap - perform logical to physical block mapping * @mapping: logical to physical mapping to use * @block: logical block (relative to @mapping). * * Description: * Vxfs_bmap find out the corresponding phsical block to the * @mapping, @block pair. * * Returns: * Physical block number on success, else Zero. * * Locking status: * We are under the bkl. */ static int vxfs_bmap(struct address_space *mapping, long block) { return generic_block_bmap(mapping, block, vxfs_getblk); }
static sector_t partsfs_bmap(struct address_space *mapping, sector_t block) { return generic_block_bmap(mapping, block, get_block); }
static sector_t sfs_bmap(struct address_space *mapping, sector_t block) { pr_debug("sfs_bmap called\n"); return generic_block_bmap(mapping, block, sfs_get_block); }
int ux_bmap(struct address_space *mapping, long block) { return generic_block_bmap(mapping, block, ux_get_block); }