/fs/ |
D | xattr.c | 46 #define for_each_xattr_handler(handlers, handler) \ argument 48 for ((handler) = *(handlers)++; \ 49 (handler) != NULL; \ 50 (handler) = *(handlers)++) 59 const struct xattr_handler *handler; in xattr_resolve_name() local 66 for_each_xattr_handler(handlers, handler) { in xattr_resolve_name() 69 n = strcmp_prefix(*name, xattr_prefix(handler)); in xattr_resolve_name() 71 if (!handler->prefix ^ !*n) { in xattr_resolve_name() 77 return handler; in xattr_resolve_name() 148 const struct xattr_handler *handler; in xattr_supported_namespace() local [all …]
|
/fs/incfs/ |
D | format.c | 641 struct metadata_handler *handler) in incfs_read_next_metadata_record() argument 650 if (!bfc || !handler) in incfs_read_next_metadata_record() 653 if (handler->md_record_offset == 0) in incfs_read_next_metadata_record() 656 memset(&handler->md_buffer, 0, max_md_size); in incfs_read_next_metadata_record() 657 bytes_read = incfs_kread(bfc, &handler->md_buffer, max_md_size, in incfs_read_next_metadata_record() 658 handler->md_record_offset); in incfs_read_next_metadata_record() 664 md_hdr = &handler->md_buffer.md_header; in incfs_read_next_metadata_record() 679 if (next_record <= handler->md_record_offset && next_record != 0) { in incfs_read_next_metadata_record() 689 if (handler->handle_blockmap) in incfs_read_next_metadata_record() 690 res = handler->handle_blockmap( in incfs_read_next_metadata_record() [all …]
|
D | format.h | 333 struct metadata_handler *handler); 335 struct metadata_handler *handler); 337 struct metadata_handler *handler); 339 struct metadata_handler *handler); 400 struct metadata_handler *handler);
|
D | data_mgmt.c | 1525 struct metadata_handler *handler) in process_blockmap_md() argument 1527 struct data_file *df = handler->context; in process_blockmap_md() 1544 struct metadata_handler *handler) in process_file_signature_md() argument 1546 struct data_file *df = handler->context; in process_file_signature_md() 1598 handler->md_record_offset <= signature->hash_offset) { in process_file_signature_md() 1602 if (handler->md_record_offset <= signature->sig_offset) { in process_file_signature_md() 1619 struct metadata_handler *handler) in process_status_md() argument 1621 struct data_file *df = handler->context; in process_status_md() 1633 df->df_status_offset = handler->md_record_offset; in process_status_md() 1639 struct metadata_handler *handler) in process_file_verity_signature_md() argument [all …]
|
/fs/btrfs/ |
D | props.c | 60 const struct prop_handler *handler; in btrfs_validate_prop() local 65 handler = find_prop_handler(name, NULL); in btrfs_validate_prop() 66 if (!handler) in btrfs_validate_prop() 72 return handler->validate(value, value_len); in btrfs_validate_prop() 79 const struct prop_handler *handler; in btrfs_set_prop() local 82 handler = find_prop_handler(name, NULL); in btrfs_set_prop() 83 if (!handler) in btrfs_set_prop() 87 ret = btrfs_setxattr(trans, inode, handler->xattr_name, in btrfs_set_prop() 92 ret = handler->apply(inode, NULL, 0); in btrfs_set_prop() 98 ret = btrfs_setxattr(trans, inode, handler->xattr_name, value, in btrfs_set_prop() [all …]
|
D | xattr.c | 380 static int btrfs_xattr_handler_get(const struct xattr_handler *handler, in btrfs_xattr_handler_get() argument 384 name = xattr_full_name(handler, name); in btrfs_xattr_handler_get() 388 static int btrfs_xattr_handler_set(const struct xattr_handler *handler, in btrfs_xattr_handler_set() argument 397 name = xattr_full_name(handler, name); in btrfs_xattr_handler_set() 401 static int btrfs_xattr_handler_set_prop(const struct xattr_handler *handler, in btrfs_xattr_handler_set_prop() argument 411 name = xattr_full_name(handler, name); in btrfs_xattr_handler_set_prop()
|
/fs/squashfs/ |
D | xattr.c | 47 const struct xattr_handler *handler; in squashfs_listxattr() local 56 handler = squashfs_xattr_handler(le16_to_cpu(entry.type)); in squashfs_listxattr() 57 if (handler && (!handler->list || handler->list(d))) { in squashfs_listxattr() 58 const char *prefix = handler->prefix ?: handler->name; in squashfs_listxattr() 203 static int squashfs_xattr_handler_get(const struct xattr_handler *handler, in squashfs_xattr_handler_get() argument 209 return squashfs_xattr_get(inode, handler->flags, name, in squashfs_xattr_handler_get()
|
/fs/f2fs/ |
D | xattr.c | 46 static int f2fs_xattr_generic_get(const struct xattr_handler *handler, in f2fs_xattr_generic_get() argument 52 switch (handler->flags) { in f2fs_xattr_generic_get() 63 return f2fs_getxattr(inode, handler->flags, name, in f2fs_xattr_generic_get() 67 static int f2fs_xattr_generic_set(const struct xattr_handler *handler, in f2fs_xattr_generic_set() argument 75 switch (handler->flags) { in f2fs_xattr_generic_set() 86 return f2fs_setxattr(inode, handler->flags, name, in f2fs_xattr_generic_set() 102 static int f2fs_xattr_advise_get(const struct xattr_handler *handler, in f2fs_xattr_advise_get() argument 111 static int f2fs_xattr_advise_set(const struct xattr_handler *handler, in f2fs_xattr_advise_set() argument 221 const struct xattr_handler *handler = NULL; in f2fs_xattr_handler() local 224 handler = f2fs_xattr_handler_map[index]; in f2fs_xattr_handler() [all …]
|
/fs/reiserfs/ |
D | xattr_user.c | 11 user_get(const struct xattr_handler *handler, struct dentry *unused, in user_get() argument 16 return reiserfs_xattr_get(inode, xattr_full_name(handler, name), in user_get() 21 user_set(const struct xattr_handler *handler, struct user_namespace *mnt_userns, in user_set() argument 29 xattr_full_name(handler, name), in user_set()
|
D | xattr_trusted.c | 12 trusted_get(const struct xattr_handler *handler, struct dentry *unused, in trusted_get() argument 18 return reiserfs_xattr_get(inode, xattr_full_name(handler, name), in trusted_get() 23 trusted_set(const struct xattr_handler *handler, in trusted_set() argument 32 xattr_full_name(handler, name), in trusted_set()
|
D | xattr_security.c | 13 security_get(const struct xattr_handler *handler, struct dentry *unused, in security_get() argument 19 return reiserfs_xattr_get(inode, xattr_full_name(handler, name), in security_get() 24 security_set(const struct xattr_handler *handler, in security_set() argument 33 xattr_full_name(handler, name), in security_set()
|
D | xattr.c | 775 #define for_each_xattr_handler(handlers, handler) \ argument 776 for ((handler) = *(handlers)++; \ 777 (handler) != NULL; \ 778 (handler) = *(handlers)++) 817 const struct xattr_handler *handler; in listxattr_filler() local 819 handler = find_xattr_handler_prefix(b->dentry->d_sb->s_xattr, in listxattr_filler() 821 if (!handler /* Unsupported xattr name */ || in listxattr_filler() 822 (handler->list && !handler->list(b->dentry))) in listxattr_filler()
|
/fs/9p/ |
D | acl.c | 219 static int v9fs_xattr_get_acl(const struct xattr_handler *handler, in v9fs_xattr_get_acl() argument 232 return v9fs_xattr_get(dentry, handler->name, buffer, size); in v9fs_xattr_get_acl() 234 acl = v9fs_get_cached_acl(inode, handler->flags); in v9fs_xattr_get_acl() 245 static int v9fs_xattr_set_acl(const struct xattr_handler *handler, in v9fs_xattr_set_acl() argument 261 return v9fs_xattr_set(dentry, handler->name, value, size, in v9fs_xattr_set_acl() 281 switch (handler->flags) { in v9fs_xattr_set_acl() 318 retval = v9fs_xattr_set(dentry, handler->name, value, size, flags); in v9fs_xattr_set_acl() 320 set_cached_acl(inode, handler->flags, acl); in v9fs_xattr_set_acl()
|
D | xattr.c | 151 static int v9fs_xattr_handler_get(const struct xattr_handler *handler, in v9fs_xattr_handler_get() argument 155 const char *full_name = xattr_full_name(handler, name); in v9fs_xattr_handler_get() 160 static int v9fs_xattr_handler_set(const struct xattr_handler *handler, in v9fs_xattr_handler_set() argument 166 const char *full_name = xattr_full_name(handler, name); in v9fs_xattr_handler_set()
|
/fs/xfs/ |
D | xfs_xattr.c | 23 xfs_xattr_get(const struct xattr_handler *handler, struct dentry *unused, in xfs_xattr_get() argument 28 .attr_filter = handler->flags, in xfs_xattr_get() 43 xfs_xattr_set(const struct xattr_handler *handler, in xfs_xattr_set() argument 50 .attr_filter = handler->flags, in xfs_xattr_set() 60 if (!error && (handler->flags & XFS_ATTR_ROOT)) in xfs_xattr_set()
|
/fs/afs/ |
D | xattr.c | 36 static int afs_xattr_get_acl(const struct xattr_handler *handler, in afs_xattr_get_acl() argument 99 static int afs_xattr_set_acl(const struct xattr_handler *handler, in afs_xattr_set_acl() argument 138 static int afs_xattr_get_yfs(const struct xattr_handler *handler, in afs_xattr_get_yfs() argument 230 static int afs_xattr_set_yfs(const struct xattr_handler *handler, in afs_xattr_set_yfs() argument 268 static int afs_xattr_get_cell(const struct xattr_handler *handler, in afs_xattr_get_cell() argument 295 static int afs_xattr_get_fid(const struct xattr_handler *handler, in afs_xattr_get_fid() argument 333 static int afs_xattr_get_volume(const struct xattr_handler *handler, in afs_xattr_get_volume() argument
|
/fs/hfs/ |
D | attr.c | 116 static int hfs_xattr_get(const struct xattr_handler *handler, in hfs_xattr_get() argument 120 return __hfs_getxattr(inode, handler->flags, value, size); in hfs_xattr_get() 123 static int hfs_xattr_set(const struct xattr_handler *handler, in hfs_xattr_set() argument 132 return __hfs_setxattr(inode, handler->flags, value, size, flags); in hfs_xattr_set()
|
/fs/kernfs/ |
D | inode.c | 320 static int kernfs_vfs_xattr_get(const struct xattr_handler *handler, in kernfs_vfs_xattr_get() argument 324 const char *name = xattr_full_name(handler, suffix); in kernfs_vfs_xattr_get() 330 static int kernfs_vfs_xattr_set(const struct xattr_handler *handler, in kernfs_vfs_xattr_set() argument 336 const char *name = xattr_full_name(handler, suffix); in kernfs_vfs_xattr_set() 397 static int kernfs_vfs_user_xattr_set(const struct xattr_handler *handler, in kernfs_vfs_user_xattr_set() argument 403 const char *full_name = xattr_full_name(handler, suffix); in kernfs_vfs_user_xattr_set()
|
/fs/cifs/ |
D | xattr.c | 91 static int cifs_xattr_set(const struct xattr_handler *handler, in cifs_xattr_set() argument 131 switch (handler->flags) { in cifs_xattr_set() 178 switch (handler->flags) { in cifs_xattr_set() 285 static int cifs_xattr_get(const struct xattr_handler *handler, in cifs_xattr_get() argument 313 switch (handler->flags) { in cifs_xattr_get() 347 if (handler->flags == XATTR_CIFS_NTSD_FULL) { in cifs_xattr_get()
|
/fs/jffs2/ |
D | xattr_user.c | 19 static int jffs2_user_getxattr(const struct xattr_handler *handler, in jffs2_user_getxattr() argument 27 static int jffs2_user_setxattr(const struct xattr_handler *handler, in jffs2_user_setxattr() argument
|
D | xattr_trusted.c | 19 static int jffs2_trusted_getxattr(const struct xattr_handler *handler, in jffs2_trusted_getxattr() argument 27 static int jffs2_trusted_setxattr(const struct xattr_handler *handler, in jffs2_trusted_setxattr() argument
|
/fs/hfsplus/ |
D | xattr_user.c | 15 static int hfsplus_user_getxattr(const struct xattr_handler *handler, in hfsplus_user_getxattr() argument 24 static int hfsplus_user_setxattr(const struct xattr_handler *handler, in hfsplus_user_setxattr() argument
|
D | xattr_trusted.c | 15 static int hfsplus_trusted_getxattr(const struct xattr_handler *handler, in hfsplus_trusted_getxattr() argument 24 static int hfsplus_trusted_setxattr(const struct xattr_handler *handler, in hfsplus_trusted_setxattr() argument
|
/fs/ext2/ |
D | xattr_trusted.c | 19 ext2_xattr_trusted_get(const struct xattr_handler *handler, in ext2_xattr_trusted_get() argument 28 ext2_xattr_trusted_set(const struct xattr_handler *handler, in ext2_xattr_trusted_set() argument
|
/fs/ext4/ |
D | xattr_trusted.c | 23 ext4_xattr_trusted_get(const struct xattr_handler *handler, in ext4_xattr_trusted_get() argument 32 ext4_xattr_trusted_set(const struct xattr_handler *handler, in ext4_xattr_trusted_set() argument
|