aboutsummaryrefslogtreecommitdiffstats
path: root/fs/cifs/file.c
diff options
context:
space:
mode:
Diffstat (limited to 'fs/cifs/file.c')
-rw-r--r--fs/cifs/file.c9
1 files changed, 7 insertions, 2 deletions
diff --git a/fs/cifs/file.c b/fs/cifs/file.c
index 94d5b49049df..5f1b707188f8 100644
--- a/fs/cifs/file.c
+++ b/fs/cifs/file.c
@@ -1720,7 +1720,9 @@ static int cifs_readpages(struct file *file, struct address_space *mapping,
1720 pTcon = cifs_sb->tcon; 1720 pTcon = cifs_sb->tcon;
1721 1721
1722 pagevec_init(&lru_pvec, 0); 1722 pagevec_init(&lru_pvec, 0);
1723 1723#ifdef CONFIG_CIFS_DEBUG2
1724 cFYI(1,("rpages: num pages %d", num_pages));
1725#endif
1724 for (i = 0; i < num_pages; ) { 1726 for (i = 0; i < num_pages; ) {
1725 unsigned contig_pages; 1727 unsigned contig_pages;
1726 struct page *tmp_page; 1728 struct page *tmp_page;
@@ -1753,7 +1755,10 @@ static int cifs_readpages(struct file *file, struct address_space *mapping,
1753 /* Read size needs to be in multiples of one page */ 1755 /* Read size needs to be in multiples of one page */
1754 read_size = min_t(const unsigned int, read_size, 1756 read_size = min_t(const unsigned int, read_size,
1755 cifs_sb->rsize & PAGE_CACHE_MASK); 1757 cifs_sb->rsize & PAGE_CACHE_MASK);
1756 1758#ifdef CONFIG_CIFS_DEBUG2
1759 cFYI(1,("rpages: read size 0x%x contiguous pages %d",
1760 read_size, contig_pages));
1761#endif
1757 rc = -EAGAIN; 1762 rc = -EAGAIN;
1758 while (rc == -EAGAIN) { 1763 while (rc == -EAGAIN) {
1759 if ((open_file->invalidHandle) && 1764 if ((open_file->invalidHandle) &&