Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 357839
b: refs/heads/master
c: 6d4a083
h: refs/heads/master
i:
  357837: 0ce4854
  357835: 4943453
  357831: a34b83c
  357823: 90570d1
v: v3
  • Loading branch information
Eric W. Biederman committed Feb 13, 2013
1 parent bdef1fb commit f80a525
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 8 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: 49418b2c28c901294f8b36ff14c766c9458c3623
refs/heads/master: 6d4a083205c27bc2e2a1c03dff4acf2fe457d1c4
2 changes: 1 addition & 1 deletion trunk/fs/cifs/cifsglob.h
Original file line number Diff line number Diff line change
Expand Up @@ -837,7 +837,7 @@ struct cifs_tcon {
*/
struct tcon_link {
struct rb_node tl_rbnode;
uid_t tl_uid;
kuid_t tl_uid;
unsigned long tl_flags;
#define TCON_LINK_MASTER 0
#define TCON_LINK_PENDING 1
Expand Down
12 changes: 6 additions & 6 deletions trunk/fs/cifs/connect.c
Original file line number Diff line number Diff line change
Expand Up @@ -3919,7 +3919,7 @@ cifs_set_vol_auth(struct smb_vol *vol, struct cifs_ses *ses)
}

static struct cifs_tcon *
cifs_construct_tcon(struct cifs_sb_info *cifs_sb, uid_t fsuid)
cifs_construct_tcon(struct cifs_sb_info *cifs_sb, kuid_t fsuid)
{
int rc;
struct cifs_tcon *master_tcon = cifs_sb_master_tcon(cifs_sb);
Expand Down Expand Up @@ -3989,17 +3989,17 @@ cifs_sb_tcon_pending_wait(void *unused)

/* find and return a tlink with given uid */
static struct tcon_link *
tlink_rb_search(struct rb_root *root, uid_t uid)
tlink_rb_search(struct rb_root *root, kuid_t uid)
{
struct rb_node *node = root->rb_node;
struct tcon_link *tlink;

while (node) {
tlink = rb_entry(node, struct tcon_link, tl_rbnode);

if (tlink->tl_uid > uid)
if (uid_gt(tlink->tl_uid, uid))
node = node->rb_left;
else if (tlink->tl_uid < uid)
else if (uid_lt(tlink->tl_uid, uid))
node = node->rb_right;
else
return tlink;
Expand All @@ -4018,7 +4018,7 @@ tlink_rb_insert(struct rb_root *root, struct tcon_link *new_tlink)
tlink = rb_entry(*new, struct tcon_link, tl_rbnode);
parent = *new;

if (tlink->tl_uid > new_tlink->tl_uid)
if (uid_gt(tlink->tl_uid, new_tlink->tl_uid))
new = &((*new)->rb_left);
else
new = &((*new)->rb_right);
Expand Down Expand Up @@ -4048,7 +4048,7 @@ struct tcon_link *
cifs_sb_tlink(struct cifs_sb_info *cifs_sb)
{
int ret;
uid_t fsuid = current_fsuid();
kuid_t fsuid = current_fsuid();
struct tcon_link *tlink, *newtlink;

if (!(cifs_sb->mnt_cifs_flags & CIFS_MOUNT_MULTIUSER))
Expand Down

0 comments on commit f80a525

Please sign in to comment.