diff options
author | Lachlan McIlroy <lachlan@redback.melbourne.sgi.com> | 2008-12-29 00:47:18 -0500 |
---|---|---|
committer | Lachlan McIlroy <lachlan@redback.melbourne.sgi.com> | 2008-12-29 00:47:18 -0500 |
commit | 0a8c5395f90f06d128247844b2515c8bf3f2826b (patch) | |
tree | d95382dcdfa303b99d480c01763d6cb6767fdaca /include/linux/fs.h | |
parent | 25051158bbed127e8672b43396c71c5eb610e5f1 (diff) | |
parent | 3c92ec8ae91ecf59d88c798301833d7cf83f2179 (diff) |
[XFS] Fix merge failures
Merge git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux-2.6
Conflicts:
fs/xfs/linux-2.6/xfs_cred.h
fs/xfs/linux-2.6/xfs_globals.h
fs/xfs/linux-2.6/xfs_ioctl.c
fs/xfs/xfs_vnodeops.h
Signed-off-by: Lachlan McIlroy <lachlan@sgi.com>
Diffstat (limited to 'include/linux/fs.h')
-rw-r--r-- | include/linux/fs.h | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/include/linux/fs.h b/include/linux/fs.h index 1ba7630e329c..001ded4845b4 100644 --- a/include/linux/fs.h +++ b/include/linux/fs.h | |||
@@ -324,6 +324,7 @@ struct poll_table_struct; | |||
324 | struct kstatfs; | 324 | struct kstatfs; |
325 | struct vm_area_struct; | 325 | struct vm_area_struct; |
326 | struct vfsmount; | 326 | struct vfsmount; |
327 | struct cred; | ||
327 | 328 | ||
328 | extern void __init inode_init(void); | 329 | extern void __init inode_init(void); |
329 | extern void __init inode_init_early(void); | 330 | extern void __init inode_init_early(void); |
@@ -835,7 +836,7 @@ struct file { | |||
835 | fmode_t f_mode; | 836 | fmode_t f_mode; |
836 | loff_t f_pos; | 837 | loff_t f_pos; |
837 | struct fown_struct f_owner; | 838 | struct fown_struct f_owner; |
838 | unsigned int f_uid, f_gid; | 839 | const struct cred *f_cred; |
839 | struct file_ra_state f_ra; | 840 | struct file_ra_state f_ra; |
840 | 841 | ||
841 | u64 f_version; | 842 | u64 f_version; |
@@ -1202,7 +1203,7 @@ enum { | |||
1202 | #define has_fs_excl() atomic_read(¤t->fs_excl) | 1203 | #define has_fs_excl() atomic_read(¤t->fs_excl) |
1203 | 1204 | ||
1204 | #define is_owner_or_cap(inode) \ | 1205 | #define is_owner_or_cap(inode) \ |
1205 | ((current->fsuid == (inode)->i_uid) || capable(CAP_FOWNER)) | 1206 | ((current_fsuid() == (inode)->i_uid) || capable(CAP_FOWNER)) |
1206 | 1207 | ||
1207 | /* not quite ready to be deprecated, but... */ | 1208 | /* not quite ready to be deprecated, but... */ |
1208 | extern void lock_super(struct super_block *); | 1209 | extern void lock_super(struct super_block *); |
@@ -1682,7 +1683,8 @@ extern int do_truncate(struct dentry *, loff_t start, unsigned int time_attrs, | |||
1682 | extern long do_sys_open(int dfd, const char __user *filename, int flags, | 1683 | extern long do_sys_open(int dfd, const char __user *filename, int flags, |
1683 | int mode); | 1684 | int mode); |
1684 | extern struct file *filp_open(const char *, int, int); | 1685 | extern struct file *filp_open(const char *, int, int); |
1685 | extern struct file * dentry_open(struct dentry *, struct vfsmount *, int); | 1686 | extern struct file * dentry_open(struct dentry *, struct vfsmount *, int, |
1687 | const struct cred *); | ||
1686 | extern int filp_close(struct file *, fl_owner_t id); | 1688 | extern int filp_close(struct file *, fl_owner_t id); |
1687 | extern char * getname(const char __user *); | 1689 | extern char * getname(const char __user *); |
1688 | 1690 | ||