Searched refs:sr (Results 1 – 5 of 5) sorted by relevance
/fs/ |
D | ioctl.c | 473 struct space_resv sr; in ioctl_preallocate() local 475 if (copy_from_user(&sr, argp, sizeof(sr))) in ioctl_preallocate() 478 switch (sr.l_whence) { in ioctl_preallocate() 482 sr.l_start += filp->f_pos; in ioctl_preallocate() 485 sr.l_start += i_size_read(inode); in ioctl_preallocate() 491 return vfs_fallocate(filp, FALLOC_FL_KEEP_SIZE, sr.l_start, sr.l_len); in ioctl_preallocate()
|
/fs/ocfs2/ |
D | file.c | 1859 struct ocfs2_space_resv *sr, in __ocfs2_change_file_space() argument 1895 switch (sr->l_whence) { in __ocfs2_change_file_space() 1899 sr->l_start += f_pos; in __ocfs2_change_file_space() 1902 sr->l_start += i_size_read(inode); in __ocfs2_change_file_space() 1908 sr->l_whence = 0; in __ocfs2_change_file_space() 1910 llen = sr->l_len > 0 ? sr->l_len - 1 : sr->l_len; in __ocfs2_change_file_space() 1912 if (sr->l_start < 0 in __ocfs2_change_file_space() 1913 || sr->l_start > max_off in __ocfs2_change_file_space() 1914 || (sr->l_start + llen) < 0 in __ocfs2_change_file_space() 1915 || (sr->l_start + llen) > max_off) { in __ocfs2_change_file_space() [all …]
|
D | ioctl.c | 842 struct ocfs2_space_resv sr; in ocfs2_ioctl() local 874 if (copy_from_user(&sr, (int __user *) arg, sizeof(sr))) in ocfs2_ioctl() 877 return ocfs2_change_file_space(filp, cmd, &sr); in ocfs2_ioctl()
|
D | file.h | 65 struct ocfs2_space_resv *sr);
|
/fs/nilfs2/ |
D | recovery.c | 134 struct nilfs_super_root *sr; in nilfs_read_super_root_block() local 145 sr = (struct nilfs_super_root *)bh_sr->b_data; in nilfs_read_super_root_block() 147 unsigned int bytes = le16_to_cpu(sr->sr_bytes); in nilfs_read_super_root_block() 154 nilfs, bh_sr, &crc, sizeof(sr->sr_sum), bytes, in nilfs_read_super_root_block() 159 if (crc != le32_to_cpu(sr->sr_sum)) { in nilfs_read_super_root_block()
|