• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /netgear-WNDR4500-V1.0.1.40_1.0.68/src/linux/linux-2.6/fs/reiserfs/

Lines Matching defs:pos

162 					       loff_t pos,	/* Writing position */
186 unsigned int from = (pos & (PAGE_CACHE_SIZE - 1)); // writing position in
188 unsigned int to = ((pos + write_bytes - 1) & (PAGE_CACHE_SIZE - 1)) + 1; /* last modified byte offset in last page */
212 make_cpu_key(&key, inode, pos + 1, TYPE_ANY, 3 /*key length */ );
314 * add 1 to pos in the hole_size calculation
318 hole_size = (pos + item_offset -
716 static int reiserfs_copy_from_user_to_file_region(loff_t pos, /* In-file position */
731 for (i = 0, offset = (pos & (PAGE_CACHE_SIZE - 1)); i < num_pages;
826 static int reiserfs_submit_file_region_for_write(struct reiserfs_transaction_handle *th, struct inode *inode, loff_t pos, /* Writing position offset */
839 for (i = 0, offset = (pos & (PAGE_CACHE_SIZE - 1)); i < num_pages;
856 if (pos + orig_write_bytes > inode->i_size) {
857 inode->i_size = pos + orig_write_bytes; // Set new size
912 loff_t pos, /* Writing position */
935 make_cpu_key(&key, inode, pos + write_bytes + 1, TYPE_ANY,
962 /* This function locks pages starting from @pos for @inode.
972 loff_t pos, /* position in the file */
977 @pos */
984 unsigned long index = pos >> PAGE_CACHE_SHIFT; // Offset in file in pages.
985 int from = (pos & (PAGE_CACHE_SIZE - 1)); // Writing offset in first page
986 int to = ((pos + write_bytes - 1) & (PAGE_CACHE_SIZE - 1)) + 1;
1057 if ((pos & ~((loff_t) PAGE_CACHE_SIZE - 1)) > inode->i_size) {
1075 pos &= ~((loff_t) inode->i_sb->s_blocksize - 1);
1078 1 + ((pos) & ~((loff_t) inode->i_sb->s_blocksize - 1)),
1201 ((pos + write_bytes) >> PAGE_CACHE_SHIFT) >
1284 loff_t pos; // Current position in the file.
1322 pos = *ppos;
1325 is not overly big and this kind of stuff. Adjust pos and
1327 res = generic_write_checks(file, &pos, &count, 0);
1347 res = reiserfs_check_for_tail_and_convert(inode, pos, count);
1358 /* (pos & (PAGE_CACHE_SIZE-1)) is an idiom for offset into a page of pos */
1359 num_pages = !!((pos + count) & (PAGE_CACHE_SIZE - 1)) + /* round up partial
1362 (pos & (PAGE_CACHE_SIZE - 1))) >> PAGE_CACHE_SHIFT);
1376 (pos & (PAGE_CACHE_SIZE - 1));
1393 if (pos >
1395 (pos & (inode->i_sb->s_blocksize - 1))) {
1408 (pos & (inode->i_sb->s_blocksize - 1)));
1423 res = reiserfs_prepare_file_region_for_write(inode, pos,
1448 reiserfs_allocate_blocks_for_region(&th, inode, pos,
1470 reiserfs_copy_from_user_to_file_region(pos, num_pages,
1480 reiserfs_submit_file_region_for_write(&th, inode, pos,
1489 *ppos = pos += write_bytes;