Home
last modified time | relevance | path

Searched refs:rest (Results 1 – 11 of 11) sorted by relevance

/fs/proc/
Dbootconfig.c23 #define rest(dst, end) ((end) > (dst) ? (end) - (dst) : 0) macro
42 ret = snprintf(dst, rest(dst, end), "%s = ", key); in copy_xbc_key_value_list()
53 ret = snprintf(dst, rest(dst, end), "%c%s%c%s", in copy_xbc_key_value_list()
60 ret = snprintf(dst, rest(dst, end), "\"\"\n"); in copy_xbc_key_value_list()
/fs/squashfs/
Dxattr.c36 size_t rest = buffer_size; in squashfs_listxattr() local
62 if (prefix_size + name_size + 1 > rest) { in squashfs_listxattr()
77 rest -= prefix_size + name_size + 1; in squashfs_listxattr()
98 err = buffer_size - rest; in squashfs_listxattr()
/fs/ufs/
Dballoc.c765 unsigned rest, offset; in ubh_scanc() local
773 rest = size; in ubh_scanc()
775 rest = uspi->s_fsize - offset; in ubh_scanc()
776 size -= rest; in ubh_scanc()
778 while ((table[*cp++] & mask) == 0 && --rest) in ubh_scanc()
780 if (rest || !size) in ubh_scanc()
785 return (size + rest); in ubh_scanc()
/fs/ext2/
Dxattr.c294 size_t rest = buffer_size; in ext2_xattr_list() local
345 if (size > rest) { in ext2_xattr_list()
355 rest -= size; in ext2_xattr_list()
358 error = buffer_size - rest; /* total size */ in ext2_xattr_list()
567 size_t rest = (char *)last - (char *)here; in ext2_xattr_set() local
568 memmove((char *)here + size, here, rest); in ext2_xattr_set()
/fs/hugetlbfs/
Dinode.c1238 char *rest; in hugetlbfs_parse_param() local
1267 ctx->max_size_opt = memparse(param->string, &rest); in hugetlbfs_parse_param()
1269 if (*rest == '%') in hugetlbfs_parse_param()
1277 ctx->nr_inodes = memparse(param->string, &rest); in hugetlbfs_parse_param()
1281 ps = memparse(param->string, &rest); in hugetlbfs_parse_param()
1294 ctx->min_size_opt = memparse(param->string, &rest); in hugetlbfs_parse_param()
1296 if (*rest == '%') in hugetlbfs_parse_param()
/fs/reiserfs/
Dbitmap.c1157 int rest = amount_needed; in allocate_without_wrapping_disk() local
1160 while (rest > 0 && start <= finish) { in allocate_without_wrapping_disk()
1162 rest + prealloc_size, in allocate_without_wrapping_disk()
1169 while (rest > 0 && nr_allocated > 0) { in allocate_without_wrapping_disk()
1171 rest--; in allocate_without_wrapping_disk()
1191 return (amount_needed - rest); in allocate_without_wrapping_disk()
/fs/f2fs/
Dxattr.c567 size_t rest = buffer_size; in f2fs_listxattr() local
601 if (size > rest) { in f2fs_listxattr()
611 rest -= size; in f2fs_listxattr()
613 error = buffer_size - rest; in f2fs_listxattr()
/fs/nilfs2/
Dsegment.c1081 size_t n, rest = nilfs_segctor_buffer_rest(sci); in nilfs_segctor_scan_file() local
1084 inode, &data_buffers, rest + 1, 0, LLONG_MAX); in nilfs_segctor_scan_file()
1085 if (n > rest) { in nilfs_segctor_scan_file()
1129 size_t n, rest = nilfs_segctor_buffer_rest(sci); in nilfs_segctor_scan_file_dsync() local
1132 n = nilfs_lookup_dirty_data_buffers(inode, &data_buffers, rest + 1, in nilfs_segctor_scan_file_dsync()
1140 BUG_ON(n > rest); in nilfs_segctor_scan_file_dsync()
/fs/ext4/
Dxattr.c674 size_t rest = buffer_size; in ext4_xattr_list_entries() local
686 if (size > rest) in ext4_xattr_list_entries()
694 rest -= size; in ext4_xattr_list_entries()
697 return buffer_size - rest; /* total size */ in ext4_xattr_list_entries()
1752 size_t rest = (void *)last - (void *)here + sizeof(__u32); in ext4_xattr_set_entry() local
1754 memmove((void *)here + size, here, rest); in ext4_xattr_set_entry()
Dresize.c1127 int rest = sb->s_blocksize - size; in update_backups() local
1177 if (rest) in update_backups()
1178 memset(bh->b_data + size, 0, rest); in update_backups()
/fs/affs/
DChanges25 a multiple of the blocksize, the rest of the