Home
last modified time | relevance | path

Searched refs:value (Results 1 – 25 of 144) sorted by relevance

123456

/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()
26 if (!value) in ext2_acl_from_disk()
30 if (((ext2_acl_header *)value)->a_version != in ext2_acl_from_disk()
33 value = (char *)value + sizeof(ext2_acl_header); in ext2_acl_from_disk()
44 (ext2_acl_entry *)value; in ext2_acl_from_disk()
45 if ((char *)value + sizeof(ext2_acl_entry_short) > end) in ext2_acl_from_disk()
54 value = (char *)value + in ext2_acl_from_disk()
59 value = (char *)value + sizeof(ext2_acl_entry); in ext2_acl_from_disk()
60 if ((char *)value > end) in ext2_acl_from_disk()
[all …]
/fs/ext4/
Dacl.c18 ext4_acl_from_disk(const void *value, size_t size) in ext4_acl_from_disk() argument
20 const char *end = (char *)value + size; in ext4_acl_from_disk()
24 if (!value) in ext4_acl_from_disk()
28 if (((ext4_acl_header *)value)->a_version != in ext4_acl_from_disk()
31 value = (char *)value + sizeof(ext4_acl_header); in ext4_acl_from_disk()
42 (ext4_acl_entry *)value; in ext4_acl_from_disk()
43 if ((char *)value + sizeof(ext4_acl_entry_short) > end) in ext4_acl_from_disk()
53 value = (char *)value + in ext4_acl_from_disk()
58 value = (char *)value + sizeof(ext4_acl_entry); in ext4_acl_from_disk()
59 if ((char *)value > end) in ext4_acl_from_disk()
[all …]
/fs/reiserfs/
Dxattr_acl.c65 static struct posix_acl *reiserfs_posix_acl_from_disk(const void *value, size_t size) in reiserfs_posix_acl_from_disk() argument
67 const char *end = (char *)value + size; in reiserfs_posix_acl_from_disk()
71 if (!value) in reiserfs_posix_acl_from_disk()
75 if (((reiserfs_acl_header *) value)->a_version != in reiserfs_posix_acl_from_disk()
78 value = (char *)value + sizeof(reiserfs_acl_header); in reiserfs_posix_acl_from_disk()
88 reiserfs_acl_entry *entry = (reiserfs_acl_entry *) value; in reiserfs_posix_acl_from_disk()
89 if ((char *)value + sizeof(reiserfs_acl_entry_short) > end) in reiserfs_posix_acl_from_disk()
98 value = (char *)value + in reiserfs_posix_acl_from_disk()
103 value = (char *)value + sizeof(reiserfs_acl_entry); in reiserfs_posix_acl_from_disk()
104 if ((char *)value > end) in reiserfs_posix_acl_from_disk()
[all …]
/fs/jffs2/
Dacl.c55 static struct posix_acl *jffs2_acl_from_medium(void *value, size_t size) in jffs2_acl_from_medium() argument
57 void *end = value + size; in jffs2_acl_from_medium()
58 struct jffs2_acl_header *header = value; in jffs2_acl_from_medium()
64 if (!value) in jffs2_acl_from_medium()
74 value += sizeof(struct jffs2_acl_header); in jffs2_acl_from_medium()
86 entry = value; in jffs2_acl_from_medium()
87 if (value + sizeof(struct jffs2_acl_entry_short) > end) in jffs2_acl_from_medium()
96 value += sizeof(struct jffs2_acl_entry_short); in jffs2_acl_from_medium()
100 value += sizeof(struct jffs2_acl_entry); in jffs2_acl_from_medium()
101 if (value > end) in jffs2_acl_from_medium()
[all …]
Dcompr_rtime.c44 unsigned char value; in jffs2_rtime_compress() local
46 value = data_in[pos]; in jffs2_rtime_compress()
50 backpos = positions[value]; in jffs2_rtime_compress()
51 positions[value]=pos; in jffs2_rtime_compress()
84 unsigned char value; in jffs2_rtime_decompress() local
88 value = data_in[pos++]; in jffs2_rtime_decompress()
89 cpage_out[outpos++] = value; /* first the verbatim copied byte */ in jffs2_rtime_decompress()
91 backoffs = positions[value]; in jffs2_rtime_decompress()
93 positions[value]=outpos; in jffs2_rtime_decompress()
/fs/fuse/
Dxattr.c14 int fuse_setxattr(struct inode *inode, const char *name, const void *value, in fuse_setxattr() argument
32 args.in_args[0].value = &inarg; in fuse_setxattr()
34 args.in_args[1].value = name; in fuse_setxattr()
36 args.in_args[2].value = value; in fuse_setxattr()
49 ssize_t fuse_getxattr(struct inode *inode, const char *name, void *value, in fuse_getxattr() argument
67 args.in_args[0].value = &inarg; in fuse_getxattr()
69 args.in_args[1].value = name; in fuse_getxattr()
75 args.out_args[0].value = value; in fuse_getxattr()
78 args.out_args[0].value = &outarg; in fuse_getxattr()
128 args.in_args[0].value = &inarg; in fuse_listxattr()
[all …]
Dacl.c19 void *value = NULL; in fuse_get_acl() local
32 value = kmalloc(PAGE_SIZE, GFP_KERNEL); in fuse_get_acl()
33 if (!value) in fuse_get_acl()
35 size = fuse_getxattr(inode, name, value, PAGE_SIZE); in fuse_get_acl()
37 acl = posix_acl_from_xattr(fc->user_ns, value, size); in fuse_get_acl()
46 kfree(value); in fuse_get_acl()
75 void *value; in fuse_set_acl() local
80 value = kmalloc(size, GFP_KERNEL); in fuse_set_acl()
81 if (!value) in fuse_set_acl()
84 ret = posix_acl_to_xattr(fc->user_ns, acl, value, size); in fuse_set_acl()
[all …]
/fs/
Dxattr.c139 const void *value, size_t size, int flags) in __vfs_setxattr() argument
149 value = ""; /* empty EA, do not remove */ in __vfs_setxattr()
150 return handler->set(handler, dentry, inode, name, value, size, flags); in __vfs_setxattr()
171 const void *value, size_t size, int flags) in __vfs_setxattr_noperm() argument
181 error = __vfs_setxattr(dentry, inode, name, value, size, flags); in __vfs_setxattr_noperm()
184 security_inode_post_setxattr(dentry, name, value, in __vfs_setxattr_noperm()
197 error = security_inode_setsecurity(inode, suffix, value, in __vfs_setxattr_noperm()
209 vfs_setxattr(struct dentry *dentry, const char *name, const void *value, in vfs_setxattr() argument
220 error = security_inode_setxattr(dentry, name, value, size, flags); in vfs_setxattr()
224 error = __vfs_setxattr_noperm(dentry, name, value, size, flags); in vfs_setxattr()
[all …]
/fs/cifs/
Dxattr.c52 const char *name, const void *value, in cifs_xattr_set() argument
94 full_path, name, value, (__u16)size, in cifs_xattr_set()
101 if (!value) in cifs_xattr_set()
107 memcpy(pacl, value, size); in cifs_xattr_set()
108 if (value && in cifs_xattr_set()
124 if (!value) in cifs_xattr_set()
128 value, (const int)size, in cifs_xattr_set()
136 if (!value) in cifs_xattr_set()
140 value, (const int)size, in cifs_xattr_set()
155 struct inode *inode, void *value, in cifs_attrib_get() argument
[all …]
/fs/btrfs/
Dprops.c20 int (*validate)(const char *value, size_t len);
21 int (*apply)(struct inode *inode, const char *value, size_t len);
58 int btrfs_validate_prop(const char *name, const char *value, size_t value_len) in btrfs_validate_prop() argument
72 return handler->validate(value, value_len); in btrfs_validate_prop()
76 const char *name, const char *value, size_t value_len, in btrfs_set_prop() argument
98 ret = btrfs_setxattr(trans, inode, handler->xattr_name, value, in btrfs_set_prop()
102 ret = handler->apply(inode, value, value_len); in btrfs_set_prop()
227 const char *value, in inode_prop_iterator() argument
234 ret = handler->apply(inode, value, len); in inode_prop_iterator()
255 static int prop_compression_validate(const char *value, size_t len) in prop_compression_validate() argument
[all …]
Dacl.c23 char *value = NULL; in btrfs_get_acl() local
39 value = kzalloc(size, GFP_KERNEL); in btrfs_get_acl()
40 if (!value) in btrfs_get_acl()
42 size = btrfs_getxattr(inode, name, value, size); in btrfs_get_acl()
45 acl = posix_acl_from_xattr(&init_user_ns, value, size); in btrfs_get_acl()
50 kfree(value); in btrfs_get_acl()
60 char *value = NULL; in __btrfs_set_acl() local
84 value = kmalloc(size, GFP_KERNEL); in __btrfs_set_acl()
86 if (!value) { in __btrfs_set_acl()
91 ret = posix_acl_to_xattr(&init_user_ns, acl, value, size); in __btrfs_set_acl()
[all …]
/fs/orangefs/
Dacl.c17 char *key = NULL, *value = NULL; in orangefs_get_acl() local
37 value = kmalloc(ORANGEFS_MAX_XATTR_VALUELEN, GFP_KERNEL); in orangefs_get_acl()
38 if (!value) in orangefs_get_acl()
46 ret = orangefs_inode_getxattr(inode, key, value, in orangefs_get_acl()
50 acl = posix_acl_from_xattr(&init_user_ns, value, ret); in orangefs_get_acl()
60 kfree(value); in orangefs_get_acl()
68 void *value = NULL; in __orangefs_set_acl() local
92 value = kmalloc(size, GFP_KERNEL); in __orangefs_set_acl()
93 if (!value) in __orangefs_set_acl()
96 error = posix_acl_to_xattr(&init_user_ns, acl, value, size); in __orangefs_set_acl()
[all …]
/fs/jfs/
Dacl.c22 char *value = NULL; in jfs_get_acl() local
38 value = kmalloc(size, GFP_KERNEL); in jfs_get_acl()
39 if (!value) in jfs_get_acl()
41 size = __jfs_getxattr(inode, ea_name, value, size); in jfs_get_acl()
50 acl = posix_acl_from_xattr(&init_user_ns, value, size); in jfs_get_acl()
52 kfree(value); in jfs_get_acl()
62 char *value = NULL; in __jfs_set_acl() local
77 value = kmalloc(size, GFP_KERNEL); in __jfs_set_acl()
78 if (!value) in __jfs_set_acl()
80 rc = posix_acl_to_xattr(&init_user_ns, acl, value, size); in __jfs_set_acl()
[all …]
Dxattr.c656 const void *value, size_t value_len, int flags) in __jfs_setxattr() argument
704 if (value == NULL) { in __jfs_setxattr()
709 if (value) in __jfs_setxattr()
736 if (value) { in __jfs_setxattr()
761 memcpy(&ea->name[namelen + 1], value, value_len); in __jfs_setxattr()
803 char *value; in __jfs_getxattr() local
831 value = ((char *) &ea->name) + ea->namelen + 1; in __jfs_getxattr()
832 memcpy(data, value, size); in __jfs_getxattr()
909 const void *value, size_t size, int flags) in __jfs_xattr_set() argument
917 rc = __jfs_setxattr(tid, inode, name, value, size, flags); in __jfs_xattr_set()
[all …]
/fs/sdcardfs/
Dpackagelist.c38 atomic_t value; member
81 ret_id = atomic_read(&hash_cur->value); in __get_appid()
107 ret_id = atomic_read(&hash_cur->value); in __get_ext_gid()
131 if (atomic_read(&hash_cur->value) == user && in __is_excluded()
178 appid_t value) in alloc_hashtable_entry() argument
192 atomic_set(&ret->value, value); in alloc_hashtable_entry()
196 static int insert_packagelist_appid_entry_locked(const struct qstr *key, appid_t value) in insert_packagelist_appid_entry_locked() argument
204 atomic_set(&hash_cur->value, value); in insert_packagelist_appid_entry_locked()
208 new_entry = alloc_hashtable_entry(key, value); in insert_packagelist_appid_entry_locked()
215 static int insert_ext_gid_entry_locked(const struct qstr *key, appid_t value) in insert_ext_gid_entry_locked() argument
[all …]
/fs/hfs/
Dattr.c23 const void *value, size_t size, int flags) in __hfs_setxattr() argument
47 memcpy(&file->UsrWds.fdType, value, 4); in __hfs_setxattr()
54 memcpy(&file->UsrWds.fdCreator, value, 4); in __hfs_setxattr()
69 void *value, size_t size) in __hfs_getxattr() argument
95 memcpy(value, &file->UsrWds.fdType, 4); in __hfs_getxattr()
103 memcpy(value, &file->UsrWds.fdCreator, 4); in __hfs_getxattr()
118 const char *name, void *value, size_t size, int flags) in hfs_xattr_get() argument
120 return __hfs_getxattr(inode, handler->flags, value, size); in hfs_xattr_get()
125 const char *name, const void *value, size_t size, in hfs_xattr_set() argument
128 if (!value) in hfs_xattr_set()
[all …]
/fs/ceph/
Dacl.c37 char *value = NULL; in ceph_get_acl() local
54 value = kzalloc(size, GFP_NOFS); in ceph_get_acl()
55 if (!value) in ceph_get_acl()
57 size = __ceph_getxattr(inode, name, value, size); in ceph_get_acl()
62 kfree(value); in ceph_get_acl()
63 value = NULL; in ceph_get_acl()
68 acl = posix_acl_from_xattr(&init_user_ns, value, size); in ceph_get_acl()
77 kfree(value); in ceph_get_acl()
89 char *value = NULL; in ceph_set_acl() local
122 value = kmalloc(size, GFP_NOFS); in ceph_set_acl()
[all …]
/fs/ocfs2/
Dacl.c35 static struct posix_acl *ocfs2_acl_from_xattr(const void *value, size_t size) in ocfs2_acl_from_xattr() argument
40 if (!value) in ocfs2_acl_from_xattr()
52 (struct ocfs2_acl_entry *)value; in ocfs2_acl_from_xattr()
70 value += sizeof(struct posix_acl_entry); in ocfs2_acl_from_xattr()
119 char *value = NULL; in ocfs2_get_acl_nolock() local
136 value = kmalloc(retval, GFP_NOFS); in ocfs2_get_acl_nolock()
137 if (!value) in ocfs2_get_acl_nolock()
140 "", value, retval); in ocfs2_get_acl_nolock()
144 acl = ocfs2_acl_from_xattr(value, retval); in ocfs2_get_acl_nolock()
150 kfree(value); in ocfs2_get_acl_nolock()
[all …]
/fs/f2fs/
Dacl.c45 static struct posix_acl *f2fs_acl_from_disk(const char *value, size_t size) in f2fs_acl_from_disk() argument
49 struct f2fs_acl_header *hdr = (struct f2fs_acl_header *)value; in f2fs_acl_from_disk()
51 const char *end = value + size; in f2fs_acl_from_disk()
171 void *value = NULL; in __f2fs_get_acl() local
180 value = f2fs_kmalloc(F2FS_I_SB(inode), retval, GFP_F2FS_ZERO); in __f2fs_get_acl()
181 if (!value) in __f2fs_get_acl()
183 retval = f2fs_getxattr(inode, name_index, "", value, in __f2fs_get_acl()
188 acl = f2fs_acl_from_disk(value, retval); in __f2fs_get_acl()
193 kvfree(value); in __f2fs_get_acl()
207 void *value = NULL; in __f2fs_set_acl() local
[all …]
Dxattr.c49 const char *name, const void *value, in f2fs_xattr_generic_set() argument
66 value, size, NULL, flags); in f2fs_xattr_generic_set()
92 const char *name, const void *value, in f2fs_xattr_advise_set() argument
100 if (value == NULL) in f2fs_xattr_advise_set()
103 new_advise = *(char *)value; in f2fs_xattr_advise_set()
124 xattr->name, xattr->value, in f2fs_initxattrs()
598 const void *value, size_t size) in f2fs_xattr_value_same() argument
603 !memcmp(pval, value, size); in f2fs_xattr_value_same()
607 const char *name, const void *value, size_t size, in __f2fs_setxattr() argument
621 if (value == NULL) in __f2fs_setxattr()
[all …]
/fs/debugfs/
Dfile.c382 struct dentry *parent, void *value, in debugfs_create_mode_unsafe() argument
389 return debugfs_create_file_unsafe(name, mode, parent, value, in debugfs_create_mode_unsafe()
393 return debugfs_create_file_unsafe(name, mode, parent, value, in debugfs_create_mode_unsafe()
396 return debugfs_create_file_unsafe(name, mode, parent, value, fops); in debugfs_create_mode_unsafe()
437 struct dentry *parent, u8 *value) in debugfs_create_u8() argument
439 return debugfs_create_mode_unsafe(name, mode, parent, value, &fops_u8, in debugfs_create_u8()
482 struct dentry *parent, u16 *value) in debugfs_create_u16() argument
484 return debugfs_create_mode_unsafe(name, mode, parent, value, &fops_u16, in debugfs_create_u16()
527 struct dentry *parent, u32 *value) in debugfs_create_u32() argument
529 return debugfs_create_mode_unsafe(name, mode, parent, value, &fops_u32, in debugfs_create_u32()
[all …]
/fs/ntfs/
Dbitmap.c34 const s64 count, const u8 value, const bool is_rollback) in __ntfs_bitmap_set_bits_in_run() argument
47 (unsigned long long)cnt, (unsigned int)value, in __ntfs_bitmap_set_bits_in_run()
51 BUG_ON(value > 1); in __ntfs_bitmap_set_bits_in_run()
81 if (value) in __ntfs_bitmap_set_bits_in_run()
98 memset(kaddr + pos, value ? 0xff : 0, len); in __ntfs_bitmap_set_bits_in_run()
122 memset(kaddr, value ? 0xff : 0, len); in __ntfs_bitmap_set_bits_in_run()
138 if (value) in __ntfs_bitmap_set_bits_in_run()
161 value ? 0 : 1, true); in __ntfs_bitmap_set_bits_in_run()
/fs/ufs/
Dutil.h58 struct ufs_super_block_third *usb3, s32 value) in ufs_set_fs_state() argument
63 usb1->fs_u0.fs_sun.fs_state = cpu_to_fs32(sb, value); in ufs_set_fs_state()
68 usb3->fs_un2.fs_sun.fs_state = cpu_to_fs32(sb, value); in ufs_set_fs_state()
71 usb1->fs_u1.fs_sunx86.fs_state = cpu_to_fs32(sb, value); in ufs_set_fs_state()
74 usb3->fs_un2.fs_44.fs_state = cpu_to_fs32(sb, value); in ufs_set_fs_state()
147 ufs_set_de_namlen(struct super_block *sb, struct ufs_dir_entry *de, u16 value) in ufs_set_de_namlen() argument
150 de->d_u.d_namlen = cpu_to_fs16(sb, value); in ufs_set_de_namlen()
152 de->d_u.d_44.d_namlen = value; /* XXX this seems wrong */ in ufs_set_de_namlen()
207 ufs_set_inode_uid(struct super_block *sb, struct ufs_inode *inode, u32 value) in ufs_set_inode_uid() argument
211 inode->ui_u3.ui_44.ui_uid = cpu_to_fs32(sb, value); in ufs_set_inode_uid()
[all …]
/fs/9p/
Dacl.c31 void *value = NULL; in __v9fs_get_acl() local
36 value = kzalloc(size, GFP_NOFS); in __v9fs_get_acl()
37 if (!value) in __v9fs_get_acl()
39 size = v9fs_fid_xattr_get(fid, name, value, size); in __v9fs_get_acl()
41 acl = posix_acl_from_xattr(&init_user_ns, value, size); in __v9fs_get_acl()
52 kfree(value); in __v9fs_get_acl()
244 const char *name, const void *value, in v9fs_xattr_set_acl() argument
257 return v9fs_xattr_set(dentry, handler->name, value, size, in v9fs_xattr_set_acl()
264 if (value) { in v9fs_xattr_set_acl()
266 acl = posix_acl_from_xattr(&init_user_ns, value, size); in v9fs_xattr_set_acl()
[all …]
/fs/befs/
Dbtree.c113 const char *findkey, befs_off_t * value);
246 const char *key, befs_off_t * value) in befs_btree_find() argument
292 res = befs_find_key(sb, this_node, key, value); in befs_btree_find()
300 *value = 0; in befs_btree_find()
304 key, *value); in befs_btree_find()
310 *value = 0; in befs_btree_find()
331 const char *findkey, befs_off_t * value) in befs_find_key() argument
371 *value = fs64_to_cpu(sb, valarray[mid]); in befs_find_key()
382 *value = fs64_to_cpu(sb, valarray[mid + 1]); in befs_find_key()
384 *value = fs64_to_cpu(sb, valarray[mid]); in befs_find_key()
[all …]

123456