Home
last modified time | relevance | path

Searched refs:max_size (Results 1 – 18 of 18) sorted by relevance

/fs/ext4/
Dsymlink.c32 unsigned int max_size; in ext4_encrypted_get_link() local
40 max_size = sizeof(EXT4_I(inode)->i_data); in ext4_encrypted_get_link()
46 max_size = inode->i_sb->s_blocksize; in ext4_encrypted_get_link()
49 paddr = fscrypt_get_symlink(inode, caddr, max_size, done); in ext4_encrypted_get_link()
/fs/jfs/
Dxattr.c61 int max_size; /* largest xattr that fits in current buffer */ member
444 ea_buf->max_size = 0; in ea_get()
451 ea_buf->max_size = sizeof (ji->i_inline_ea); in ea_get()
463 ea_buf->max_size = sizeof (ji->i_inline_ea); in ea_get()
484 ea_buf->max_size = (size + sb->s_blocksize - 1) & in ea_get()
487 ea_buf->xattr = kmalloc(ea_buf->max_size, GFP_KERNEL); in ea_get()
535 ea_buf->max_size = (min_size + sb->s_blocksize - 1) & in ea_get()
555 ea_buf->max_size = (ea_size + sb->s_blocksize - 1) & in ea_get()
712 if (new_size > ea_buf.max_size) { in __jfs_setxattr()
/fs/crypto/
Dhooks.c234 unsigned int max_size, in fscrypt_get_symlink() argument
265 if (max_size < sizeof(*sd)) in fscrypt_get_symlink()
274 if (cstr.len + sizeof(*sd) - 1 > max_size) in fscrypt_get_symlink()
/fs/befs/
Dbefs_fs_types.h224 fs64 max_size; member
234 befs_off_t max_size; member
Ddebug.c242 fs64_to_cpu(sb, super->max_size)); in befs_dump_index_entry()
/fs/btrfs/
Dzstd.c155 size_t max_size = 0; in zstd_calc_ws_mem_sizes() local
166 max_size = max_t(size_t, max_size, level_size); in zstd_calc_ws_mem_sizes()
167 zstd_ws_mem_sizes[level - 1] = max_size; in zstd_calc_ws_mem_sizes()
Dfree-space-cache.c2760 if (bytes > cluster->max_size) in btrfs_alloc_from_cluster()
2888 cluster->max_size = 0; in btrfs_bitmap_cluster()
2893 if (cluster->max_size < found_bits * ctl->unit) in btrfs_bitmap_cluster()
2894 cluster->max_size = found_bits * ctl->unit; in btrfs_bitmap_cluster()
2896 if (total_found < want_bits || cluster->max_size < cont1_bytes) { in btrfs_bitmap_cluster()
2999 cluster->max_size = max_extent; in setup_cluster_no_bitmap()
3144 cluster->max_size = 0; in btrfs_init_free_cluster()
Dinode.c6894 size_t max_size; in uncompress_inline() local
6901 max_size = btrfs_file_extent_ram_bytes(leaf, item); in uncompress_inline()
6911 max_size = min_t(unsigned long, PAGE_SIZE, max_size); in uncompress_inline()
6913 extent_offset, inline_size, max_size); in uncompress_inline()
6923 if (max_size + pg_offset < PAGE_SIZE) { in uncompress_inline()
6925 memset(map + pg_offset + max_size, 0, PAGE_SIZE - max_size - pg_offset); in uncompress_inline()
Dctree.h408 u64 max_size; member
/fs/
Dexec.c897 loff_t max_size, enum kernel_read_file_id id) in kernel_read_file() argument
903 if (!S_ISREG(file_inode(file)->i_mode) || max_size < 0) in kernel_read_file()
919 if (i_size > SIZE_MAX || (max_size > 0 && i_size > max_size)) { in kernel_read_file()
967 loff_t max_size, enum kernel_read_file_id id) in kernel_read_file_from_path() argument
979 ret = kernel_read_file(file, buf, size, max_size, id); in kernel_read_file_from_path()
985 int kernel_read_file_from_fd(int fd, void **buf, loff_t *size, loff_t max_size, in kernel_read_file_from_fd() argument
994 ret = kernel_read_file(f.file, buf, size, max_size, id); in kernel_read_file_from_fd()
Dpipe.c657 unsigned int max_size = READ_ONCE(pipe_max_size); in alloc_pipe_info() local
663 if (pipe_bufs * PAGE_SIZE > max_size && !capable(CAP_SYS_RESOURCE)) in alloc_pipe_info()
664 pipe_bufs = max_size >> PAGE_SHIFT; in alloc_pipe_info()
/fs/ceph/
Dcaps.c1116 u64 flush_tid, oldest_flush_tid, size, max_size; member
1149 arg->mseq, arg->follows, arg->size, arg->max_size, in send_cap_msg()
1179 fc->max_size = cpu_to_le64(arg->max_size); in send_cap_msg()
1337 arg.max_size = ci->i_wanted_max_size; in __send_cap()
1338 ci->i_requested_max_size = arg.max_size; in __send_cap()
1414 arg.max_size = 0; in __send_flush_snap()
3101 u64 max_size = le64_to_cpu(grant->max_size); in handle_cap_grant() local
3113 dout(" size %llu max_size %llu, i_size %llu\n", size, max_size, in handle_cap_grant()
3238 if (max_size != ci->i_max_size) { in handle_cap_grant()
3240 ci->i_max_size, max_size); in handle_cap_grant()
[all …]
Dinode.c867 ci->i_max_size != le64_to_cpu(info->max_size)) { in fill_inode()
869 le64_to_cpu(info->max_size)); in fill_inode()
870 ci->i_max_size = le64_to_cpu(info->max_size); in fill_inode()
/fs/gfs2/
Dbmap.c868 loff_t max_size = gfs2_max_stuffed_size(ip); in gfs2_iomap_get() local
870 if (pos + length > max_size) in gfs2_iomap_get()
872 iomap->length = max_size; in gfs2_iomap_get()
/fs/f2fs/
Dsuper.c856 int min_size, max_size; in parse_options() local
869 max_size = MAX_INLINE_XATTR_SIZE; in parse_options()
872 F2FS_OPTION(sbi).inline_xattr_size > max_size) { in parse_options()
874 min_size, max_size); in parse_options()
/fs/ntfs/
Dlayout.h584 /* 98*/ sle64 max_size; /* Maximum size of attribute. */ member
Dattrib.c1347 ((sle64_to_cpu(ad->max_size) > 0) && size > in ntfs_attr_size_bounds_check()
1348 sle64_to_cpu(ad->max_size))) in ntfs_attr_size_bounds_check()
/fs/fuse/
Dfile.c1348 size_t max_size) in fuse_get_frag_size() argument
1350 return min(iov_iter_single_seg_count(ii), max_size); in fuse_get_frag_size()