Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 297976
b: refs/heads/master
c: a7103b9
h: refs/heads/master
v: v3
  • Loading branch information
Jeff Layton committed Mar 23, 2012
1 parent 5e697b5 commit fa0338a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 35ebb4155f2f9d5580679d368aea81a5933db481
refs/heads/master: a7103b99e4cc00b9d40f6bad77389f9e2341820a
4 changes: 1 addition & 3 deletions trunk/fs/cifs/file.c
Original file line number Diff line number Diff line change
Expand Up @@ -2071,9 +2071,7 @@ size_t get_numpages(const size_t wsize, const size_t len, size_t *cur_len)
size_t clen;

clen = min_t(const size_t, len, wsize);
num_pages = clen / PAGE_CACHE_SIZE;
if (clen % PAGE_CACHE_SIZE)
num_pages++;
num_pages = DIV_ROUND_UP(clen, PAGE_SIZE);

if (cur_len)
*cur_len = clen;
Expand Down

0 comments on commit fa0338a

Please sign in to comment.