Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 54659
b: refs/heads/master
c: 1525dcc
h: refs/heads/master
i:
  54657: aba8f08
  54655: 96fa050
v: v3
  • Loading branch information
Milind Arun Choudhary authored and Linus Torvalds committed May 8, 2007
1 parent 6ee4fe4 commit f3ae10b
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 5 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: 022a1692444cd683ef42f637cc717db4d8fd9378
refs/heads/master: 1525dccbc248b87568f2477f1b2d417b69d418c3
7 changes: 3 additions & 4 deletions trunk/fs/smbfs/request.c
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
* Please add a note about your changes to smbfs in the ChangeLog file.
*/

#include <linux/kernel.h>
#include <linux/types.h>
#include <linux/fs.h>
#include <linux/slab.h>
Expand All @@ -22,8 +23,6 @@
/* #define SMB_SLAB_DEBUG (SLAB_RED_ZONE | SLAB_POISON) */
#define SMB_SLAB_DEBUG 0

#define ROUND_UP(x) (((x)+3) & ~3)

/* cache for request structures */
static struct kmem_cache *req_cachep;

Expand Down Expand Up @@ -200,8 +199,8 @@ static int smb_setup_trans2request(struct smb_request *req)

const int smb_parameters = 15;
const int header = SMB_HEADER_LEN + 2 * smb_parameters + 2;
const int oparam = ROUND_UP(header + 3);
const int odata = ROUND_UP(oparam + req->rq_lparm);
const int oparam = ALIGN(header + 3, sizeof(u32));
const int odata = ALIGN(oparam + req->rq_lparm, sizeof(u32));
const int bcc = (req->rq_data ? odata + req->rq_ldata :
oparam + req->rq_lparm) - header;

Expand Down

0 comments on commit f3ae10b

Please sign in to comment.