|
@@ -32,8 +32,8 @@ void coda_cache_enter(struct inode *inode, int mask)
|
|
struct coda_inode_info *cii = ITOC(inode);
|
|
struct coda_inode_info *cii = ITOC(inode);
|
|
|
|
|
|
cii->c_cached_epoch = atomic_read(&permission_epoch);
|
|
cii->c_cached_epoch = atomic_read(&permission_epoch);
|
|
- if (cii->c_uid != current->fsuid) {
|
|
|
|
- cii->c_uid = current->fsuid;
|
|
|
|
|
|
+ if (cii->c_uid != current_fsuid()) {
|
|
|
|
+ cii->c_uid = current_fsuid();
|
|
cii->c_cached_perm = mask;
|
|
cii->c_cached_perm = mask;
|
|
} else
|
|
} else
|
|
cii->c_cached_perm |= mask;
|
|
cii->c_cached_perm |= mask;
|
|
@@ -60,7 +60,7 @@ int coda_cache_check(struct inode *inode, int mask)
|
|
int hit;
|
|
int hit;
|
|
|
|
|
|
hit = (mask & cii->c_cached_perm) == mask &&
|
|
hit = (mask & cii->c_cached_perm) == mask &&
|
|
- cii->c_uid == current->fsuid &&
|
|
|
|
|
|
+ cii->c_uid == current_fsuid() &&
|
|
cii->c_cached_epoch == atomic_read(&permission_epoch);
|
|
cii->c_cached_epoch == atomic_read(&permission_epoch);
|
|
|
|
|
|
return hit;
|
|
return hit;
|