Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 357779
b: refs/heads/master
c: 17499e3
h: refs/heads/master
i:
  357777: 240fcd2
  357775: 9e6770c
v: v3
  • Loading branch information
Eric W. Biederman committed Feb 13, 2013
1 parent 252fb1c commit 53ba46e
Show file tree
Hide file tree
Showing 4 changed files with 5 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: d83f5901bc0cd7131a3b8534169ee889efc4c257
refs/heads/master: 17499e332962e495b3ee2e5507e09b853ed6f607
4 changes: 2 additions & 2 deletions trunk/fs/coda/cache.c
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ void coda_cache_enter(struct inode *inode, int mask)

spin_lock(&cii->c_lock);
cii->c_cached_epoch = atomic_read(&permission_epoch);
if (cii->c_uid != current_fsuid()) {
if (!uid_eq(cii->c_uid, current_fsuid())) {
cii->c_uid = current_fsuid();
cii->c_cached_perm = mask;
} else
Expand Down Expand Up @@ -65,7 +65,7 @@ int coda_cache_check(struct inode *inode, int mask)

spin_lock(&cii->c_lock);
hit = (mask & cii->c_cached_perm) == mask &&
cii->c_uid == current_fsuid() &&
uid_eq(cii->c_uid, current_fsuid()) &&
cii->c_cached_epoch == atomic_read(&permission_epoch);
spin_unlock(&cii->c_lock);

Expand Down
2 changes: 1 addition & 1 deletion trunk/fs/coda/coda_fs_i.h
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ struct coda_inode_info {
u_short c_flags; /* flags (see below) */
unsigned int c_mapcount; /* nr of times this inode is mapped */
unsigned int c_cached_epoch; /* epoch for cached permissions */
vuid_t c_uid; /* fsuid for cached permissions */
kuid_t c_uid; /* fsuid for cached permissions */
unsigned int c_cached_perm; /* cached access permissions */
spinlock_t c_lock;
struct inode vfs_inode;
Expand Down
2 changes: 1 addition & 1 deletion trunk/fs/coda/inode.c
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ static struct inode *coda_alloc_inode(struct super_block *sb)
return NULL;
memset(&ei->c_fid, 0, sizeof(struct CodaFid));
ei->c_flags = 0;
ei->c_uid = 0;
ei->c_uid = GLOBAL_ROOT_UID;
ei->c_cached_perm = 0;
spin_lock_init(&ei->c_lock);
return &ei->vfs_inode;
Expand Down

0 comments on commit 53ba46e

Please sign in to comment.