Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.kernel > #1365929
| From | Christoph Hellwig <hch@infradead.org> |
|---|---|
| Newsgroups | linux.kernel |
| Subject | Re: [PATCH 5/8] fs: xfs: replace BIO_MAX_SECTORS with BIO_MAX_PAGES |
| Date | 2016-03-29 09:30 +0200 |
| Message-ID | <rhWga-2Ka-3@gated-at.bofh.it> (permalink) |
| References | <rfnPz-qn-7@gated-at.bofh.it> <rfnPA-qn-19@gated-at.bofh.it> |
| Organization | linux.* mail to news gateway |
> + nr_pages = BIO_MAX_PAGES; > if (nr_pages > total_nr_pages) > nr_pages = total_nr_pages; Looks reasonable, but the whole thing could simply become: nr_pages = min(total_nr_pages, BIO_MAX_PAGES);
Back to linux.kernel | Previous | Next — Previous in thread | Find similar | Unroll thread
[PATCH 5/8] fs: xfs: replace BIO_MAX_SECTORS with BIO_MAX_PAGES Ming Lei <ming.lei@canonical.com> - 2016-03-22 07:20 +0100 Re: [PATCH 5/8] fs: xfs: replace BIO_MAX_SECTORS with BIO_MAX_PAGES Christoph Hellwig <hch@infradead.org> - 2016-03-29 09:30 +0200
csiph-web