Home
last modified time | relevance | path

Searched refs:size (Results 1 – 25 of 500) sorted by relevance

12345678910>>...20

/fs/
Dxattr.c93 const void *value, size_t size, int flags) in __vfs_setxattr_noperm() argument
103 error = inode->i_op->setxattr(dentry, name, value, size, flags); in __vfs_setxattr_noperm()
107 size, flags); in __vfs_setxattr_noperm()
112 size, flags); in __vfs_setxattr_noperm()
123 size_t size, int flags) in vfs_setxattr() argument
133 error = security_inode_setxattr(dentry, name, value, size, flags); in vfs_setxattr()
137 error = __vfs_setxattr_noperm(dentry, name, value, size, flags); in vfs_setxattr()
147 size_t size) in xattr_getsecurity() argument
152 if (!value || !size) { in xattr_getsecurity()
160 if (size < len) { in xattr_getsecurity()
[all …]
Dseq_file.c24 m->count = m->size; in seq_set_overflow()
27 static void *seq_buf_alloc(unsigned long size) in seq_buf_alloc() argument
32 if (unlikely(size > MAX_RW_COUNT)) in seq_buf_alloc()
41 if (size > PAGE_SIZE) in seq_buf_alloc()
43 buf = kmalloc(size, gfp); in seq_buf_alloc()
44 if (!buf && size > PAGE_SIZE) in seq_buf_alloc()
45 buf = vmalloc(size); in seq_buf_alloc()
119 m->buf = seq_buf_alloc(m->size = PAGE_SIZE); in traverse()
160 m->buf = seq_buf_alloc(m->size <<= 1); in traverse()
173 ssize_t seq_read(struct file *file, char __user *buf, size_t size, loff_t *ppos) in seq_read() argument
[all …]
/fs/hfs/
Dtrans.c39 int srclen, dstlen, size; in hfs_mac2asc() local
52 size = nls_disk->char2uni(src, srclen, &ch); in hfs_mac2asc()
53 if (size <= 0) { in hfs_mac2asc()
55 size = 1; in hfs_mac2asc()
57 src += size; in hfs_mac2asc()
58 srclen -= size; in hfs_mac2asc()
65 size = nls_io->uni2char(ch, dst, dstlen); in hfs_mac2asc()
66 if (size < 0) { in hfs_mac2asc()
67 if (size == -ENAMETOOLONG) in hfs_mac2asc()
70 size = 1; in hfs_mac2asc()
[all …]
Dmdb.c33 sector_t *start, sector_t *size) in hfs_get_last_session() argument
41 *size = sb->s_bdev->bd_inode->i_size >> 9; in hfs_get_last_session()
73 int off2, len, size, sect; in hfs_mdb_get() local
79 size = sb_min_blocksize(sb, HFS_SECTOR_SIZE); in hfs_mdb_get()
80 if (!size) in hfs_mdb_get()
102 HFS_SB(sb)->alloc_blksz = size = be32_to_cpu(mdb->drAlBlkSiz); in hfs_mdb_get()
103 if (!size || (size & (HFS_SECTOR_SIZE - 1))) { in hfs_mdb_get()
104 pr_err("bad allocation block size %d\n", size); in hfs_mdb_get()
108 size = min(HFS_SB(sb)->alloc_blksz, (u32)PAGE_SIZE); in hfs_mdb_get()
110 while (size & (size - 1)) in hfs_mdb_get()
[all …]
Dattr.c17 const void *value, size_t size, int flags) in hfs_setxattr() argument
40 if (size == 4) in hfs_setxattr()
45 if (size == 4) in hfs_setxattr()
60 void *value, size_t size) in hfs_getxattr() argument
71 if (size) { in hfs_getxattr()
85 if (size >= 4) { in hfs_getxattr()
89 res = size ? -ERANGE : 4; in hfs_getxattr()
91 if (size >= 4) { in hfs_getxattr()
95 res = size ? -ERANGE : 4; in hfs_getxattr()
99 if (size) in hfs_getxattr()
[all …]
/fs/jffs2/
Dnodelist.c59 uint32_t jffs2_truncate_fragtree(struct jffs2_sb_info *c, struct rb_root *list, uint32_t size) in jffs2_truncate_fragtree() argument
61 struct jffs2_node_frag *frag = jffs2_lookup_node_frag(list, size); in jffs2_truncate_fragtree()
63 dbg_fragtree("truncating fragtree to 0x%08x bytes\n", size); in jffs2_truncate_fragtree()
66 if (frag && frag->ofs != size) { in jffs2_truncate_fragtree()
67 if (frag->ofs+frag->size > size) { in jffs2_truncate_fragtree()
68 frag->size = size - frag->ofs; in jffs2_truncate_fragtree()
72 while (frag && frag->ofs >= size) { in jffs2_truncate_fragtree()
80 if (size == 0) in jffs2_truncate_fragtree()
88 if (frag->ofs + frag->size < size) in jffs2_truncate_fragtree()
89 return frag->ofs + frag->size; in jffs2_truncate_fragtree()
[all …]
/fs/nfsd/
Dnfsctl.c60 static ssize_t write_filehandle(struct file *file, char *buf, size_t size);
61 static ssize_t write_unlock_ip(struct file *file, char *buf, size_t size);
62 static ssize_t write_unlock_fs(struct file *file, char *buf, size_t size);
63 static ssize_t write_threads(struct file *file, char *buf, size_t size);
64 static ssize_t write_pool_threads(struct file *file, char *buf, size_t size);
65 static ssize_t write_versions(struct file *file, char *buf, size_t size);
66 static ssize_t write_ports(struct file *file, char *buf, size_t size);
67 static ssize_t write_maxblksize(struct file *file, char *buf, size_t size);
68 static ssize_t write_maxconn(struct file *file, char *buf, size_t size);
70 static ssize_t write_leasetime(struct file *file, char *buf, size_t size);
[all …]
/fs/ocfs2/
Docfs2_fs.h1096 #define OCFS2_XATTR_SIZE(size) (((size) + OCFS2_XATTR_ROUND) & \ argument
1303 int size; in ocfs2_extent_recs_per_inode() local
1305 size = sb->s_blocksize - in ocfs2_extent_recs_per_inode()
1308 return size / sizeof(struct ocfs2_extent_rec); in ocfs2_extent_recs_per_inode()
1315 int size; in ocfs2_extent_recs_per_inode_with_xattr() local
1319 size = sb->s_blocksize - in ocfs2_extent_recs_per_inode_with_xattr()
1323 size = sb->s_blocksize - in ocfs2_extent_recs_per_inode_with_xattr()
1326 return size / sizeof(struct ocfs2_extent_rec); in ocfs2_extent_recs_per_inode_with_xattr()
1331 int size; in ocfs2_extent_recs_per_dx_root() local
1333 size = sb->s_blocksize - in ocfs2_extent_recs_per_dx_root()
[all …]
/fs/xfs/libxfs/
Dxfs_bit.c32 xfs_bitmap_empty(uint *map, uint size) in xfs_bitmap_empty() argument
37 for (i = 0; i < size; i++) { in xfs_bitmap_empty()
49 xfs_contig_bits(uint *map, uint size, uint start_bit) in xfs_contig_bits() argument
55 size <<= BIT_TO_WORD_SHIFT; in xfs_contig_bits()
57 ASSERT(start_bit < size); in xfs_contig_bits()
58 size -= start_bit & ~(NBWORD - 1); in xfs_contig_bits()
67 size -= NBWORD; in xfs_contig_bits()
69 while (size) { in xfs_contig_bits()
73 size -= NBWORD; in xfs_contig_bits()
88 int xfs_next_bit(uint *map, uint size, uint start_bit) in xfs_next_bit() argument
[all …]
/fs/btrfs/
Dacl.c33 int size; in btrfs_get_acl() local
49 size = __btrfs_getxattr(inode, name, "", 0); in btrfs_get_acl()
50 if (size > 0) { in btrfs_get_acl()
51 value = kzalloc(size, GFP_NOFS); in btrfs_get_acl()
54 size = __btrfs_getxattr(inode, name, value, size); in btrfs_get_acl()
56 if (size > 0) { in btrfs_get_acl()
57 acl = posix_acl_from_xattr(&init_user_ns, value, size); in btrfs_get_acl()
58 } else if (size == -ENOENT || size == -ENODATA || size == 0) { in btrfs_get_acl()
78 int ret, size = 0; in __btrfs_set_acl() local
96 size = posix_acl_xattr_size(acl->a_count); in __btrfs_set_acl()
[all …]
Dxattr.c36 void *buffer, size_t size) in __btrfs_getxattr() argument
62 if (!size) { in __btrfs_getxattr()
68 if (btrfs_dir_data_len(leaf, di) > size) { in __btrfs_getxattr()
93 const void *value, size_t size, int flags) in do_setxattr() argument
101 if (name_len + size > BTRFS_MAX_XATTR_SIZE(root)) in do_setxattr()
143 name, name_len, value, size); in do_setxattr()
182 const u32 data_size = sizeof(*di) + name_len + size; in do_setxattr()
187 if (size > old_data_len) { in do_setxattr()
189 (size - old_data_len)) { in do_setxattr()
197 if (size > old_data_len) in do_setxattr()
[all …]
/fs/9p/
Dacl.c30 ssize_t size; in __v9fs_get_acl() local
34 size = v9fs_fid_xattr_get(fid, name, NULL, 0); in __v9fs_get_acl()
35 if (size > 0) { in __v9fs_get_acl()
36 value = kzalloc(size, GFP_NOFS); in __v9fs_get_acl()
39 size = v9fs_fid_xattr_get(fid, name, value, size); in __v9fs_get_acl()
40 if (size > 0) { in __v9fs_get_acl()
41 acl = posix_acl_from_xattr(&init_user_ns, value, size); in __v9fs_get_acl()
45 } else if (size == -ENODATA || size == 0 || in __v9fs_get_acl()
46 size == -ENOSYS || size == -EOPNOTSUPP) { in __v9fs_get_acl()
121 size_t size; in v9fs_set_acl() local
[all …]
/fs/squashfs/
Ddir.c57 unsigned int size; in get_dir_index_using_offset() local
85 size = le32_to_cpu(dir_index.size) + 1; in get_dir_index_using_offset()
88 if (size > SQUASHFS_NAME_LEN) in get_dir_index_using_offset()
92 &index_offset, size); in get_dir_index_using_offset()
116 unsigned int inode_number, dir_count, size, type; in squashfs_readdir() local
142 size = 1; in squashfs_readdir()
146 size = 2; in squashfs_readdir()
150 if (!dir_emit(ctx, name, size, i_ino, in squashfs_readdir()
154 ctx->pos += size; in squashfs_readdir()
188 size = le16_to_cpu(dire->size) + 1; in squashfs_readdir()
[all …]
/fs/hpfs/
Dea.c50 static char *get_indirect_ea(struct super_block *s, int ano, secno a, int size) in get_indirect_ea() argument
53 if (!(ret = kmalloc(size + 1, GFP_NOFS))) { in get_indirect_ea()
57 if (hpfs_ea_read(s, a, ano, 0, size, ret)) { in get_indirect_ea()
61 ret[size] = 0; in get_indirect_ea()
66 const char *data, int size) in set_indirect_ea() argument
68 hpfs_ea_write(s, a, ano, 0, size, data); in set_indirect_ea()
74 char *buf, int size) in hpfs_read_ea() argument
86 if (ea_valuelen(ea) >= size) in hpfs_read_ea()
109 if (ea_valuelen(ea) >= size) in hpfs_read_ea()
120 if (ea_len(ea) >= size) in hpfs_read_ea()
[all …]
/fs/jfs/
Dacl.c34 int size; in jfs_get_acl() local
52 size = __jfs_getxattr(inode, ea_name, NULL, 0); in jfs_get_acl()
54 if (size > 0) { in jfs_get_acl()
55 value = kmalloc(size, GFP_KERNEL); in jfs_get_acl()
58 size = __jfs_getxattr(inode, ea_name, value, size); in jfs_get_acl()
61 if (size < 0) { in jfs_get_acl()
62 if (size == -ENODATA) in jfs_get_acl()
65 acl = ERR_PTR(size); in jfs_get_acl()
67 acl = posix_acl_from_xattr(&init_user_ns, value, size); in jfs_get_acl()
80 int size = 0; in __jfs_set_acl() local
[all …]
/fs/hfsplus/
Dposix_acl.c18 ssize_t size; in hfsplus_get_posix_acl() local
33 size = __hfsplus_getxattr(inode, xattr_name, NULL, 0); in hfsplus_get_posix_acl()
35 if (size > 0) { in hfsplus_get_posix_acl()
39 size = __hfsplus_getxattr(inode, xattr_name, value, size); in hfsplus_get_posix_acl()
42 if (size > 0) in hfsplus_get_posix_acl()
43 acl = posix_acl_from_xattr(&init_user_ns, value, size); in hfsplus_get_posix_acl()
44 else if (size == -ENODATA) in hfsplus_get_posix_acl()
47 acl = ERR_PTR(size); in hfsplus_get_posix_acl()
62 size_t size = 0; in hfsplus_set_posix_acl() local
89 size = posix_acl_xattr_size(acl->a_count); in hfsplus_set_posix_acl()
[all …]
/fs/pstore/
Dram_core.c35 atomic_t size; member
43 return atomic_read(&prz->buffer->size); in buffer_size()
83 old = atomic_read(&prz->buffer->size); in buffer_size_add()
90 atomic_set(&prz->buffer->size, new); in buffer_size_add()
131 int size = ecc_block_size; in persistent_ram_update_ecc() local
141 size = buffer_end - block; in persistent_ram_update_ecc()
142 persistent_ram_encode_rs8(prz, block, size, par); in persistent_ram_update_ecc()
172 int size = prz->ecc_info.block_size; in persistent_ram_ecc_old() local
173 if (block + size > buffer->data + prz->buffer_size) in persistent_ram_ecc_old()
174 size = buffer->data + prz->buffer_size - block; in persistent_ram_ecc_old()
[all …]
/fs/f2fs/
Dxattr.c62 size_t size) in f2fs_xattr_generic_get() argument
83 buffer, size, NULL); in f2fs_xattr_generic_get()
88 size_t size, int flags) in f2fs_xattr_generic_set() argument
110 value, size, NULL, flags); in f2fs_xattr_generic_set()
118 size_t size; in f2fs_xattr_advise_list() local
120 size = strlen(xname) + 1; in f2fs_xattr_advise_list()
121 if (list && size <= list_size) in f2fs_xattr_advise_list()
122 memcpy(list, xname, size); in f2fs_xattr_advise_list()
123 return size; in f2fs_xattr_advise_list()
128 size_t size) in f2fs_xattr_advise_get() argument
[all …]
/fs/afs/
Dmntpt.c56 size_t size; in afs_mntpt_check_symlink() local
78 size = vnode->status.size; in afs_mntpt_check_symlink()
79 _debug("symlink to %*.*s", (int) size, (int) size, buf); in afs_mntpt_check_symlink()
81 if (size > 2 && in afs_mntpt_check_symlink()
83 buf[size - 1] == '.' in afs_mntpt_check_symlink()
152 unsigned size = mntpt->d_name.len; in afs_mntpt_do_automount() local
155 if (size < 2 || size > AFS_MAXCELLNAME) in afs_mntpt_do_automount()
160 memcpy(devname + 1, mntpt->d_name.name, size - 1); in afs_mntpt_do_automount()
161 memcpy(devname + size, afs_root_cell, in afs_mntpt_do_automount()
166 memcpy(devname + 1, mntpt->d_name.name, size); in afs_mntpt_do_automount()
[all …]
/fs/ceph/
Dxattr.c49 size_t size);
68 size_t size) in ceph_vxattrcb_layout() argument
87 if (!size) { in ceph_vxattrcb_layout()
89 } else if (ret + len > size) { in ceph_vxattrcb_layout()
103 if (size) { in ceph_vxattrcb_layout()
104 if (ret <= size) in ceph_vxattrcb_layout()
115 char *val, size_t size) in ceph_vxattrcb_layout_stripe_unit() argument
117 return snprintf(val, size, "%lld", in ceph_vxattrcb_layout_stripe_unit()
122 char *val, size_t size) in ceph_vxattrcb_layout_stripe_count() argument
124 return snprintf(val, size, "%lld", in ceph_vxattrcb_layout_stripe_count()
[all …]
Dacl.c45 int size; in ceph_get_acl() local
61 size = __ceph_getxattr(inode, name, "", 0); in ceph_get_acl()
62 if (size > 0) { in ceph_get_acl()
63 value = kzalloc(size, GFP_NOFS); in ceph_get_acl()
66 size = __ceph_getxattr(inode, name, value, size); in ceph_get_acl()
69 if (size > 0) in ceph_get_acl()
70 acl = posix_acl_from_xattr(&init_user_ns, value, size); in ceph_get_acl()
71 else if (size == -ERANGE || size == -ENODATA || size == 0) in ceph_get_acl()
86 int ret = 0, size = 0; in ceph_set_acl() local
115 size = posix_acl_xattr_size(acl->a_count); in ceph_set_acl()
[all …]
/fs/ntfs/
Dmalloc.h42 static inline void *__ntfs_malloc(unsigned long size, gfp_t gfp_mask) in __ntfs_malloc() argument
44 if (likely(size <= PAGE_SIZE)) { in __ntfs_malloc()
45 BUG_ON(!size); in __ntfs_malloc()
50 if (likely((size >> PAGE_SHIFT) < totalram_pages)) in __ntfs_malloc()
51 return __vmalloc(size, gfp_mask, PAGE_KERNEL); in __ntfs_malloc()
64 static inline void *ntfs_malloc_nofs(unsigned long size) in ntfs_malloc_nofs() argument
66 return __ntfs_malloc(size, GFP_NOFS | __GFP_HIGHMEM); in ntfs_malloc_nofs()
81 static inline void *ntfs_malloc_nofs_nofail(unsigned long size) in ntfs_malloc_nofs_nofail() argument
83 return __ntfs_malloc(size, GFP_NOFS | __GFP_HIGHMEM | __GFP_NOFAIL); in ntfs_malloc_nofs_nofail()
/fs/reiserfs/
Dxattr_acl.c25 int size = acl ? posix_acl_xattr_size(acl->a_count) : 0; in reiserfs_set_acl() local
34 reiserfs_xattr_nblocks(inode, size) * 2; in reiserfs_set_acl()
61 static struct posix_acl *reiserfs_posix_acl_from_disk(const void *value, size_t size) in reiserfs_posix_acl_from_disk() argument
63 const char *end = (char *)value + size; in reiserfs_posix_acl_from_disk()
69 if (size < sizeof(reiserfs_acl_header)) in reiserfs_posix_acl_from_disk()
75 count = reiserfs_acl_count(size); in reiserfs_posix_acl_from_disk()
131 static void *reiserfs_posix_acl_to_disk(const struct posix_acl *acl, size_t * size) in reiserfs_posix_acl_to_disk() argument
137 *size = reiserfs_acl_size(acl->a_count); in reiserfs_posix_acl_to_disk()
191 int size; in reiserfs_get_acl() local
205 size = reiserfs_xattr_get(inode, name, NULL, 0); in reiserfs_get_acl()
[all …]
/fs/proc/
Dkcore.c64 kclist_add(struct kcore_list *new, void *addr, size_t size, int type) in kclist_add() argument
67 new->size = size; in kclist_add()
77 size_t try, size; in get_kcore_size() local
81 size = 0; in get_kcore_size()
84 try = kc_vaddr_to_offset((size_t)m->addr + m->size); in get_kcore_size()
85 if (try > size) in get_kcore_size()
86 size = try; in get_kcore_size()
97 return size + *elf_buflen; in get_kcore_size()
115 size_t size; in __kcore_update_ram() local
130 proc_root_kcore->size = get_kcore_size(&nphdr, &size); in __kcore_update_ram()
[all …]
/fs/ufs/
Dutil.c19 struct super_block *sb, u64 fragment, u64 size) in _ubh_bread_() argument
24 if (size & ~uspi->s_fmask) in _ubh_bread_()
26 count = size >> uspi->s_fshift; in _ubh_bread_()
48 struct super_block *sb, u64 fragment, u64 size) in ubh_bread_uspi() argument
52 if (size & ~uspi->s_fmask) in ubh_bread_uspi()
54 count = size >> uspi->s_fshift; in ubh_bread_uspi()
149 unsigned char * mem, struct ufs_buffer_head * ubh, unsigned size) in _ubh_ubhcpymem_() argument
152 if (size > (ubh->count << uspi->s_fshift)) in _ubh_ubhcpymem_()
153 size = ubh->count << uspi->s_fshift; in _ubh_ubhcpymem_()
155 while (size) { in _ubh_ubhcpymem_()
[all …]

12345678910>>...20