diff options
Diffstat (limited to 'fs/xfs/linux-2.6')
| -rw-r--r-- | fs/xfs/linux-2.6/xfs_cred.h | 6 | ||||
| -rw-r--r-- | fs/xfs/linux-2.6/xfs_globals.h | 2 | 
2 files changed, 3 insertions, 5 deletions
diff --git a/fs/xfs/linux-2.6/xfs_cred.h b/fs/xfs/linux-2.6/xfs_cred.h index 293043a5573..8c022cd0ad6 100644 --- a/fs/xfs/linux-2.6/xfs_cred.h +++ b/fs/xfs/linux-2.6/xfs_cred.h @@ -23,11 +23,9 @@  /*   * Credentials   */ -typedef struct cred { -       /* EMPTY */ -} cred_t; +typedef const struct cred cred_t; -extern struct cred *sys_cred; +extern cred_t *sys_cred;  /* this is a hack.. (assumes sys_cred is the only cred_t in the system) */  static inline int capable_cred(cred_t *cr, int cid) diff --git a/fs/xfs/linux-2.6/xfs_globals.h b/fs/xfs/linux-2.6/xfs_globals.h index 2770b0085ee..6eda8a3eb6f 100644 --- a/fs/xfs/linux-2.6/xfs_globals.h +++ b/fs/xfs/linux-2.6/xfs_globals.h @@ -19,6 +19,6 @@  #define __XFS_GLOBALS_H__  extern uint64_t	xfs_panic_mask;		/* set to cause more panics */ -extern struct cred *sys_cred; +extern cred_t *sys_cred;  #endif	/* __XFS_GLOBALS_H__ */  |