Lines Matching refs:lastfrag
227 unsigned lastfrag = ufsi->i_lastfrag; /* it's a short file, so unsigned is enough */ in ufs_extend_tail() local
228 unsigned block = ufs_fragstoblks(lastfrag); in ufs_extend_tail()
233 if (writes_to < (lastfrag | uspi->s_fpbmask)) in ufs_extend_tail()
239 tmp = ufs_new_fragments(inode, p, lastfrag, ufs_data_ptr_to_cpu(sb, p), in ufs_extend_tail()
240 new_size - (lastfrag & uspi->s_fpbmask), err, in ufs_extend_tail()
262 u64 tmp, goal, lastfrag; in ufs_inode_getfrag() local
276 lastfrag = ufsi->i_lastfrag; in ufs_inode_getfrag()
279 if (new_fragment < UFS_NDIR_FRAGMENT && new_fragment >= lastfrag) in ufs_inode_getfrag()
432 unsigned lastfrag = UFS_I(inode)->i_lastfrag; in ufs_getfrag_block() local
433 unsigned tailfrags = lastfrag & uspi->s_fpbmask; in ufs_getfrag_block()
434 if (tailfrags && fragment >= lastfrag) { in ufs_getfrag_block()
1056 sector_t lastfrag; in ufs_alloc_lastblock() local
1061 lastfrag = (size + uspi->s_fsize - 1) >> uspi->s_fshift; in ufs_alloc_lastblock()
1063 if (!lastfrag) in ufs_alloc_lastblock()
1066 lastfrag--; in ufs_alloc_lastblock()
1068 lastpage = ufs_get_locked_page(mapping, lastfrag >> in ufs_alloc_lastblock()
1075 end = lastfrag & ((1 << (PAGE_SHIFT - inode->i_blkbits)) - 1); in ufs_alloc_lastblock()
1081 err = ufs_getfrag_block(inode, lastfrag, bh, 1); in ufs_alloc_lastblock()
1098 if (lastfrag >= UFS_IND_FRAGMENT) { in ufs_alloc_lastblock()
1099 end = uspi->s_fpb - ufs_fragnum(lastfrag) - 1; in ufs_alloc_lastblock()