Lines Matching full:amount
31 * searching for one in which the amount of total space minus the amount of
149 * @size: The amount of data to write
186 unsigned int amount; in gfs2_dir_write_data() local
189 amount = size - copied; in gfs2_dir_write_data()
190 if (amount > sdp->sd_sb.sb_bsize - o) in gfs2_dir_write_data()
191 amount = sdp->sd_sb.sb_bsize - o; in gfs2_dir_write_data()
204 if (amount == sdp->sd_jbsize || new) in gfs2_dir_write_data()
213 memcpy(bh->b_data + o, buf, amount); in gfs2_dir_write_data()
216 buf += amount; in gfs2_dir_write_data()
217 copied += amount; in gfs2_dir_write_data()
265 * @size: Amount of data to transfer
267 * Returns: The amount of data actually copied or the error
289 unsigned int amount; in gfs2_dir_read_data() local
293 amount = size - copied; in gfs2_dir_read_data()
294 if (amount > sdp->sd_sb.sb_bsize - o) in gfs2_dir_read_data()
295 amount = sdp->sd_sb.sb_bsize - o; in gfs2_dir_read_data()
317 memcpy(buf, bh->b_data + o, amount); in gfs2_dir_read_data()
319 buf += (amount/sizeof(__be64)); in gfs2_dir_read_data()
320 copied += amount; in gfs2_dir_read_data()