Lines Matching refs:whence
291 pgoff_t pgofs, int whence) in __get_first_dirty_index() argument
296 if (whence != SEEK_DATA) in __get_first_dirty_index()
309 int whence) in __found_offset() argument
311 switch (whence) { in __found_offset()
325 static loff_t f2fs_seek_block(struct file *file, loff_t offset, int whence) in f2fs_seek_block() argument
343 if (whence == SEEK_HOLE) in f2fs_seek_block()
350 dirty = __get_first_dirty_index(inode->i_mapping, pgofs, whence); in f2fs_seek_block()
359 if (whence == SEEK_DATA) { in f2fs_seek_block()
377 if (__found_offset(blkaddr, dirty, pgofs, whence)) { in f2fs_seek_block()
385 if (whence == SEEK_DATA) in f2fs_seek_block()
388 if (whence == SEEK_HOLE && data_ofs > isize) in f2fs_seek_block()
397 static loff_t f2fs_llseek(struct file *file, loff_t offset, int whence) in f2fs_llseek() argument
402 switch (whence) { in f2fs_llseek()
406 return generic_file_llseek_size(file, offset, whence, in f2fs_llseek()
412 return f2fs_seek_block(file, offset, whence); in f2fs_llseek()