• Home
  • Raw
  • Download

Lines Matching refs:sr

1842 				     struct ocfs2_space_resv *sr,  in __ocfs2_change_file_space()  argument
1878 switch (sr->l_whence) { in __ocfs2_change_file_space()
1882 sr->l_start += f_pos; in __ocfs2_change_file_space()
1885 sr->l_start += i_size_read(inode); in __ocfs2_change_file_space()
1891 sr->l_whence = 0; in __ocfs2_change_file_space()
1893 llen = sr->l_len > 0 ? sr->l_len - 1 : sr->l_len; in __ocfs2_change_file_space()
1895 if (sr->l_start < 0 in __ocfs2_change_file_space()
1896 || sr->l_start > max_off in __ocfs2_change_file_space()
1897 || (sr->l_start + llen) < 0 in __ocfs2_change_file_space()
1898 || (sr->l_start + llen) > max_off) { in __ocfs2_change_file_space()
1902 size = sr->l_start + sr->l_len; in __ocfs2_change_file_space()
1906 if (sr->l_len <= 0) { in __ocfs2_change_file_space()
1928 ret = ocfs2_allocate_unwritten_extents(inode, sr->l_start, in __ocfs2_change_file_space()
1929 sr->l_len); in __ocfs2_change_file_space()
1933 ret = ocfs2_remove_inode_range(inode, di_bh, sr->l_start, in __ocfs2_change_file_space()
1934 sr->l_len); in __ocfs2_change_file_space()
1980 struct ocfs2_space_resv *sr) in ocfs2_change_file_space() argument
2002 ret = __ocfs2_change_file_space(file, inode, file->f_pos, cmd, sr, 0); in ocfs2_change_file_space()
2012 struct ocfs2_space_resv sr; in ocfs2_fallocate() local
2027 sr.l_whence = 0; in ocfs2_fallocate()
2028 sr.l_start = (s64)offset; in ocfs2_fallocate()
2029 sr.l_len = (s64)len; in ocfs2_fallocate()
2031 return __ocfs2_change_file_space(NULL, inode, offset, cmd, &sr, in ocfs2_fallocate()