Lines Matching refs:lo_flags
220 lo->lo_flags |= LO_FLAGS_DIRECT_IO; in __loop_update_dio()
223 lo->lo_flags &= ~LO_FLAGS_DIRECT_IO; in __loop_update_dio()
701 if (!(lo->lo_flags & LO_FLAGS_READ_ONLY)) in loop_change_fd()
732 if (lo->lo_flags & LO_FLAGS_PARTSCAN) in loop_change_fd()
797 int autoclear = (lo->lo_flags & LO_FLAGS_AUTOCLEAR); in loop_attr_autoclear_show()
804 int partscan = (lo->lo_flags & LO_FLAGS_PARTSCAN); in loop_attr_partscan_show()
811 int dio = (lo->lo_flags & LO_FLAGS_DIRECT_IO); in loop_attr_dio_show()
910 int lo_flags = 0; in loop_set_fd() local
935 lo_flags |= LO_FLAGS_READ_ONLY; in loop_set_fd()
947 set_device_ro(bdev, (lo_flags & LO_FLAGS_READ_ONLY) != 0); in loop_set_fd()
951 lo->lo_flags = lo_flags; in loop_set_fd()
959 if (!(lo_flags & LO_FLAGS_READ_ONLY) && file->f_op->fsync) in loop_set_fd()
974 lo->lo_flags |= LO_FLAGS_PARTSCAN; in loop_set_fd()
975 if (lo->lo_flags & LO_FLAGS_PARTSCAN) in loop_set_fd()
1049 lo->lo_flags |= LO_FLAGS_AUTOCLEAR; in loop_clr_fd()
1097 if (lo->lo_flags & LO_FLAGS_PARTSCAN && bdev) in loop_clr_fd()
1099 lo->lo_flags = 0; in loop_clr_fd()
1176 if ((lo->lo_flags & LO_FLAGS_AUTOCLEAR) != in loop_set_status()
1177 (info->lo_flags & LO_FLAGS_AUTOCLEAR)) in loop_set_status()
1178 lo->lo_flags ^= LO_FLAGS_AUTOCLEAR; in loop_set_status()
1195 if (!err && (info->lo_flags & LO_FLAGS_PARTSCAN) && in loop_set_status()
1196 !(lo->lo_flags & LO_FLAGS_PARTSCAN)) { in loop_set_status()
1197 lo->lo_flags |= LO_FLAGS_PARTSCAN; in loop_set_status()
1221 info->lo_flags = lo->lo_flags; in loop_get_status()
1258 info64->lo_flags = info->lo_flags; in loop_info64_from_old()
1279 info->lo_flags = info64->lo_flags; in loop_info64_to_old()
1473 compat_int_t lo_flags; /* ioctl r/o */ member
1502 info64->lo_flags = info.lo_flags; in loop_info64_from_compat()
1531 info.lo_flags = info64->lo_flags; in loop_info64_to_compat()
1652 if (lo->lo_flags & LO_FLAGS_AUTOCLEAR) { in __lo_release()
1781 if (write && (lo->lo_flags & LO_FLAGS_READ_ONLY)) { in loop_handle_cmd()