/fs/configfs/ |
D | dir.c | 42 struct configfs_dirent *sd = dentry->d_fsdata; in configfs_d_iput() local 44 if (sd) { in configfs_d_iput() 53 if (sd->s_dentry == dentry) in configfs_d_iput() 54 sd->s_dentry = NULL; in configfs_d_iput() 57 configfs_put(sd); in configfs_d_iput() 88 static void configfs_init_dirent_depth(struct configfs_dirent *sd) in configfs_init_dirent_depth() argument 90 sd->s_depth = -1; in configfs_init_dirent_depth() 94 struct configfs_dirent *sd) in configfs_set_dir_dirent_depth() argument 99 sd->s_depth = parent_depth + 1; in configfs_set_dir_dirent_depth() 103 configfs_adjust_dir_dirent_depth_before_populate(struct configfs_dirent *sd) in configfs_adjust_dir_dirent_depth_before_populate() argument [all …]
|
D | inode.c | 46 struct configfs_dirent * sd = dentry->d_fsdata; in configfs_setattr() local 51 if (!sd) in configfs_setattr() 54 sd_iattr = sd->s_iattr; in configfs_setattr() 61 sd_iattr->ia_mode = sd->s_mode; in configfs_setattr() 66 sd->s_iattr = sd_iattr; in configfs_setattr() 92 sd_iattr->ia_mode = sd->s_mode = mode; in configfs_setattr() 115 struct inode *configfs_new_inode(umode_t mode, struct configfs_dirent *sd, in configfs_new_inode() argument 124 if (sd->s_iattr) { in configfs_new_inode() 129 set_inode_attr(inode, sd->s_iattr); in configfs_new_inode() 138 static void configfs_set_inode_lock_class(struct configfs_dirent *sd, in configfs_set_inode_lock_class() argument [all …]
|
D | configfs_internal.h | 80 extern const unsigned char * configfs_get_name(struct configfs_dirent *sd); 81 extern void configfs_drop_dentry(struct configfs_dirent *sd, struct dentry *parent); 104 struct configfs_dirent * sd = dentry->d_fsdata; in to_item() local 105 return ((struct config_item *) sd->s_element); in to_item() 110 struct configfs_dirent * sd = dentry->d_fsdata; in to_attr() local 111 return ((struct configfs_attribute *) sd->s_element); in to_attr() 127 struct configfs_dirent * sd = dentry->d_fsdata; in configfs_get_config_item() local 128 item = config_item_get(sd->s_element); in configfs_get_config_item() 135 static inline void release_configfs_dirent(struct configfs_dirent * sd) in release_configfs_dirent() argument 137 if (!(sd->s_type & CONFIGFS_ROOT)) { in release_configfs_dirent() [all …]
|
D | symlink.c | 146 struct configfs_dirent *sd; in configfs_symlink() local 151 sd = dentry->d_parent->d_fsdata; in configfs_symlink() 156 if (!configfs_dirent_is_ready(sd)) in configfs_symlink() 222 struct configfs_dirent *sd = dentry->d_fsdata, *target_sd; in configfs_unlink() local 228 if (!(sd->s_type & CONFIGFS_ITEM_LINK)) in configfs_unlink() 231 target_sd = sd->s_element; in configfs_unlink() 237 list_del_init(&sd->s_sibling); in configfs_unlink() 239 configfs_drop_dentry(sd, dentry->d_parent); in configfs_unlink() 241 configfs_put(sd); in configfs_unlink()
|
D | file.c | 53 struct configfs_dirent *sd = file->f_path.dentry->d_fsdata; in to_frag() local 55 return sd->s_frag; in to_frag()
|
/fs/ |
D | splice.c | 435 struct pipe_buffer *buf, struct splice_desc *sd) in pipe_to_sendpage() argument 437 struct file *file = sd->u.file; in pipe_to_sendpage() 438 loff_t pos = sd->pos; in pipe_to_sendpage() 444 more = (sd->flags & SPLICE_F_MORE) ? MSG_MORE : 0; in pipe_to_sendpage() 446 if (sd->len < sd->total_len && pipe->nrbufs > 1) in pipe_to_sendpage() 450 sd->len, &pos, more); in pipe_to_sendpage() 481 static int splice_from_pipe_feed(struct pipe_inode_info *pipe, struct splice_desc *sd, in splice_from_pipe_feed() argument 489 sd->len = buf->len; in splice_from_pipe_feed() 490 if (sd->len > sd->total_len) in splice_from_pipe_feed() 491 sd->len = sd->total_len; in splice_from_pipe_feed() [all …]
|
/fs/crypto/ |
D | hooks.c | 173 struct fscrypt_symlink_data *sd; in __fscrypt_encrypt_symlink() local 182 sd = (struct fscrypt_symlink_data *)disk_link->name; in __fscrypt_encrypt_symlink() 184 sd = kmalloc(disk_link->len, GFP_NOFS); in __fscrypt_encrypt_symlink() 185 if (!sd) in __fscrypt_encrypt_symlink() 188 ciphertext_len = disk_link->len - sizeof(*sd); in __fscrypt_encrypt_symlink() 189 sd->len = cpu_to_le16(ciphertext_len); in __fscrypt_encrypt_symlink() 191 err = fname_encrypt(inode, &iname, sd->encrypted_path, ciphertext_len); in __fscrypt_encrypt_symlink() 200 sd->encrypted_path[ciphertext_len] = '\0'; in __fscrypt_encrypt_symlink() 209 disk_link->name = (unsigned char *)sd; in __fscrypt_encrypt_symlink() 214 kfree(sd); in __fscrypt_encrypt_symlink() [all …]
|
/fs/sysfs/ |
D | dir.c | 50 parent = kobj->parent->sd; in sysfs_create_dir_ns() 68 kobj->sd = kn; in sysfs_create_dir_ns() 82 struct kernfs_node *kn = kobj->sd; in sysfs_remove_dir() 97 kobj->sd = NULL; in sysfs_remove_dir() 112 parent = kernfs_get_parent(kobj->sd); in sysfs_rename_dir_ns() 113 ret = kernfs_rename_ns(kobj->sd, parent, new_name, new_ns); in sysfs_rename_dir_ns() 121 struct kernfs_node *kn = kobj->sd; in sysfs_move_dir_ns() 124 new_parent = new_parent_kobj && new_parent_kobj->sd ? in sysfs_move_dir_ns() 125 new_parent_kobj->sd : sysfs_root_kn; in sysfs_move_dir_ns() 137 struct kernfs_node *kn, *parent = parent_kobj->sd; in sysfs_create_mount_point() [all …]
|
D | symlink.c | 35 if (target_kobj->sd) { in sysfs_do_create_link_sd() 36 target = target_kobj->sd; in sysfs_do_create_link_sd() 75 parent = kobj->sd; in sysfs_do_create_link() 132 if (targ->sd && kernfs_ns_enabled(kobj->sd)) in sysfs_delete_link() 133 ns = targ->sd->ns; in sysfs_delete_link() 135 kernfs_remove_by_name_ns(kobj->sd, name, ns); in sysfs_delete_link() 150 parent = kobj->sd; in sysfs_remove_link() 176 parent = kobj->sd; in sysfs_rename_link_ns() 178 if (targ->sd) in sysfs_rename_link_ns() 179 old_ns = targ->sd->ns; in sysfs_rename_link_ns()
|
D | group.c | 115 if (WARN_ON(!kobj || (!update && !kobj->sd))) in internal_create_group() 119 if (unlikely(update && !kobj->sd)) in internal_create_group() 129 kn = kernfs_find_and_get(kobj->sd, grp->name); in internal_create_group() 136 kn = kernfs_create_dir_ns(kobj->sd, grp->name, in internal_create_group() 141 sysfs_warn_dup(kobj->sd, grp->name); in internal_create_group() 146 kn = kobj->sd; in internal_create_group() 272 struct kernfs_node *parent = kobj->sd; in sysfs_remove_group() 335 parent = kernfs_find_and_get(kobj->sd, grp->name); in sysfs_merge_group() 365 parent = kernfs_find_and_get(kobj->sd, grp->name); in sysfs_unmerge_group() 387 parent = kernfs_find_and_get(kobj->sd, group_name); in sysfs_add_link_to_group() [all …]
|
D | file.c | 174 struct kernfs_node *kn = kobj->sd, *tmp; in sysfs_notify() 327 if (WARN_ON(!kobj || !kobj->sd || !attr)) in sysfs_create_file_ns() 331 return sysfs_add_file_mode_ns(kobj->sd, attr, false, attr->mode, in sysfs_create_file_ns() 366 parent = kernfs_find_and_get(kobj->sd, group); in sysfs_add_file_to_group() 368 parent = kobj->sd; in sysfs_add_file_to_group() 398 kn = kernfs_find_and_get(kobj->sd, attr->name); in sysfs_chmod_file() 428 kn = kernfs_find_and_get(kobj->sd, attr->name); in sysfs_break_active_protection() 467 struct kernfs_node *parent = kobj->sd; in sysfs_remove_file_ns() 482 struct kernfs_node *parent = kobj->sd; in sysfs_remove_file_self() 517 parent = kernfs_find_and_get(kobj->sd, group); in sysfs_remove_file_from_group() [all …]
|
/fs/ocfs2/cluster/ |
D | netdebug.c | 238 struct o2net_sock_debug *sd = seq->private; in sc_seq_start() local 239 struct o2net_sock_container *sc, *dummy_sc = sd->dbg_sock; in sc_seq_start() 250 struct o2net_sock_debug *sd = seq->private; in sc_seq_next() local 251 struct o2net_sock_container *sc, *dummy_sc = sd->dbg_sock; in sc_seq_next() 351 struct o2net_sock_debug *sd = seq->private; in sc_seq_show() local 352 struct o2net_sock_container *sc, *dummy_sc = sd->dbg_sock; in sc_seq_show() 358 if (sd->dbg_ctxt == SHOW_SOCK_CONTAINERS) in sc_seq_show() 382 struct o2net_sock_debug *sd; in sc_common_open() local 389 sd = __seq_open_private(file, &sc_seq_ops, sizeof(*sd)); in sc_common_open() 390 if (!sd) { in sc_common_open() [all …]
|
/fs/nilfs2/ |
D | super.c | 1193 struct nilfs_super_data *sd) in nilfs_parse_snapshot_option() argument 1199 if (!(sd->flags & SB_RDONLY)) { in nilfs_parse_snapshot_option() 1215 sd->cno = val; in nilfs_parse_snapshot_option() 1228 static int nilfs_identify(char *data, struct nilfs_super_data *sd) in nilfs_identify() argument 1241 sd); in nilfs_identify() 1267 struct nilfs_super_data sd; in nilfs_mount() local 1276 sd.bdev = blkdev_get_by_path(dev_name, mode, fs_type); in nilfs_mount() 1277 if (IS_ERR(sd.bdev)) in nilfs_mount() 1278 return ERR_CAST(sd.bdev); in nilfs_mount() 1280 sd.cno = 0; in nilfs_mount() [all …]
|
/fs/reiserfs/ |
D | item_ops.c | 40 struct stat_data_v1 *sd = (struct stat_data_v1 *)item; in sd_print_item() local 42 printk("\t0%-6o | %6u | %2u | %d | %u\n", sd_v1_mode(sd), in sd_print_item() 43 sd_v1_size(sd), sd_v1_nlink(sd), in sd_print_item() 44 sd_v1_first_direct_byte(sd), in sd_print_item() 45 sd_v1_mtime(sd)); in sd_print_item() 47 struct stat_data *sd = (struct stat_data *)item; in sd_print_item() local 49 printk("\t0%-6o | %6llu | %2u | %d | %u\n", sd_v2_mode(sd), in sd_print_item() 50 (unsigned long long)sd_v2_size(sd), sd_v2_nlink(sd), in sd_print_item() 51 sd_v2_rdev(sd), sd_v2_mtime(sd)); in sd_print_item()
|
D | inode.c | 1259 struct stat_data_v1 *sd = in init_inode() local 1265 inode->i_mode = sd_v1_mode(sd); in init_inode() 1266 set_nlink(inode, sd_v1_nlink(sd)); in init_inode() 1267 i_uid_write(inode, sd_v1_uid(sd)); in init_inode() 1268 i_gid_write(inode, sd_v1_gid(sd)); in init_inode() 1269 inode->i_size = sd_v1_size(sd); in init_inode() 1270 inode->i_atime.tv_sec = sd_v1_atime(sd); in init_inode() 1271 inode->i_mtime.tv_sec = sd_v1_mtime(sd); in init_inode() 1272 inode->i_ctime.tv_sec = sd_v1_ctime(sd); in init_inode() 1277 inode->i_blocks = sd_v1_blocks(sd); in init_inode() [all …]
|
/fs/nfsd/ |
D | vfs.c | 810 struct splice_desc *sd) in nfsd_splice_actor() argument 812 struct svc_rqst *rqstp = sd->u.data; in nfsd_splice_actor() 817 size = sd->len; in nfsd_splice_actor() 838 struct splice_desc *sd) in nfsd_direct_splice_actor() argument 840 return __splice_from_pipe(pipe, sd, nfsd_splice_actor); in nfsd_direct_splice_actor() 874 struct splice_desc sd = { in nfsd_splice_read() local 884 host_err = splice_direct_to_actor(file, &sd, nfsd_direct_splice_actor); in nfsd_splice_read()
|
/fs/cifs/ |
D | netmisc.c | 953 SMB_DATE *sd = (SMB_DATE *)&date; in cnvrtDosUnixTm() local 965 day = sd->Day; in cnvrtDosUnixTm() 966 month = sd->Month; in cnvrtDosUnixTm() 975 year = sd->Year; in cnvrtDosUnixTm()
|
/fs/befs/ |
D | debug.c | 207 befs_dump_small_data(const struct super_block *sb, befs_small_data *sd)
|