Home
last modified time | relevance | path

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

123

/linux-2.4.37.9/fs/umsdos/
Demd.c157 if (offs + recsize > PAGE_CACHE_SIZE) { in umsdos_emd_dir_readentry()
159 int part = (char *)(page_address(page) + PAGE_CACHE_SIZE) - p->spare; in umsdos_emd_dir_readentry()
176 recsize+offs-PAGE_CACHE_SIZE); in umsdos_emd_dir_readentry()
254 if (offs + info->recsize > PAGE_CACHE_SIZE) { in umsdos_writeentry()
256 PAGE_CACHE_SIZE); in umsdos_writeentry()
264 offs+info->recsize-PAGE_CACHE_SIZE); in umsdos_writeentry()
269 (char *)(page_address(page) + PAGE_CACHE_SIZE) - p->spare); in umsdos_writeentry()
271 ((char*)entry)+PAGE_CACHE_SIZE-offs, in umsdos_writeentry()
272 offs+info->recsize-PAGE_CACHE_SIZE); in umsdos_writeentry()
274 offs+info->recsize-PAGE_CACHE_SIZE); in umsdos_writeentry()
[all …]
/linux-2.4.37.9/crypto/
Dscatterwalk.c34 (((unsigned long)walk->data) & (PAGE_CACHE_SIZE - 1)) + nbytes <= in scatterwalk_whichbuf()
35 PAGE_CACHE_SIZE) in scatterwalk_whichbuf()
58 rest_of_page = PAGE_CACHE_SIZE - (sg->offset & (PAGE_CACHE_SIZE - 1)); in scatterwalk_start()
84 (unsigned)PAGE_CACHE_SIZE); in scatterwalk_pagedone()
/linux-2.4.37.9/fs/cramfs/
Dinode.c54 inode->i_blksize = PAGE_CACHE_SIZE; in get_cramfs_inode()
101 #define BUFFER_SIZE (BLKS_PER_BUF*PAGE_CACHE_SIZE)
125 offset &= PAGE_CACHE_SIZE - 1; in cramfs_read()
186 memcpy(data, kmap(page), PAGE_CACHE_SIZE); in cramfs_read()
190 memset(data, 0, PAGE_CACHE_SIZE); in cramfs_read()
191 data += PAGE_CACHE_SIZE; in cramfs_read()
267 buf->f_bsize = PAGE_CACHE_SIZE; in cramfs_statfs()
391 maxblock = (inode->i_size + PAGE_CACHE_SIZE - 1) >> PAGE_CACHE_SHIFT; in cramfs_readpage()
407 else if (compr_len > (PAGE_CACHE_SIZE << 1)) in cramfs_readpage()
412 PAGE_CACHE_SIZE, in cramfs_readpage()
[all …]
DREADME89 PAGE_CACHE_SIZE for cramfs_readpage's convenience.)
93 PAGE_CACHE_SIZE may grow in future (if I interpret the comment
96 Currently, mkcramfs #define's PAGE_CACHE_SIZE as 4096 and uses that
97 for blksize, whereas Linux-2.3.39 uses its PAGE_CACHE_SIZE, which in
102 One option is to change mkcramfs to take its PAGE_CACHE_SIZE from
105 PAGE_CACHE_SIZE (4096)' to `#include <asm/page.h>'. The disadvantage
108 PAGE_CACHE_SIZE is subject to change between kernel versions
129 PAGE_CACHE_SIZE.
132 PAGE_CACHE_SIZE.
135 PAGE_CACHE_SIZE: just make cramfs_readpage read multiple blocks.
[all …]
/linux-2.4.37.9/fs/hfsplus/
Dbnode.c53 l = min(len, PAGE_CACHE_SIZE - off); in hfsplus_bnode_readbytes()
59 l = min(len, PAGE_CACHE_SIZE); in hfsplus_bnode_readbytes()
98 l = min(len, PAGE_CACHE_SIZE - off); in hfsplus_bnode_writebytes()
105 l = min(len, PAGE_CACHE_SIZE); in hfsplus_bnode_writebytes()
138 l = min(len, PAGE_CACHE_SIZE - src); in hfsplus_bnode_copybytes()
145 l = min(len, PAGE_CACHE_SIZE); in hfsplus_bnode_copybytes()
157 if (PAGE_CACHE_SIZE - src < PAGE_CACHE_SIZE - dst) { in hfsplus_bnode_copybytes()
158 l = PAGE_CACHE_SIZE - src; in hfsplus_bnode_copybytes()
162 l = PAGE_CACHE_SIZE - dst; in hfsplus_bnode_copybytes()
205 src = PAGE_CACHE_SIZE; in hfsplus_bnode_movebytes()
[all …]
/linux-2.4.37.9/net/sunrpc/
Dxdr.c208 len = PAGE_CACHE_SIZE; in xdr_kmap()
274 if (pglen <= PAGE_CACHE_SIZE) in xdr_kunmap()
276 pglen -= PAGE_CACHE_SIZE; in xdr_kunmap()
315 len = PAGE_CACHE_SIZE; in xdr_partial_copy_from_skb()
377 pgto_base = PAGE_CACHE_SIZE; in _shift_data_right_pages()
381 pgfrom_base = PAGE_CACHE_SIZE; in _shift_data_right_pages()
423 copy = PAGE_CACHE_SIZE - pgbase; in _copy_to_pages()
432 if (pgbase == PAGE_CACHE_SIZE) { in _copy_to_pages()
462 copy = PAGE_CACHE_SIZE - pgbase; in _copy_from_pages()
471 if (pgbase == PAGE_CACHE_SIZE) { in _copy_from_pages()
/linux-2.4.37.9/fs/nfs/
Dread.c94 int count = PAGE_CACHE_SIZE; in nfs_readpage_sync()
173 new = nfs_create_request(nfs_file_cred(file), inode, page, 0, PAGE_CACHE_SIZE); in nfs_readpage_async()
184 page_index(page) == (inode->i_size + PAGE_CACHE_SIZE - 1) >> PAGE_CACHE_SHIFT) in nfs_readpage_async()
422 if (count < PAGE_CACHE_SIZE) { in nfs_readpage_result()
424 memset(p + count, 0, PAGE_CACHE_SIZE - count); in nfs_readpage_result()
428 count -= PAGE_CACHE_SIZE; in nfs_readpage_result()
463 page, PAGE_CACHE_SIZE, page->index); in nfs_readpage()
475 if (!PageError(page) && NFS_SERVER(inode)->rsize >= PAGE_CACHE_SIZE) { in nfs_readpage()
Dwrite.c227 unsigned offset = PAGE_CACHE_SIZE; in nfs_writepage()
250 offset = inode->i_size & (PAGE_CACHE_SIZE-1); in nfs_writepage()
258 if (NFS_SERVER(inode)->wsize >= PAGE_CACHE_SIZE && !IS_SYNC(inode) && in nfs_writepage()
807 if (NFS_SERVER(inode)->wsize < PAGE_CACHE_SIZE || IS_SYNC(inode)) { in nfs_updatepage()
810 if (offset == 0 && status == PAGE_CACHE_SIZE) in nfs_updatepage()
843 if (req->wb_offset == 0 && req->wb_bytes == PAGE_CACHE_SIZE) { in nfs_updatepage()
Dpagelist.c257 if (req->wb_offset + req->wb_bytes != PAGE_CACHE_SIZE) in nfs_coalesce_requests()
294 if (req->wb_offset + req->wb_bytes != PAGE_CACHE_SIZE) in nfs_scan_forward()
/linux-2.4.37.9/fs/ramfs/
Dinode.c46 buf->f_bsize = PAGE_CACHE_SIZE; in ramfs_statfs()
70 memset(kmap(page), 0, PAGE_CACHE_SIZE); in ramfs_readpage()
83 memset(addr, 0, PAGE_CACHE_SIZE); in ramfs_prepare_write()
110 inode->i_blksize = PAGE_CACHE_SIZE; in ramfs_get_inode()
310 sb->s_blocksize = PAGE_CACHE_SIZE; in ramfs_read_super()
/linux-2.4.37.9/arch/ia64/sn/io/hwgfs/
Dramfs.c29 buf->f_bsize = PAGE_CACHE_SIZE; in hwgfs_statfs()
51 memset(kmap(page), 0, PAGE_CACHE_SIZE); in hwgfs_readpage()
64 memset(addr, 0, PAGE_CACHE_SIZE); in hwgfs_prepare_write()
91 inode->i_blksize = PAGE_CACHE_SIZE; in hwgfs_get_inode()
286 sb->s_blocksize = PAGE_CACHE_SIZE; in hwgfs_read_super()
/linux-2.4.37.9/fs/xfs/linux-2.4/
Dxfs_aops.c174 ASSERT(offset < PAGE_CACHE_SIZE); in xfs_offset_to_map()
303 ret = PAGE_CACHE_SIZE; in xfs_probe_unmapped_page()
337 PAGE_CACHE_SIZE); in xfs_probe_unmapped_cluster()
343 (pg_offset = i_size_read(inode) & (PAGE_CACHE_SIZE - 1))) { in xfs_probe_unmapped_cluster()
466 PAGE_CACHE_SIZE, &bs, bbits); in xfs_map_unwritten()
481 (pg_offset = (i_size_read(inode) & (PAGE_CACHE_SIZE - 1)))) { in xfs_map_unwritten()
567 end = PAGE_CACHE_SIZE; in xfs_convert_page()
569 end = i_size_read(inode) & (PAGE_CACHE_SIZE-1); in xfs_convert_page()
690 !(i_size_read(inode) & (PAGE_CACHE_SIZE - 1))) { in xfs_page_state_convert()
698 offset + PAGE_CACHE_SIZE, i_size_read(inode)); in xfs_page_state_convert()
[all …]
Dxfs_buf.c454 if (blocksize == PAGE_CACHE_SIZE && (flags & PBF_READ)) in _pagebuf_lookup_pages()
899 if (offset && (len > PAGE_CACHE_SIZE)) in pagebuf_associate_memory()
920 ptr += PAGE_CACHE_SIZE; in pagebuf_associate_memory()
925 ptr += PAGE_CACHE_SIZE; in pagebuf_associate_memory()
1344 if (pb->pb_target->pbr_bsize < PAGE_CACHE_SIZE) in _pagebuf_iolocked()
1557 if (xfs_setsize_buftarg(btp, PAGE_CACHE_SIZE, get_hardsect_size(kdev))) in xfs_alloc_buftarg()
1590 if ((pbr->pbr_bsize < PAGE_CACHE_SIZE) && in _pagebuf_page_io()
1649 if ((pg_offset == 0) && (pg_length == PAGE_CACHE_SIZE) && in _pagebuf_page_io()
1742 if ((pbr->pbr_bsize == PAGE_CACHE_SIZE) && in _pagebuf_page_apply()
1743 (pb->pb_buffer_length < PAGE_CACHE_SIZE) && in _pagebuf_page_apply()
[all …]
/linux-2.4.37.9/fs/sysv/
Ddir.c36 return (inode->i_size+PAGE_CACHE_SIZE-1)>>PAGE_CACHE_SHIFT; in dir_pages()
96 limit = kaddr + PAGE_CACHE_SIZE - SYSV_DIRSIZE; in sysv_readdir()
166 kaddr += PAGE_CACHE_SIZE - SYSV_DIRSIZE; in sysv_find_entry()
210 kaddr += PAGE_CACHE_SIZE - SYSV_DIRSIZE; in sysv_add_link()
282 memset(base, 0, PAGE_CACHE_SIZE); in sysv_make_empty()
317 kaddr += PAGE_CACHE_SIZE-SYSV_DIRSIZE; in sysv_empty_dir()
/linux-2.4.37.9/fs/minix/
Ddir.c31 return (inode->i_size+PAGE_CACHE_SIZE-1)>>PAGE_CACHE_SHIFT; in dir_pages()
95 limit = kaddr + PAGE_CACHE_SIZE - chunk_size; in minix_readdir()
159 kaddr += PAGE_CACHE_SIZE - sbi->s_dirsize; in minix_find_entry()
198 kaddr += PAGE_CACHE_SIZE - sbi->s_dirsize; in minix_add_link()
271 memset(base, 0, PAGE_CACHE_SIZE); in minix_make_empty()
306 kaddr += PAGE_CACHE_SIZE - sbi->s_dirsize; in minix_empty_dir()
/linux-2.4.37.9/fs/ext2/
Ddir.c47 return (inode->i_size+PAGE_CACHE_SIZE-1)>>PAGE_CACHE_SHIFT; in dir_pages()
74 unsigned limit = PAGE_CACHE_SIZE; in ext2_check_page()
82 for (offs = limit; offs<PAGE_CACHE_SIZE; offs += chunk_size) { in ext2_check_page()
270 filp->f_pos += PAGE_CACHE_SIZE - offset; in ext2_readdir()
280 limit = kaddr + PAGE_CACHE_SIZE - EXT2_DIR_REC_LEN(1); in ext2_readdir()
342 kaddr += PAGE_CACHE_SIZE - reclen; in ext2_find_entry()
447 kaddr += PAGE_CACHE_SIZE - reclen; in ext2_add_link()
595 kaddr += PAGE_CACHE_SIZE-EXT2_DIR_REC_LEN(1); in ext2_empty_dir()
/linux-2.4.37.9/fs/isofs/
Dcompress.c48 static char zisofs_sink_page[PAGE_CACHE_SIZE];
93 maxpage = (inode->i_size + PAGE_CACHE_SIZE - 1) >> PAGE_CACHE_SHIFT; in zisofs_readpage()
168 memset(page_address(page), 0, PAGE_CACHE_SIZE); in zisofs_readpage()
233 stream.avail_out = PAGE_CACHE_SIZE; in zisofs_readpage()
/linux-2.4.37.9/fs/reiserfs/
Dtail_conversion.c129 unsigned pgoff = (tail_offset + total_tail - 1) & (PAGE_CACHE_SIZE - 1); in direct2indirect()
165 tail_index = pos & (PAGE_CACHE_SIZE - 1) ; in unmap_buffers()
256 tail = tail + (pos & (PAGE_CACHE_SIZE - 1)) ; in indirect2direct()
/linux-2.4.37.9/include/linux/
Dpagemap.h27 #define PAGE_CACHE_SIZE PAGE_SIZE macro
29 #define PAGE_CACHE_ALIGN(addr) (((addr)+PAGE_CACHE_SIZE-1)&PAGE_CACHE_MASK)
/linux-2.4.37.9/fs/jffs2/
Dfile.c227 __u32 end = offset + PAGE_CACHE_SIZE; in jffs2_do_readpage_nolock()
260 } else if (frag->ofs < offset && (offset & (PAGE_CACHE_SIZE-1)) != 0) { in jffs2_do_readpage_nolock()
403 if (!Page_Uptodate(pg) && (start || end < PAGE_CACHE_SIZE)) { in jffs2_prepare_write()
422 __u32 writelen = min((__u32)PAGE_CACHE_SIZE, newsize - file_ofs); in jffs2_commit_write()
429 if (!start && end == PAGE_CACHE_SIZE) { in jffs2_commit_write()
462 …comprtype = jffs2_compress(page_address(pg)+ (file_ofs & (PAGE_CACHE_SIZE-1)), comprbuf, &datalen,… in jffs2_commit_write()
468 comprbuf = page_address(pg) + (file_ofs & (PAGE_CACHE_SIZE -1)); in jffs2_commit_write()
/linux-2.4.37.9/mm/
Dshmem.c40 #define ENTRIES_PER_PAGE (PAGE_CACHE_SIZE/sizeof(unsigned long))
42 #define BLOCKS_PER_PAGE (PAGE_CACHE_SIZE/512)
363 index = (inode->i_size + PAGE_CACHE_SIZE - 1) >> PAGE_CACHE_SHIFT; in shmem_truncate()
409 if (attr->ia_size & (PAGE_CACHE_SIZE-1)) { in shmem_notify_change()
874 inode->i_blksize = PAGE_CACHE_SIZE; in shmem_get_inode()
1002 offset = (pos & (PAGE_CACHE_SIZE -1)); /* Within page */ in shmem_file_write()
1004 bytes = PAGE_CACHE_SIZE - offset; in shmem_file_write()
1086 nr = PAGE_CACHE_SIZE; in do_shmem_file_read()
1165 buf->f_bsize = PAGE_CACHE_SIZE; in shmem_statfs()
1353 if (len > PAGE_CACHE_SIZE) in shmem_symlink()
[all …]
/linux-2.4.37.9/fs/affs/
Dfile.c521 if (from > to || to > PAGE_CACHE_SIZE) in affs_do_readpage_ofs()
623 to = PAGE_CACHE_SIZE; in affs_readpage_ofs()
626 memset(page_address(page) + to, 0, PAGE_CACHE_SIZE - to); in affs_readpage_ofs()
660 if (to < PAGE_CACHE_SIZE) { in affs_prepare_write_ofs()
661 memset(page_address(page) + to, 0, PAGE_CACHE_SIZE - to); in affs_prepare_write_ofs()
663 if (size < offset + PAGE_CACHE_SIZE) in affs_prepare_write_ofs()
666 tmp = PAGE_CACHE_SIZE; in affs_prepare_write_ofs()
844 size = (size & (PAGE_CACHE_SIZE - 1)) + 1; in affs_truncate()
/linux-2.4.37.9/fs/freevxfs/
Dvxfs_lookup.c50 #define VXFS_BLOCK_PER_PAGE(sbp) ((PAGE_CACHE_SIZE / (sbp)->s_blocksize))
68 return (inode->i_size + PAGE_CACHE_SIZE - 1) >> PAGE_CACHE_SHIFT; in dir_pages()
Dvxfs_immed.c130 memcpy(kaddr, vip->vii_immed.vi_immed + offset, PAGE_CACHE_SIZE); in vxfs_immed_readpage()
/linux-2.4.37.9/fs/smbfs/
Dfile.c179 unsigned offset = PAGE_CACHE_SIZE; in smb_writepage()
194 offset = inode->i_size & (PAGE_CACHE_SIZE-1); in smb_writepage()

123