Home
last modified time | relevance | path

Searched refs:sr (Results 1 – 6 of 6) sorted by relevance

/fs/ncpfs/
Dioctl.c369 struct ncp_setroot_ioctl sr; in __ncp_ioctl() local
380 sr.volNumber = NCP_FINFO(s_inode)->volNumber; in __ncp_ioctl()
381 sr.dirEntNum = NCP_FINFO(s_inode)->dirEntNum; in __ncp_ioctl()
382 sr.namespace = server->name_space[sr.volNumber]; in __ncp_ioctl()
389 sr.volNumber = -1; in __ncp_ioctl()
390 sr.namespace = 0; in __ncp_ioctl()
391 sr.dirEntNum = 0; in __ncp_ioctl()
395 if (!result && copy_to_user(argp, &sr, sizeof(sr))) in __ncp_ioctl()
402 struct ncp_setroot_ioctl sr; in __ncp_ioctl() local
408 if (copy_from_user(&sr, argp, sizeof(sr))) in __ncp_ioctl()
[all …]
/fs/
Dioctl.c428 struct space_resv sr; in ioctl_preallocate() local
430 if (copy_from_user(&sr, argp, sizeof(sr))) in ioctl_preallocate()
433 switch (sr.l_whence) { in ioctl_preallocate()
437 sr.l_start += filp->f_pos; in ioctl_preallocate()
440 sr.l_start += i_size_read(inode); in ioctl_preallocate()
446 return do_fallocate(filp, FALLOC_FL_KEEP_SIZE, sr.l_start, sr.l_len); in ioctl_preallocate()
/fs/ocfs2/
Dfile.c1833 struct ocfs2_space_resv *sr, in __ocfs2_change_file_space() argument
1869 switch (sr->l_whence) { in __ocfs2_change_file_space()
1873 sr->l_start += f_pos; in __ocfs2_change_file_space()
1876 sr->l_start += i_size_read(inode); in __ocfs2_change_file_space()
1882 sr->l_whence = 0; in __ocfs2_change_file_space()
1884 llen = sr->l_len > 0 ? sr->l_len - 1 : sr->l_len; in __ocfs2_change_file_space()
1886 if (sr->l_start < 0 in __ocfs2_change_file_space()
1887 || sr->l_start > max_off in __ocfs2_change_file_space()
1888 || (sr->l_start + llen) < 0 in __ocfs2_change_file_space()
1889 || (sr->l_start + llen) > max_off) { in __ocfs2_change_file_space()
[all …]
Dfile.h72 struct ocfs2_space_resv *sr);
Dioctl.c888 struct ocfs2_space_resv sr; in ocfs2_ioctl() local
918 if (copy_from_user(&sr, (int __user *) arg, sizeof(sr))) in ocfs2_ioctl()
921 return ocfs2_change_file_space(filp, cmd, &sr); in ocfs2_ioctl()
/fs/nilfs2/
Drecovery.c146 struct nilfs_super_root *sr; in nilfs_read_super_root_block() local
157 sr = (struct nilfs_super_root *)bh_sr->b_data; in nilfs_read_super_root_block()
159 unsigned bytes = le16_to_cpu(sr->sr_bytes); in nilfs_read_super_root_block()
166 nilfs, bh_sr, &crc, sizeof(sr->sr_sum), bytes, in nilfs_read_super_root_block()
171 if (crc != le32_to_cpu(sr->sr_sum)) { in nilfs_read_super_root_block()