Home
last modified time | relevance | path

Searched refs:size (Results 1 – 25 of 488) 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.c27 return m->count == m->size; in seq_overflow()
32 m->count = m->size; in seq_set_overflow()
35 static void *seq_buf_alloc(unsigned long size) in seq_buf_alloc() argument
39 buf = kmalloc(size, GFP_KERNEL | __GFP_NOWARN); in seq_buf_alloc()
40 if (!buf && size > PAGE_SIZE) in seq_buf_alloc()
41 buf = vmalloc(size); in seq_buf_alloc()
111 m->buf = seq_buf_alloc(m->size = PAGE_SIZE); in traverse()
151 m->buf = seq_buf_alloc(m->size <<= 1); in traverse()
164 ssize_t seq_read(struct file *file, char __user *buf, size_t size, loff_t *ppos) in seq_read() argument
206 m->buf = seq_buf_alloc(m->size = PAGE_SIZE); in seq_read()
[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/nfsd/
Dnfsctl.c57 static ssize_t write_filehandle(struct file *file, char *buf, size_t size);
58 static ssize_t write_unlock_ip(struct file *file, char *buf, size_t size);
59 static ssize_t write_unlock_fs(struct file *file, char *buf, size_t size);
60 static ssize_t write_threads(struct file *file, char *buf, size_t size);
61 static ssize_t write_pool_threads(struct file *file, char *buf, size_t size);
62 static ssize_t write_versions(struct file *file, char *buf, size_t size);
63 static ssize_t write_ports(struct file *file, char *buf, size_t size);
64 static ssize_t write_maxblksize(struct file *file, char *buf, size_t size);
66 static ssize_t write_leasetime(struct file *file, char *buf, size_t size);
67 static ssize_t write_gracetime(struct file *file, char *buf, size_t size);
[all …]
/fs/ocfs2/
Docfs2_fs.h1085 #define OCFS2_XATTR_SIZE(size) (((size) + OCFS2_XATTR_ROUND) & \ argument
1292 int size; in ocfs2_extent_recs_per_inode() local
1294 size = sb->s_blocksize - in ocfs2_extent_recs_per_inode()
1297 return size / sizeof(struct ocfs2_extent_rec); in ocfs2_extent_recs_per_inode()
1304 int size; in ocfs2_extent_recs_per_inode_with_xattr() local
1308 size = sb->s_blocksize - in ocfs2_extent_recs_per_inode_with_xattr()
1312 size = sb->s_blocksize - in ocfs2_extent_recs_per_inode_with_xattr()
1315 return size / sizeof(struct ocfs2_extent_rec); in ocfs2_extent_recs_per_inode_with_xattr()
1320 int size; in ocfs2_extent_recs_per_dx_root() local
1322 size = sb->s_blocksize - in ocfs2_extent_recs_per_dx_root()
[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/xfs/
Dxfs_bit.c34 xfs_bitmap_empty(uint *map, uint size) in xfs_bitmap_empty() argument
39 for (i = 0; i < size; i++) { in xfs_bitmap_empty()
51 xfs_contig_bits(uint *map, uint size, uint start_bit) in xfs_contig_bits() argument
57 size <<= BIT_TO_WORD_SHIFT; in xfs_contig_bits()
59 ASSERT(start_bit < size); in xfs_contig_bits()
60 size -= start_bit & ~(NBWORD - 1); in xfs_contig_bits()
69 size -= NBWORD; in xfs_contig_bits()
71 while (size) { in xfs_contig_bits()
75 size -= NBWORD; in xfs_contig_bits()
90 int xfs_next_bit(uint *map, uint size, uint start_bit) in xfs_next_bit() argument
[all …]
/fs/reiserfs/
Dxattr_acl.c20 size_t size, int flags, int type) in posix_acl_set() argument
33 acl = posix_acl_from_xattr(&init_user_ns, value, size); in posix_acl_set()
48 reiserfs_xattr_nblocks(inode, size) * 2; in posix_acl_set()
67 size_t size, int type) in posix_acl_get() argument
80 error = posix_acl_to_xattr(&init_user_ns, acl, buffer, size); in posix_acl_get()
89 static struct posix_acl *posix_acl_from_disk(const void *value, size_t size) in posix_acl_from_disk() argument
91 const char *end = (char *)value + size; in posix_acl_from_disk()
97 if (size < sizeof(reiserfs_acl_header)) in posix_acl_from_disk()
103 count = reiserfs_acl_count(size); in posix_acl_from_disk()
159 static void *posix_acl_to_disk(const struct posix_acl *acl, size_t * size) in posix_acl_to_disk() argument
[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/btrfs/
Dacl.c33 int size; in btrfs_get_acl() local
56 size = __btrfs_getxattr(inode, name, "", 0); in btrfs_get_acl()
57 if (size > 0) { in btrfs_get_acl()
58 value = kzalloc(size, GFP_NOFS); in btrfs_get_acl()
61 size = __btrfs_getxattr(inode, name, value, size); in btrfs_get_acl()
63 if (size > 0) { in btrfs_get_acl()
64 acl = posix_acl_from_xattr(&init_user_ns, value, size); in btrfs_get_acl()
65 } else if (size == -ENOENT || size == -ENODATA || size == 0) { in btrfs_get_acl()
80 void *value, size_t size, int type) in btrfs_xattr_acl_get() argument
94 ret = posix_acl_to_xattr(&init_user_ns, acl, value, size); in btrfs_xattr_acl_get()
[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/pstore/
Dram_core.c33 atomic_t size; member
41 return atomic_read(&prz->buffer->size); in buffer_size()
71 if (atomic_read(&prz->buffer->size) == prz->buffer_size) in buffer_size_add()
75 old = atomic_read(&prz->buffer->size); in buffer_size_add()
79 } while (atomic_cmpxchg(&prz->buffer->size, old, new) != old); in buffer_size_add()
116 int size = ecc_block_size; in persistent_ram_update_ecc() local
126 size = buffer_end - block; in persistent_ram_update_ecc()
127 persistent_ram_encode_rs8(prz, block, size, par); in persistent_ram_update_ecc()
157 int size = prz->ecc_info.block_size; in persistent_ram_ecc_old() local
158 if (block + size > buffer->data + prz->buffer_size) in persistent_ram_ecc_old()
[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/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/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()
166 unsigned size = mntpt->d_name.len; in afs_mntpt_do_automount() local
169 if (size < 2 || size > AFS_MAXCELLNAME) in afs_mntpt_do_automount()
174 memcpy(devname + 1, mntpt->d_name.name, size - 1); in afs_mntpt_do_automount()
175 memcpy(devname + size, afs_root_cell, in afs_mntpt_do_automount()
180 memcpy(devname + 1, mntpt->d_name.name, size); in afs_mntpt_do_automount()
[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/ubifs/
Dxattr.c101 const struct qstr *nm, const void *value, int size) in create_xattr() argument
107 .new_ino_d = ALIGN(size, 8), .dirtied_ino = 1, in create_xattr()
141 ui->data = kmemdup(value, size, GFP_NOFS); in create_xattr()
146 inode->i_size = ui->ui_size = size; in create_xattr()
147 ui->data_len = size; in create_xattr()
153 host_ui->xattr_size += CALC_XATTR_BYTES(size); in create_xattr()
169 host_ui->xattr_size -= CALC_XATTR_BYTES(size); in create_xattr()
192 struct inode *inode, const void *value, int size) in change_xattr() argument
198 .dirtied_ino_d = ALIGN(size, 8) + ALIGN(host_ui->data_len, 8) }; in change_xattr()
206 ui->data = kmemdup(value, size, GFP_NOFS); in change_xattr()
[all …]
/fs/ext2/
Dacl.c20 ext2_acl_from_disk(const void *value, size_t size) in ext2_acl_from_disk() argument
22 const char *end = (char *)value + size; in ext2_acl_from_disk()
28 if (size < sizeof(ext2_acl_header)) in ext2_acl_from_disk()
34 count = ext2_acl_count(size); in ext2_acl_from_disk()
92 ext2_acl_to_disk(const struct posix_acl *acl, size_t *size) in ext2_acl_to_disk() argument
98 *size = ext2_acl_size(acl->a_count); in ext2_acl_to_disk()
197 size_t size = 0; in ext2_set_acl() local
227 value = ext2_acl_to_disk(acl, &size); in ext2_set_acl()
232 error = ext2_xattr_set(inode, name_index, "", value, size, 0); in ext2_set_acl()
322 const size_t size = sizeof(POSIX_ACL_XATTR_ACCESS); in ext2_xattr_list_acl_access() local
[all …]
/fs/ceph/
Dxattr.c31 size_t size);
50 size_t size) in ceph_vxattrcb_layout() argument
62 ret = snprintf(val, size, in ceph_vxattrcb_layout()
69 ret = snprintf(val, size, in ceph_vxattrcb_layout()
81 char *val, size_t size) in ceph_vxattrcb_layout_stripe_unit() argument
83 return snprintf(val, size, "%lld", in ceph_vxattrcb_layout_stripe_unit()
88 char *val, size_t size) in ceph_vxattrcb_layout_stripe_count() argument
90 return snprintf(val, size, "%lld", in ceph_vxattrcb_layout_stripe_count()
95 char *val, size_t size) in ceph_vxattrcb_layout_object_size() argument
97 return snprintf(val, size, "%lld", in ceph_vxattrcb_layout_object_size()
[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 …]
/fs/hfsplus/
Dunicode.c258 int size = HFSPLUS_SB(sb)->nls->char2uni(astr, len, uc); in asc2unichar() local
259 if (size <= 0) { in asc2unichar()
261 size = 1; in asc2unichar()
271 return size; in asc2unichar()
275 static inline u16 *decompose_unichar(wchar_t uc, int *size) in decompose_unichar() argument
292 *size = off & 3; in decompose_unichar()
293 if (*size == 0) in decompose_unichar()
302 int size, dsize, decompose; in hfsplus_asc2uni() local
308 size = asc2unichar(sb, astr, len, &c); in hfsplus_asc2uni()
323 astr += size; in hfsplus_asc2uni()
[all …]
/fs/f2fs/
Dacl.c35 static inline int f2fs_acl_count(size_t size) in f2fs_acl_count() argument
38 size -= sizeof(struct f2fs_acl_header); in f2fs_acl_count()
39 s = size - 4 * sizeof(struct f2fs_acl_entry_short); in f2fs_acl_count()
41 if (size % sizeof(struct f2fs_acl_entry_short)) in f2fs_acl_count()
43 return size / sizeof(struct f2fs_acl_entry_short); in f2fs_acl_count()
51 static struct posix_acl *f2fs_acl_from_disk(const char *value, size_t size) in f2fs_acl_from_disk() argument
57 const char *end = value + size; in f2fs_acl_from_disk()
62 count = f2fs_acl_count(size); in f2fs_acl_from_disk()
115 static void *f2fs_acl_to_disk(const struct posix_acl *acl, size_t *size) in f2fs_acl_to_disk() argument
160 *size = f2fs_acl_size(acl->a_count); in f2fs_acl_to_disk()
[all …]

12345678910>>...20