Searched refs:lastfrag (Results 1 – 2 of 2) sorted by relevance
/linux-2.6.39/fs/ufs/ |
D | truncate.c | 380 sector_t lastfrag; in ufs_alloc_lastblock() local 385 lastfrag = (i_size_read(inode) + uspi->s_fsize - 1) >> uspi->s_fshift; in ufs_alloc_lastblock() 387 if (!lastfrag) in ufs_alloc_lastblock() 390 lastfrag--; in ufs_alloc_lastblock() 392 lastpage = ufs_get_locked_page(mapping, lastfrag >> in ufs_alloc_lastblock() 399 end = lastfrag & ((1 << (PAGE_CACHE_SHIFT - inode->i_blkbits)) - 1); in ufs_alloc_lastblock() 405 err = ufs_getfrag_block(inode, lastfrag, bh, 1); in ufs_alloc_lastblock() 423 if (lastfrag >= UFS_IND_FRAGMENT) { in ufs_alloc_lastblock() 424 end = uspi->s_fpb - ufs_fragnum(lastfrag) - 1; in ufs_alloc_lastblock()
|
D | inode.c | 183 u64 tmp, goal, lastfrag, block, lastblock; in ufs_inode_getfrag() local 204 lastfrag = ufsi->i_lastfrag; in ufs_inode_getfrag() 205 if (tmp && fragment < lastfrag) { in ufs_inode_getfrag() 221 lastblock = ufs_fragstoblks (lastfrag); in ufs_inode_getfrag() 222 lastblockoff = ufs_fragnum (lastfrag); in ufs_inode_getfrag() 232 tmp = ufs_new_fragments(inode, p2, lastfrag, in ufs_inode_getfrag() 237 if (lastfrag != ufsi->i_lastfrag) in ufs_inode_getfrag() 242 lastfrag = ufsi->i_lastfrag; in ufs_inode_getfrag() 279 (blockoff && lastfrag != ufsi->i_lastfrag)) in ufs_inode_getfrag()
|