Lines Matching refs:loop_flags
396 uint32_t loop_flags, in loop_device_make_internal() argument
476 if (FLAGS_SET(loop_flags, LO_FLAGS_DIRECT_IO) != FLAGS_SET(f_flags, O_DIRECT)) { in loop_device_make_internal()
484 …direct_io_fd = fd_reopen(fd, (FLAGS_SET(loop_flags, LO_FLAGS_DIRECT_IO) ? O_DIRECT : 0)|O_CLOEXEC|… in loop_device_make_internal()
486 if (!FLAGS_SET(loop_flags, LO_FLAGS_DIRECT_IO)) in loop_device_make_internal()
491 loop_flags &= ~LO_FLAGS_DIRECT_IO; in loop_device_make_internal()
507 ….lo_flags = (loop_flags & ~LO_FLAGS_READ_ONLY) | ((open_flags & O_ACCMODE) == O_RDONLY ? LO_FLAGS_… in loop_device_make_internal()
576 if (FLAGS_SET(loop_flags, LO_FLAGS_DIRECT_IO)) { in loop_device_make_internal()
630 static uint32_t loop_flags_mangle(uint32_t loop_flags) { in loop_flags_mangle() argument
637 …return UPDATE_FLAG(loop_flags, LO_FLAGS_DIRECT_IO, r != 0); /* Turn on LO_FLAGS_DIRECT_IO by defau… in loop_flags_mangle()
645 uint32_t loop_flags, in loop_device_make() argument
656 loop_flags_mangle(loop_flags), in loop_device_make()
663 uint32_t loop_flags, in loop_device_make_by_path() argument
677 loop_flags = loop_flags_mangle(loop_flags); in loop_device_make_by_path()
683 direct_flags = FLAGS_SET(loop_flags, LO_FLAGS_DIRECT_IO) ? O_DIRECT : 0; in loop_device_make_by_path()
717 return loop_device_make_internal(fd, open_flags, 0, 0, loop_flags, ret); in loop_device_make_by_path()