]> bbs.cooldavid.org Git - net-next-2.6.git/blobdiff - fs/hppfs/hppfs.c
CRED: Use creds in file structs
[net-next-2.6.git] / fs / hppfs / hppfs.c
index 795e2c130ad77600e4002c976f7b24fd40d1e074..b278f7f52024ba556d32604ac61cab01e114f39b 100644 (file)
@@ -426,7 +426,7 @@ static int file_mode(int fmode)
 
 static int hppfs_open(struct inode *inode, struct file *file)
 {
-       const struct cred *cred = current_cred();
+       const struct cred *cred = file->f_cred;
        struct hppfs_private *data;
        struct vfsmount *proc_mnt;
        struct dentry *proc_dentry;
@@ -490,7 +490,7 @@ static int hppfs_open(struct inode *inode, struct file *file)
 
 static int hppfs_dir_open(struct inode *inode, struct file *file)
 {
-       const struct cred *cred = current_cred();
+       const struct cred *cred = file->f_cred;
        struct hppfs_private *data;
        struct vfsmount *proc_mnt;
        struct dentry *proc_dentry;