Lines Matching refs:flag
1428 static void f2fs_map_lock(struct f2fs_sb_info *sbi, int flag) in f2fs_map_lock() argument
1430 if (flag == F2FS_GET_BLOCK_PRE_AIO) in f2fs_map_lock()
1436 static void f2fs_map_unlock(struct f2fs_sb_info *sbi, int flag) in f2fs_map_unlock() argument
1438 if (flag == F2FS_GET_BLOCK_PRE_AIO) in f2fs_map_unlock()
1481 struct f2fs_map_blocks *map, int flag) in f2fs_map_blocks_cached() argument
1498 if (flag == F2FS_GET_BLOCK_DIO) in f2fs_map_blocks_cached()
1502 if (f2fs_allow_multi_device_dio(sbi, flag)) { in f2fs_map_blocks_cached()
1520 int f2fs_map_blocks(struct inode *inode, struct f2fs_map_blocks *map, int flag) in f2fs_map_blocks() argument
1538 if (!map->m_may_create && f2fs_map_blocks_cached(inode, map, flag)) in f2fs_map_blocks()
1543 f2fs_allow_multi_device_dio(F2FS_I_SB(inode), flag); in f2fs_map_blocks()
1554 f2fs_map_lock(sbi, flag); in f2fs_map_blocks()
1560 if (flag == F2FS_GET_BLOCK_BMAP) in f2fs_map_blocks()
1584 (is_hole || (f2fs_lfs_mode(sbi) && flag == F2FS_GET_BLOCK_DIO))) { in f2fs_map_blocks()
1590 switch (flag) { in f2fs_map_blocks()
1602 if (flag == F2FS_GET_BLOCK_PRE_DIO) in f2fs_map_blocks()
1624 switch (flag) { in f2fs_map_blocks()
1645 if (flag == F2FS_GET_BLOCK_PRE_AIO) in f2fs_map_blocks()
1665 flag == F2FS_GET_BLOCK_PRE_DIO) { in f2fs_map_blocks()
1679 if (flag == F2FS_GET_BLOCK_PRE_AIO && in f2fs_map_blocks()
1700 if (flag == F2FS_GET_BLOCK_PRECACHE) { in f2fs_map_blocks()
1713 f2fs_map_unlock(sbi, flag); in f2fs_map_blocks()
1720 if (flag == F2FS_GET_BLOCK_DIO && map->m_flags & F2FS_MAP_MAPPED) { in f2fs_map_blocks()
1745 if (flag == F2FS_GET_BLOCK_PRECACHE) { in f2fs_map_blocks()
1759 f2fs_map_unlock(sbi, flag); in f2fs_map_blocks()
1763 trace_f2fs_map_blocks(inode, map, flag, err); in f2fs_map_blocks()
3361 int flag = F2FS_GET_BLOCK_PRE_AIO; in prepare_write_begin() local
3374 flag = F2FS_GET_BLOCK_DEFAULT; in prepare_write_begin()
3375 f2fs_map_lock(sbi, flag); in prepare_write_begin()
3378 f2fs_map_lock(sbi, flag); in prepare_write_begin()
3418 WARN_ON(flag != F2FS_GET_BLOCK_PRE_AIO); in prepare_write_begin()
3431 f2fs_map_unlock(sbi, flag); in prepare_write_begin()