Home
last modified time | relevance | path

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

/fs/configfs/
Ddir.c48 struct configfs_dirent *sd = dentry->d_fsdata; in configfs_d_iput() local
50 if (sd) { in configfs_d_iput()
59 if (sd->s_dentry == dentry) in configfs_d_iput()
60 sd->s_dentry = NULL; in configfs_d_iput()
63 configfs_put(sd); in configfs_d_iput()
94 static void configfs_init_dirent_depth(struct configfs_dirent *sd) in configfs_init_dirent_depth() argument
96 sd->s_depth = -1; in configfs_init_dirent_depth()
100 struct configfs_dirent *sd) in configfs_set_dir_dirent_depth() argument
105 sd->s_depth = parent_depth + 1; in configfs_set_dir_dirent_depth()
109 configfs_adjust_dir_dirent_depth_before_populate(struct configfs_dirent *sd) in configfs_adjust_dir_dirent_depth_before_populate() argument
[all …]
Dinode.c39 struct configfs_dirent * sd = dentry->d_fsdata; in configfs_setattr() local
44 if (!sd) in configfs_setattr()
47 sd_iattr = sd->s_iattr; in configfs_setattr()
54 sd_iattr->ia_mode = sd->s_mode; in configfs_setattr()
59 sd->s_iattr = sd_iattr; in configfs_setattr()
82 sd_iattr->ia_mode = sd->s_mode = mode; in configfs_setattr()
105 struct inode *configfs_new_inode(umode_t mode, struct configfs_dirent *sd, in configfs_new_inode() argument
114 if (sd->s_iattr) { in configfs_new_inode()
119 set_inode_attr(inode, sd->s_iattr); in configfs_new_inode()
128 static void configfs_set_inode_lock_class(struct configfs_dirent *sd, in configfs_set_inode_lock_class() argument
[all …]
Dconfigfs_internal.h78 extern const unsigned char * configfs_get_name(struct configfs_dirent *sd);
79 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 …]
Dsymlink.c145 struct configfs_dirent *sd; in configfs_symlink() local
150 sd = dentry->d_parent->d_fsdata; in configfs_symlink()
155 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()
Dfile.c51 struct configfs_dirent *sd = file->f_path.dentry->d_fsdata; in to_frag() local
53 return sd->s_frag; in to_frag()
/fs/
Dsplice.c349 struct pipe_buffer *buf, struct splice_desc *sd) in pipe_to_sendpage() argument
351 struct file *file = sd->u.file; in pipe_to_sendpage()
352 loff_t pos = sd->pos; in pipe_to_sendpage()
358 more = (sd->flags & SPLICE_F_MORE) ? MSG_MORE : 0; in pipe_to_sendpage()
360 if (sd->len < sd->total_len && in pipe_to_sendpage()
365 sd->len, &pos, more); in pipe_to_sendpage()
396 static int splice_from_pipe_feed(struct pipe_inode_info *pipe, struct splice_desc *sd, in splice_from_pipe_feed() argument
407 sd->len = buf->len; in splice_from_pipe_feed()
408 if (sd->len > sd->total_len) in splice_from_pipe_feed()
409 sd->len = sd->total_len; in splice_from_pipe_feed()
[all …]
/fs/sysfs/
Ddir.c50 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 …]
Dsymlink.c35 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()
Dgroup.c116 if (WARN_ON(!kobj || (!update && !kobj->sd))) in internal_create_group()
120 if (unlikely(update && !kobj->sd)) in internal_create_group()
130 kn = kernfs_find_and_get(kobj->sd, grp->name); in internal_create_group()
137 kn = kernfs_create_dir_ns(kobj->sd, grp->name, in internal_create_group()
142 sysfs_warn_dup(kobj->sd, grp->name); in internal_create_group()
147 kn = kobj->sd; in internal_create_group()
273 struct kernfs_node *parent = kobj->sd; in sysfs_remove_group()
336 parent = kernfs_find_and_get(kobj->sd, grp->name); in sysfs_merge_group()
366 parent = kernfs_find_and_get(kobj->sd, grp->name); in sysfs_unmerge_group()
388 parent = kernfs_find_and_get(kobj->sd, group_name); in sysfs_add_link_to_group()
[all …]
Dfile.c185 struct kernfs_node *kn = kobj->sd, *tmp; in sysfs_notify()
339 if (WARN_ON(!kobj || !kobj->sd || !attr)) in sysfs_create_file_ns()
343 return sysfs_add_file_mode_ns(kobj->sd, attr, false, attr->mode, in sysfs_create_file_ns()
378 parent = kernfs_find_and_get(kobj->sd, group); in sysfs_add_file_to_group()
380 parent = kobj->sd; in sysfs_add_file_to_group()
410 kn = kernfs_find_and_get(kobj->sd, attr->name); in sysfs_chmod_file()
440 kn = kernfs_find_and_get(kobj->sd, attr->name); in sysfs_break_active_protection()
479 struct kernfs_node *parent = kobj->sd; in sysfs_remove_file_ns()
494 struct kernfs_node *parent = kobj->sd; in sysfs_remove_file_self()
530 parent = kernfs_find_and_get(kobj->sd, group); in sysfs_remove_file_from_group()
[all …]
/fs/crypto/
Dhooks.c273 struct fscrypt_symlink_data *sd; in __fscrypt_encrypt_symlink() local
286 sd = (struct fscrypt_symlink_data *)disk_link->name; in __fscrypt_encrypt_symlink()
288 sd = kmalloc(disk_link->len, GFP_NOFS); in __fscrypt_encrypt_symlink()
289 if (!sd) in __fscrypt_encrypt_symlink()
292 ciphertext_len = disk_link->len - sizeof(*sd); in __fscrypt_encrypt_symlink()
293 sd->len = cpu_to_le16(ciphertext_len); in __fscrypt_encrypt_symlink()
295 err = fscrypt_fname_encrypt(inode, &iname, sd->encrypted_path, in __fscrypt_encrypt_symlink()
305 sd->encrypted_path[ciphertext_len] = '\0'; in __fscrypt_encrypt_symlink()
314 disk_link->name = (unsigned char *)sd; in __fscrypt_encrypt_symlink()
319 kfree(sd); in __fscrypt_encrypt_symlink()
[all …]
/fs/ocfs2/cluster/
Dnetdebug.c236 struct o2net_sock_debug *sd = seq->private; in sc_seq_start() local
237 struct o2net_sock_container *sc, *dummy_sc = sd->dbg_sock; in sc_seq_start()
248 struct o2net_sock_debug *sd = seq->private; in sc_seq_next() local
249 struct o2net_sock_container *sc, *dummy_sc = sd->dbg_sock; in sc_seq_next()
349 struct o2net_sock_debug *sd = seq->private; in sc_seq_show() local
350 struct o2net_sock_container *sc, *dummy_sc = sd->dbg_sock; in sc_seq_show()
356 if (sd->dbg_ctxt == SHOW_SOCK_CONTAINERS) in sc_seq_show()
380 struct o2net_sock_debug *sd; in sc_common_open() local
387 sd = __seq_open_private(file, &sc_seq_ops, sizeof(*sd)); in sc_common_open()
388 if (!sd) { in sc_common_open()
[all …]
/fs/nilfs2/
Dsuper.c1227 struct nilfs_super_data *sd) in nilfs_parse_snapshot_option() argument
1233 if (!(sd->flags & SB_RDONLY)) { in nilfs_parse_snapshot_option()
1249 sd->cno = val; in nilfs_parse_snapshot_option()
1262 static int nilfs_identify(char *data, struct nilfs_super_data *sd) in nilfs_identify() argument
1275 sd); in nilfs_identify()
1301 struct nilfs_super_data sd; in nilfs_mount() local
1310 sd.bdev = blkdev_get_by_path(dev_name, mode, fs_type); in nilfs_mount()
1311 if (IS_ERR(sd.bdev)) in nilfs_mount()
1312 return ERR_CAST(sd.bdev); in nilfs_mount()
1314 sd.cno = 0; in nilfs_mount()
[all …]
/fs/reiserfs/
Ditem_ops.c40 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()
Dinode.c1257 struct stat_data_v1 *sd = in init_inode() local
1263 inode->i_mode = sd_v1_mode(sd); in init_inode()
1264 set_nlink(inode, sd_v1_nlink(sd)); in init_inode()
1265 i_uid_write(inode, sd_v1_uid(sd)); in init_inode()
1266 i_gid_write(inode, sd_v1_gid(sd)); in init_inode()
1267 inode->i_size = sd_v1_size(sd); in init_inode()
1268 inode->i_atime.tv_sec = sd_v1_atime(sd); in init_inode()
1269 inode->i_mtime.tv_sec = sd_v1_mtime(sd); in init_inode()
1270 inode->i_ctime.tv_sec = sd_v1_ctime(sd); in init_inode()
1275 inode->i_blocks = sd_v1_blocks(sd); in init_inode()
[all …]
/fs/ntfs3/
Dfsntfs.c973 static inline __le32 security_hash(const void *sd, size_t bytes) in security_hash() argument
976 const __le32 *ptr = sd; in security_hash()
1785 bool is_sd_valid(const struct SECURITY_DESCRIPTOR_RELATIVE *sd, u32 len) in is_sd_valid() argument
1792 if (sd->Revision != 1) in is_sd_valid()
1795 if (sd->Sbz1) in is_sd_valid()
1798 if (!(sd->Control & SE_SELF_RELATIVE)) in is_sd_valid()
1801 sd_owner = le32_to_cpu(sd->Owner); in is_sd_valid()
1803 const struct SID *owner = Add2Ptr(sd, sd_owner); in is_sd_valid()
1815 sd_group = le32_to_cpu(sd->Group); in is_sd_valid()
1817 const struct SID *group = Add2Ptr(sd, sd_group); in is_sd_valid()
[all …]
Dxattr.c799 struct SECURITY_DESCRIPTOR_RELATIVE *sd = NULL; in ntfs_getxattr() local
813 &sd, &sd_size); in ntfs_getxattr()
817 if (!is_sd_valid(sd, sd_size)) { in ntfs_getxattr()
830 memcpy(buffer, sd, sd_size); in ntfs_getxattr()
832 kfree(sd); in ntfs_getxattr()
Dntfs_fs.h632 bool is_sd_valid(const struct SECURITY_DESCRIPTOR_RELATIVE *sd, u32 len);
635 struct SECURITY_DESCRIPTOR_RELATIVE **sd,
638 const struct SECURITY_DESCRIPTOR_RELATIVE *sd,
Dinode.c1219 const void *sd; in ntfs_create_inode() local
1325 sd = s_default_security; in ntfs_create_inode()
1334 !ntfs_insert_security(sbi, sd, sd_size, in ntfs_create_inode()
1403 memcpy(Add2Ptr(attr, SIZEOF_RESIDENT), sd, sd_size); in ntfs_create_inode()
/fs/cifs/
Dmisc.c1207 struct super_cb_data *sd = arg; in tcp_super_cb() local
1208 struct TCP_Server_Info *server = sd->data; in tcp_super_cb()
1212 if (sd->sb) in tcp_super_cb()
1218 sd->sb = sb; in tcp_super_cb()
1224 struct super_cb_data sd = { in __cifs_get_super() local
1233 iterate_supers_type(*fs_type, f, &sd); in __cifs_get_super()
1234 if (sd.sb) { in __cifs_get_super()
1240 cifs_sb_active(sd.sb); in __cifs_get_super()
1241 return sd.sb; in __cifs_get_super()
Dnetmisc.c979 SMB_DATE *sd = (SMB_DATE *)&date; in cnvrtDosUnixTm() local
991 day = sd->Day; in cnvrtDosUnixTm()
992 month = sd->Month; in cnvrtDosUnixTm()
1001 year = sd->Year; in cnvrtDosUnixTm()
Dsmb2pdu.c2400 owner_offset = ptr - (__u8 *)&buf->sd; in create_sd_buf()
2401 buf->sd.OffsetOwner = cpu_to_le32(owner_offset); in create_sd_buf()
2403 buf->sd.OffsetGroup = cpu_to_le32(group_offset); in create_sd_buf()
2408 buf->sd.OffsetOwner = 0; in create_sd_buf()
2409 buf->sd.OffsetGroup = 0; in create_sd_buf()
2412 buf->ccontext.DataOffset = cpu_to_le16(offsetof(struct crt_sd_ctxt, sd)); in create_sd_buf()
2420 buf->sd.Revision = 1; /* Must be one see MS-DTYP 2.4.6 */ in create_sd_buf()
2426 buf->sd.Control = cpu_to_le16(ACL_CONTROL_SR | ACL_CONTROL_DP); in create_sd_buf()
2429 buf->sd.OffsetDacl = cpu_to_le32(ptr - (__u8 *)&buf->sd); in create_sd_buf()
2460 buf->ccontext.DataLength = cpu_to_le32(ptr - (__u8 *)&buf->sd); in create_sd_buf()
Dsmb2pdu.h997 struct smb3_sd sd; member
/fs/nfsd/
Dvfs.c837 struct splice_desc *sd) in nfsd_splice_actor() argument
839 struct svc_rqst *rqstp = sd->u.data; in nfsd_splice_actor()
849 rqstp->rq_res.page_len += sd->len; in nfsd_splice_actor()
851 return sd->len; in nfsd_splice_actor()
855 struct splice_desc *sd) in nfsd_direct_splice_actor() argument
857 return __splice_from_pipe(pipe, sd, nfsd_splice_actor); in nfsd_direct_splice_actor()
891 struct splice_desc sd = { in nfsd_splice_read() local
901 host_err = splice_direct_to_actor(file, &sd, nfsd_direct_splice_actor); in nfsd_splice_read()
/fs/befs/
Ddebug.c207 befs_dump_small_data(const struct super_block *sb, befs_small_data *sd)