diff options
author | Eric W. Biederman <ebiederm@xmission.com> | 2013-01-31 03:36:06 (GMT) |
---|---|---|
committer | Eric W. Biederman <ebiederm@xmission.com> | 2013-02-13 14:00:54 (GMT) |
commit | 17499e332962e495b3ee2e5507e09b853ed6f607 (patch) | |
tree | b3765f8203c071367f56baf547dad104c6d9297d /fs/coda/coda_fs_i.h | |
parent | d83f5901bc0cd7131a3b8534169ee889efc4c257 (diff) | |
download | linux-fsl-qoriq-17499e332962e495b3ee2e5507e09b853ed6f607.tar.xz |
coda: Cache permisions in struct coda_inode_info in a kuid_t.
- Change c_uid in struct coda_indoe_info from a vuid_t to a kuid_t.
- Initialize c_uid to GLOBAL_ROOT_UID instead of 0.
- Use uid_eq to compare cached kuids.
Cc: Jan Harkes <jaharkes@cs.cmu.edu>
Signed-off-by: "Eric W. Biederman" <ebiederm@xmission.com>
Diffstat (limited to 'fs/coda/coda_fs_i.h')
-rw-r--r-- | fs/coda/coda_fs_i.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/coda/coda_fs_i.h b/fs/coda/coda_fs_i.h index b24fdfd..c640752 100644 --- a/fs/coda/coda_fs_i.h +++ b/fs/coda/coda_fs_i.h @@ -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; |