summaryrefslogtreecommitdiffstats
path: root/drivers/block/loop.c
AgeCommit message (Expand)Author
2020-11-12loop: Fix occasional uevent dropPetr Vorel
2020-09-01block: replace bd_set_size with bd_set_nr_sectorsChristoph Hellwig
2020-08-28Merge tag 'block-5.9-2020-08-28' of git://git.kernel.dk/linux-blockLinus Torvalds
2020-08-26loop: Set correct device size when using LOOP_CONFIGUREMartijn Coenen
2020-08-24Merge tag 'io_uring-5.9-2020-08-23' of git://git.kernel.dk/linux-blockLinus Torvalds
2020-08-23treewide: Use fallthrough pseudo-keywordGustavo A. R. Silva
2020-08-17block: loop: set discard granularity and alignment for block device backed loopMing Lei
2020-08-11loop: unset GENHD_FL_NO_PART_SCAN on LOOP_CONFIGURELennart Poettering
2020-07-16block: use bd_prepare_to_claim directly in the loop driverChristoph Hellwig
2020-06-24loop: be paranoid on exit and prevent new additions / removalsLuis Chamberlain
2020-06-24blk-mq: move failure injection out of blk_mq_complete_requestChristoph Hellwig
2020-06-18loop: replace kill_bdev with invalidate_bdevZheng Bin
2020-06-11Merge tag 'block-5.8-2020-06-11' of git://git.kernel.dk/linux-blockLinus Torvalds
2020-06-04loop: Fix wrong masking of status flagsMartijn Coenen
2020-06-02Merge tag 'vfs-5.8-merge-1' of git://git.kernel.org/pub/scm/fs/xfs/xfs-linuxLinus Torvalds
2020-06-02Merge tag 'for-5.8/drivers-2020-06-01' of git://git.kernel.dk/linux-blockLinus Torvalds
2020-06-02Merge tag 'for-5.8/block-2020-06-01' of git://git.kernel.dk/linux-blockLinus Torvalds
2020-06-02mm/writeback: replace PF_LESS_THROTTLE with PF_LOCAL_THROTTLENeilBrown
2020-05-29blk-mq: drain I/O when all CPUs in a hctx are offlineMing Lei
2020-05-24loop: remove redundant assignment to variable errorColin Ian King
2020-05-21loop: Add LOOP_CONFIGURE ioctlMartijn Coenen
2020-05-21loop: Clean up LOOP_SET_STATUS lo_flags handlingMartijn Coenen
2020-05-21loop: Rework lo_ioctl() __user argument castingMartijn Coenen
2020-05-21loop: Move loop_set_status_from_info() and friends upMartijn Coenen
2020-05-21loop: Factor out configuring loop from statusMartijn Coenen
2020-05-21loop: Remove figure_loop_size()Martijn Coenen
2020-05-21loop: Refactor loop_set_status() size calculationMartijn Coenen
2020-05-21loop: Switch to set_capacity_revalidate_and_notify()Martijn Coenen
2020-05-21loop: Factor out setting loop device sizeMartijn Coenen
2020-05-21loop: Remove sector_t truncation checksMartijn Coenen
2020-05-21loop: Call loop_config_discard() only after new config is appliedMartijn Coenen
2020-05-04fs: Remove unneeded IS_DAX() check in io_is_direct()Ira Weiny
2020-04-03loop: Better discard support for block devicesEvan Green
2020-04-03loop: Report EOPNOTSUPP properlyEvan Green
2020-03-10loop: Only freeze block queue when needed.Martijn Coenen
2020-03-10loop: Only change blocksize when needed.Martijn Coenen
2019-11-14block: remove (__)blkdev_reread_part as an exported APIChristoph Hellwig
2019-11-01loop: fix no-unmap write-zeroes request behaviorDarrick J. Wong
2019-10-01loop: change queue block size to match when using DIOMartijn Coenen
2019-09-17Merge tag 'for-5.4/block-2019-09-16' of git://git.kernel.dk/linux-blockLinus Torvalds
2019-08-08loop: Add LOOP_SET_DIRECT_IO to compat ioctlAlessio Balsini
2019-08-08loop: set PF_MEMALLOC_NOIO for the worker threadMikulas Patocka
2019-07-30loop: Fix mount(2) failure due to race with LOOP_SET_FDJan Kara
2019-06-29block: never take page references for ITER_BVECChristoph Hellwig
2019-05-27loop: Don't change loop device under exclusive openerJan Kara
2019-04-01block: loop: mark bvec as ITER_BVEC_FLAG_NO_REFMing Lei
2019-04-01loop: properly observe rotational flag of underlying deviceHolger Hoffstätte
2019-03-18loop: access lo_backing_file only when the loop device is Lo_boundDongli Zhang
2019-02-22loop: set GENHD_FL_NO_PART_SCAN after blkdev_reread_part()Dongli Zhang
2019-02-22loop: do not print warn message if partition scan is successfulDongli Zhang
> = 0; my $P = $0; if (!GetOptions( 'input=s' => \$input_file, 'output=s' => \$output_file, 'section=s' => \$output_section, 'order!' => \$order, 'h|help|usage' => \$help, )) { die "$P: invalid argument - use --help if necessary\n"; } if ($help != 0) { usage(); exit 0; } sub usage { print <<EOT; usage: $P [options] <pattern matching regexes> --input => MAINTAINERS file to read (default: MAINTAINERS) --output => sorted MAINTAINERS file to write (default: MAINTAINERS.new) --section => new sorted MAINTAINERS file to write to (default: SECTION.new) --order => Use the preferred section content output ordering (default: 0) Preferred ordering of section output is: M: Person acting as a maintainer R: Person acting as a patch reviewer L: Mailing list where patches should be sent S: Maintenance status W: URI for general information Q: URI for patchwork tracking B: URI for bug tracking/submission C: URI for chat P: URI or file for subsystem specific coding styles T: SCM tree type and location F: File and directory pattern X: File and directory exclusion pattern N: File glob K: Keyword - patch content regex If <pattern match regexes> exist, then the sections that match the regexes are not written to the output file but are written to the section file. EOT } # sort comparison functions sub by_category($$) { my ($a, $b) = @_; $a = uc $a; $b = uc $b; # This always sorts last $a =~ s/THE REST/ZZZZZZ/g; $b =~ s/THE REST/ZZZZZZ/g; return $a cmp $b; } sub by_pattern($$) { my ($a, $b) = @_; my $preferred_order = 'MRLSWQBCPTFXNK'; my $a1 = uc(substr($a, 0, 1)); my $b1 = uc(substr($b, 0, 1)); my $a_index = index($preferred_order, $a1); my $b_index = index($preferred_order, $b1); $a_index = 1000 if ($a_index == -1); $b_index = 1000 if ($b_index == -1); if (($a1 =~ /^F$/ && $b1 =~ /^F$/) || ($a1 =~ /^X$/ && $b1 =~ /^X$/)) { return $a cmp $b; } if ($a_index < $b_index) { return -1; } elsif ($a_index == $b_index) { return 0; } else { return 1; } } sub trim { my $s = shift; $s =~ s/\s+$//; $s =~ s/^\s+//; return $s; } sub alpha_output { my ($hashref, $filename) = (@_); return if ! scalar(keys %$hashref); open(my $file, '>', "$filename") or die "$P: $filename: open failed - $!\n"; my $separator; foreach my $key (sort by_category keys %$hashref) { if ($key eq " ") { print $file $$hashref{$key}; } else { if (! defined $separator) { $separator = "\n"; } else { print $file $separator; } print $file $key . "\n"; if ($order) { foreach my $pattern (sort by_pattern split('\n', %$hashref{$key})) { print $file ($pattern . "\n"); } } else { foreach my $pattern (split('\n', %$hashref{$key})) { print $file ($pattern . "\n"); } } } } close($file); } sub file_input { my ($hashref, $filename) = (@_); my $lastline = ""; my $case = " "; $$hashref{$case} = ""; open(my $file, '<', "$filename") or die "$P: $filename: open failed - $!\n"; while (<$file>) { my $line = $_; # Pattern line? if ($line =~ m/^([A-Z]):\s*(.*)/) { $line = $1 . ":\t" . trim($2) . "\n"; if ($lastline eq "") { $$hashref{$case} = $$hashref{$case} . $line; next; } $case = trim($lastline); exists $$hashref{$case} and die "Header '$case' already exists"; $$hashref{$case} = $line; $lastline = ""; next; } if ($case eq " ") { $$hashref{$case} = $$hashref{$case} . $lastline; $lastline = $line; next; } trim($lastline) eq "" or die ("Odd non-pattern line '$lastline' for '$case'"); $lastline = $line; } $$hashref{$case} = $$hashref{$case} . $lastline; close($file); } my %hash; my %new_hash; file_input(\%hash, $input_file); foreach my $type (@ARGV) { foreach my $key (keys %hash) { if ($key =~ /$type/ || $hash{$key} =~ /$type/) { $new_hash{$key} = $hash{$key}; delete $hash{$key}; } } } alpha_output(\%hash, $output_file); alpha_output(\%new_hash, $output_section); exit(0);