/fs/ |
D | xattr.c | 44 #define for_each_xattr_handler(handlers, handler) \ argument 46 for ((handler) = *(handlers)++; \ 47 (handler) != NULL; \ 48 (handler) = *(handlers)++) 57 const struct xattr_handler *handler; in xattr_resolve_name() local 64 for_each_xattr_handler(handlers, handler) { in xattr_resolve_name() 67 n = strcmp_prefix(*name, xattr_prefix(handler)); in xattr_resolve_name() 69 if (!handler->prefix ^ !*n) { in xattr_resolve_name() 75 return handler; in xattr_resolve_name() 141 const struct xattr_handler *handler; in __vfs_setxattr() local [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 | 354 static int btrfs_xattr_handler_get(const struct xattr_handler *handler, in btrfs_xattr_handler_get() argument 359 name = xattr_full_name(handler, name); in btrfs_xattr_handler_get() 363 static int btrfs_xattr_handler_set(const struct xattr_handler *handler, in btrfs_xattr_handler_set() argument 368 name = xattr_full_name(handler, name); in btrfs_xattr_handler_set() 372 static int btrfs_xattr_handler_set_prop(const struct xattr_handler *handler, in btrfs_xattr_handler_set_prop() argument 381 name = xattr_full_name(handler, name); in btrfs_xattr_handler_set_prop()
|
/fs/incfs/ |
D | format.c | 583 struct metadata_handler *handler) in incfs_read_next_metadata_record() argument 593 if (!bfc || !handler) in incfs_read_next_metadata_record() 598 if (handler->md_record_offset == 0) in incfs_read_next_metadata_record() 601 memset(&handler->md_buffer, 0, max_md_size); in incfs_read_next_metadata_record() 602 bytes_read = incfs_kread(bfc->bc_file, &handler->md_buffer, in incfs_read_next_metadata_record() 603 max_md_size, handler->md_record_offset); in incfs_read_next_metadata_record() 609 md_hdr = &handler->md_buffer.md_header; in incfs_read_next_metadata_record() 625 if (next_record <= handler->md_record_offset && next_record != 0) { in incfs_read_next_metadata_record() 631 if (prev_record != handler->md_prev_record_offset) { in incfs_read_next_metadata_record() 645 if (handler->handle_blockmap) in incfs_read_next_metadata_record() [all …]
|
D | data_mgmt.c | 826 struct metadata_handler *handler) in process_blockmap_md() argument 828 struct data_file *df = handler->context; in process_blockmap_md() 844 struct metadata_handler *handler) in process_file_attr_md() argument 846 struct data_file *df = handler->context; in process_file_attr_md() 863 struct metadata_handler *handler) in process_file_signature_md() argument 865 struct data_file *df = handler->context; in process_file_signature_md() 903 if (tree_size > 0 && handler->md_record_offset <= base_tree_off) { in process_file_signature_md() 907 if (handler->md_record_offset <= signature->add_data_offset || in process_file_signature_md() 908 handler->md_record_offset <= signature->sig_offset) { in process_file_signature_md() 925 struct metadata_handler *handler = NULL; in incfs_scan_metadata_chain() local [all …]
|
D | format.h | 286 struct metadata_handler *handler); 288 struct metadata_handler *handler); 290 struct metadata_handler *handler); 344 struct metadata_handler *handler);
|
/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 | 26 static int f2fs_xattr_generic_get(const struct xattr_handler *handler, in f2fs_xattr_generic_get() argument 32 switch (handler->flags) { in f2fs_xattr_generic_get() 43 return f2fs_getxattr(inode, handler->flags, name, in f2fs_xattr_generic_get() 47 static int f2fs_xattr_generic_set(const struct xattr_handler *handler, in f2fs_xattr_generic_set() argument 54 switch (handler->flags) { in f2fs_xattr_generic_set() 65 return f2fs_setxattr(inode, handler->flags, name, in f2fs_xattr_generic_set() 81 static int f2fs_xattr_advise_get(const struct xattr_handler *handler, in f2fs_xattr_advise_get() argument 90 static int f2fs_xattr_advise_set(const struct xattr_handler *handler, in f2fs_xattr_advise_set() argument 199 const struct xattr_handler *handler = NULL; in f2fs_xattr_handler() local 202 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 17 return reiserfs_xattr_get(inode, xattr_full_name(handler, name), in user_get() 22 user_set(const struct xattr_handler *handler, struct dentry *unused, 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 19 return reiserfs_xattr_get(inode, xattr_full_name(handler, name), in trusted_get() 24 trusted_set(const struct xattr_handler *handler, struct dentry *unused, 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 20 return reiserfs_xattr_get(inode, xattr_full_name(handler, name), in security_get() 25 security_set(const struct xattr_handler *handler, struct dentry *unused, in security_set() argument 33 xattr_full_name(handler, name), in security_set()
|
D | xattr.c | 768 #define for_each_xattr_handler(handlers, handler) \ argument 769 for ((handler) = *(handlers)++; \ 770 (handler) != NULL; \ 771 (handler) = *(handlers)++) 810 const struct xattr_handler *handler; in listxattr_filler() local 812 handler = find_xattr_handler_prefix(b->dentry->d_sb->s_xattr, in listxattr_filler() 814 if (!handler /* Unsupported xattr name */ || in listxattr_filler() 815 (handler->list && !handler->list(b->dentry))) in listxattr_filler()
|
/fs/9p/ |
D | acl.c | 215 static int v9fs_xattr_get_acl(const struct xattr_handler *handler, in v9fs_xattr_get_acl() argument 229 return v9fs_xattr_get(dentry, handler->name, buffer, size); in v9fs_xattr_get_acl() 231 acl = v9fs_get_cached_acl(inode, handler->flags); in v9fs_xattr_get_acl() 242 static int v9fs_xattr_set_acl(const struct xattr_handler *handler, in v9fs_xattr_set_acl() argument 257 return v9fs_xattr_set(dentry, handler->name, value, size, in v9fs_xattr_set_acl() 277 switch (handler->flags) { in v9fs_xattr_set_acl() 313 retval = v9fs_xattr_set(dentry, handler->name, value, size, flags); in v9fs_xattr_set_acl() 315 set_cached_acl(inode, handler->flags, acl); in v9fs_xattr_set_acl()
|
D | xattr.c | 140 static int v9fs_xattr_handler_get(const struct xattr_handler *handler, in v9fs_xattr_handler_get() argument 145 const char *full_name = xattr_full_name(handler, name); in v9fs_xattr_handler_get() 150 static int v9fs_xattr_handler_set(const struct xattr_handler *handler, in v9fs_xattr_handler_set() argument 155 const char *full_name = xattr_full_name(handler, name); in v9fs_xattr_handler_set()
|
/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 131 return __hfs_setxattr(inode, handler->flags, value, size, flags); in hfs_xattr_set()
|
/fs/afs/ |
D | xattr.c | 40 static int afs_xattr_get_acl(const struct xattr_handler *handler, in afs_xattr_get_acl() argument 98 static int afs_xattr_set_acl(const struct xattr_handler *handler, in afs_xattr_set_acl() argument 163 static int afs_xattr_get_yfs(const struct xattr_handler *handler, in afs_xattr_get_yfs() argument 268 static int afs_xattr_set_yfs(const struct xattr_handler *handler, in afs_xattr_set_yfs() argument 334 static int afs_xattr_get_cell(const struct xattr_handler *handler, in afs_xattr_get_cell() argument 361 static int afs_xattr_get_fid(const struct xattr_handler *handler, in afs_xattr_get_fid() argument 399 static int afs_xattr_get_volume(const struct xattr_handler *handler, in afs_xattr_get_volume() argument
|
/fs/xfs/ |
D | xfs_xattr.c | 20 xfs_xattr_get(const struct xattr_handler *handler, struct dentry *unused, in xfs_xattr_get() argument 24 int xflags = handler->flags; in xfs_xattr_get() 63 xfs_xattr_set(const struct xattr_handler *handler, struct dentry *unused, in xfs_xattr_set() argument 67 int xflags = handler->flags; in xfs_xattr_set()
|
/fs/jffs2/ |
D | xattr_user.c | 19 static int jffs2_user_getxattr(const struct xattr_handler *handler, in jffs2_user_getxattr() argument 28 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 28 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 25 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 25 static int hfsplus_trusted_setxattr(const struct xattr_handler *handler, in hfsplus_trusted_setxattr() argument
|
/fs/fuse/ |
D | xattr.c | 177 static int fuse_xattr_get(const struct xattr_handler *handler, in fuse_xattr_get() argument 184 static int fuse_xattr_set(const struct xattr_handler *handler, in fuse_xattr_set() argument 200 static int no_xattr_get(const struct xattr_handler *handler, in no_xattr_get() argument 207 static int no_xattr_set(const struct xattr_handler *handler, in no_xattr_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
|
/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
|
D | xattr_user.c | 21 ext2_xattr_user_get(const struct xattr_handler *handler, in ext2_xattr_user_get() argument 32 ext2_xattr_user_set(const struct xattr_handler *handler, in ext2_xattr_user_set() argument
|