aboutsummaryrefslogtreecommitdiffstats
path: root/include/linux/fs.h
diff options
context:
space:
mode:
authorLachlan McIlroy <lachlan@redback.melbourne.sgi.com>2008-12-29 00:47:18 -0500
committerLachlan McIlroy <lachlan@redback.melbourne.sgi.com>2008-12-29 00:47:18 -0500
commit0a8c5395f90f06d128247844b2515c8bf3f2826b (patch)
treed95382dcdfa303b99d480c01763d6cb6767fdaca /include/linux/fs.h
parent25051158bbed127e8672b43396c71c5eb610e5f1 (diff)
parent3c92ec8ae91ecf59d88c798301833d7cf83f2179 (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.h8
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;
324struct kstatfs; 324struct kstatfs;
325struct vm_area_struct; 325struct vm_area_struct;
326struct vfsmount; 326struct vfsmount;
327struct cred;
327 328
328extern void __init inode_init(void); 329extern void __init inode_init(void);
329extern void __init inode_init_early(void); 330extern 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(&current->fs_excl) 1203#define has_fs_excl() atomic_read(&current->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... */
1208extern void lock_super(struct super_block *); 1209extern void lock_super(struct super_block *);
@@ -1682,7 +1683,8 @@ extern int do_truncate(struct dentry *, loff_t start, unsigned int time_attrs,
1682extern long do_sys_open(int dfd, const char __user *filename, int flags, 1683extern long do_sys_open(int dfd, const char __user *filename, int flags,
1683 int mode); 1684 int mode);
1684extern struct file *filp_open(const char *, int, int); 1685extern struct file *filp_open(const char *, int, int);
1685extern struct file * dentry_open(struct dentry *, struct vfsmount *, int); 1686extern struct file * dentry_open(struct dentry *, struct vfsmount *, int,
1687 const struct cred *);
1686extern int filp_close(struct file *, fl_owner_t id); 1688extern int filp_close(struct file *, fl_owner_t id);
1687extern char * getname(const char __user *); 1689extern char * getname(const char __user *);
1688 1690