+ fs-direct-io-remove-redundant-comparison.patch added to -mm tree
Subject: + fs-direct-io-remove-redundant-comparison.patch added to -mm tree
To: [email protected],[email protected],[email protected]
From: [email protected]
Date: Fri, 21 Feb 2014 12:24:28 -0800
The patch titled
Subject: fs/direct-io: remove redundant comparison
has been added to the -mm tree. Its filename is
fs-direct-io-remove-redundant-comparison.patch
This patch should soon appear at
http://ozlabs.org/~akpm/mmots/broken-out/fs-direct-io-remove-redundant-comparison.patch
and later at
http://ozlabs.org/~akpm/mmotm/broken-out/fs-direct-io-remove-redundant-comparison.patch
Before you just go and hit "reply", please:
a) Consider who else should be cc'ed
b) Prefer to cc a suitable mailing list as well
c) Ideally: find the original patch on the mailing list and do a reply-to-all to that, adding suitable additional cc's
*** Remember to use Documentation/SubmitChecklist when testing your code ***
The -mm tree is included into linux-next and is updated there every 3-4 working days
------------------------------------------------------
From: Gu Zheng <[email protected]>
Subject: fs/direct-io: remove redundant comparison
The return value of bio_get_nr_vecs() cannot be bigger than BIO_MAX_PAGES, so we can remove redundant the comparison between nr_pages and BIO_MAX_PAGES.
---
fs/direct-io.c | 1 - 1 file changed, 1 deletion(-)
fs/direct-io.c renamed from fs/direct-io.c~fs-direct-io-remove-redundant-comparison +0 -1
@@ -664,7 +664,6 @@ static inline int dio_new_bio(struct dio goto out; sector = start_sector << (sdio->blkbits -9 ); nr_pages =min (sdio->pages_in_io,bio_get_nr_vecs (map_bh->b_bdev)); - nr_pages =min (nr_pages,BIO_MAX_PAGES );BUG_ON (nr_pages <=0 );dio_bio_alloc (dio, sdio, map_bh->b_bdev, sector, nr_pages); sdio->boundary =0 ;
_
Patches currently in -mm which might be from [email protected] are
fs-direct-io-remove-redundant-comparison.patch