Home
last modified time | relevance | path

Searched refs:lastfrag (Results 1 – 2 of 2) sorted by relevance

/linux-3.4.99/fs/ufs/
Dtruncate.c380 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()
Dinode.c182 u64 tmp, goal, lastfrag, block, lastblock; in ufs_inode_getfrag() local
203 lastfrag = ufsi->i_lastfrag; in ufs_inode_getfrag()
204 if (tmp && fragment < lastfrag) { in ufs_inode_getfrag()
220 lastblock = ufs_fragstoblks (lastfrag); in ufs_inode_getfrag()
221 lastblockoff = ufs_fragnum (lastfrag); in ufs_inode_getfrag()
231 tmp = ufs_new_fragments(inode, p2, lastfrag, in ufs_inode_getfrag()
236 if (lastfrag != ufsi->i_lastfrag) in ufs_inode_getfrag()
241 lastfrag = ufsi->i_lastfrag; in ufs_inode_getfrag()
278 (blockoff && lastfrag != ufsi->i_lastfrag)) in ufs_inode_getfrag()