Home
last modified time | relevance | path

Searched refs:PAGE_CACHE_SIZE (Results 1 – 8 of 8) sorted by relevance

/external/squashfs-tools/kernel/fs/squashfs/
Dcache.c273 entry->data[j] = kmalloc(PAGE_CACHE_SIZE, GFP_KERNEL); in squashfs_cache_init()
305 void *buff = entry->data[offset / PAGE_CACHE_SIZE] in squashfs_copy_data()
306 + (offset % PAGE_CACHE_SIZE); in squashfs_copy_data()
308 PAGE_CACHE_SIZE - (offset % PAGE_CACHE_SIZE)); in squashfs_copy_data()
400 int pages = (length + PAGE_CACHE_SIZE - 1) >> PAGE_CACHE_SHIFT; in squashfs_read_table()
406 for (i = 0; i < pages; i++, buffer += PAGE_CACHE_SIZE) in squashfs_read_table()
Dfile.c179 __le32 *blist = kmalloc(PAGE_CACHE_SIZE, GFP_KERNEL); in read_indexes()
187 int blocks = min_t(int, n, PAGE_CACHE_SIZE >> 2); in read_indexes()
392 if (page->index >= ((i_size_read(inode) + PAGE_CACHE_SIZE - 1) >> in squashfs_readpage()
453 bytes -= PAGE_CACHE_SIZE, offset += PAGE_CACHE_SIZE) { in squashfs_readpage()
455 int avail = sparse ? 0 : min_t(int, bytes, PAGE_CACHE_SIZE); in squashfs_readpage()
470 memset(pageaddr + avail, 0, PAGE_CACHE_SIZE - avail); in squashfs_readpage()
489 memset(pageaddr, 0, PAGE_CACHE_SIZE); in squashfs_readpage()
Dsymlink.c54 int length = min_t(int, i_size_read(inode) - index, PAGE_CACHE_SIZE); in squashfs_symlink_readpage()
97 memset(pageaddr + length, 0, PAGE_CACHE_SIZE - length); in squashfs_symlink_readpage()
Dblock.c189 msblk->stream.avail_out = PAGE_CACHE_SIZE; in squashfs_read_data()
243 if (pg_offset == PAGE_CACHE_SIZE) { in squashfs_read_data()
247 avail = min_t(int, in, PAGE_CACHE_SIZE - in squashfs_read_data()
/external/squashfs-tools/kernel-2.4/fs/squashfs/
Dinode.c588 i->i_blksize = PAGE_CACHE_SIZE; in squashfs_iget()
641 i->i_blksize = PAGE_CACHE_SIZE; in squashfs_iget()
1156 block, offset, PAGE_CACHE_SIZE, &block, in squashfs_symlink_readpage()
1170 bytes = (i_size_read(inode) - length) > PAGE_CACHE_SIZE ? PAGE_CACHE_SIZE : in squashfs_symlink_readpage()
1178 memset(pageaddr + bytes, 0, PAGE_CACHE_SIZE - bytes); in squashfs_symlink_readpage()
1471 if (page->index >= ((i_size_read(inode) + PAGE_CACHE_SIZE - 1) >> in squashfs_readpage()
1512 i++, byte_offset += PAGE_CACHE_SIZE) { in squashfs_readpage()
1514 int available_bytes = (bytes - byte_offset) > PAGE_CACHE_SIZE ? in squashfs_readpage()
1515 PAGE_CACHE_SIZE : bytes - byte_offset; in squashfs_readpage()
1525 PAGE_CACHE_SIZE - available_bytes); in squashfs_readpage()
[all …]
Dsquashfs2_0.c227 i->i_blksize = PAGE_CACHE_SIZE; in squashfs_iget_2()
/external/f2fs-tools/include/
Df2fs_fs.h332 #define PAGE_CACHE_SIZE 4096 macro
916 #define INLINE_DATA_OFFSET (PAGE_CACHE_SIZE - sizeof(struct node_footer) \
1034 #define NAT_ENTRY_PER_BLOCK (PAGE_CACHE_SIZE / sizeof(struct f2fs_nat_entry))
1057 #define SIT_ENTRY_PER_BLOCK (PAGE_CACHE_SIZE / sizeof(struct f2fs_sit_entry))
/external/f2fs-tools/fsck/
Dmount.c819 if (F2FS_BLKSIZE != PAGE_CACHE_SIZE) { in sanity_check_raw_super()
821 PAGE_CACHE_SIZE); in sanity_check_raw_super()
1823 PAGE_CACHE_SIZE - SUM_FOOTER_SIZE) in read_compacted_summaries()
1893 memcpy(curseg->sum_blk, sum_blk, PAGE_CACHE_SIZE); in read_normal_summaries()
1959 array[i].sum_blk = calloc(PAGE_CACHE_SIZE, 1); in build_curseg()