]> nv-tegra.nvidia Code Review - linux-2.6.git/commitdiff
[XFS] Fix merge conflict in fs/xfs/xfs_rename.c
authorLachlan McIlroy <lachlan@redback.melbourne.sgi.com>
Mon, 22 Dec 2008 06:34:26 +0000 (17:34 +1100)
committerLachlan McIlroy <lachlan@redback.melbourne.sgi.com>
Mon, 22 Dec 2008 06:34:26 +0000 (17:34 +1100)
Merge git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux-2.6

Conflicts:

fs/xfs/xfs_rename.c

Signed-off-by: Lachlan McIlroy <lachlan@sgi.com>
1  2 
include/linux/fs.h

diff --combined include/linux/fs.h
index 965b9ba3865d78ea085a7fb7f47bc318154ae726,4a853ef6fd35076d4aad21b488a97a513fb7bacc..1ba7630e329c625f401820029704afa372e8c9dc
@@@ -63,32 -63,25 +63,33 @@@ extern int dir_notify_enable
  #define MAY_ACCESS 16
  #define MAY_OPEN 32
  
- #define FMODE_READ ((__force fmode_t)1)
- #define FMODE_WRITE ((__force fmode_t)2)
- /* Internal kernel extensions */
- #define FMODE_LSEEK   ((__force fmode_t)4)
- #define FMODE_PREAD   ((__force fmode_t)8)
- #define FMODE_PWRITE  FMODE_PREAD     /* These go hand in hand */
- /* File is being opened for execution. Primary users of this flag are
-    distributed filesystems that can use it to achieve correct ETXTBUSY
-    behavior for cross-node execution/opening_for_writing of files */
- #define FMODE_EXEC    ((__force fmode_t)16)
- #define FMODE_NDELAY  ((__force fmode_t)32)
- #define FMODE_EXCL    ((__force fmode_t)64)
+ /* file is open for reading */
+ #define FMODE_READ            ((__force fmode_t)1)
+ /* file is open for writing */
+ #define FMODE_WRITE           ((__force fmode_t)2)
+ /* file is seekable */
+ #define FMODE_LSEEK           ((__force fmode_t)4)
+ /* file can be accessed using pread/pwrite */
+ #define FMODE_PREAD           ((__force fmode_t)8)
+ #define FMODE_PWRITE          FMODE_PREAD     /* These go hand in hand */
+ /* File is opened for execution with sys_execve / sys_uselib */
+ #define FMODE_EXEC            ((__force fmode_t)16)
+ /* File is opened with O_NDELAY (only set for block devices) */
+ #define FMODE_NDELAY          ((__force fmode_t)32)
+ /* File is opened with O_EXCL (only set for block devices) */
+ #define FMODE_EXCL            ((__force fmode_t)64)
+ /* File is opened using open(.., 3, ..) and is writeable only for ioctls
+    (specialy hack for floppy.c) */
  #define FMODE_WRITE_IOCTL     ((__force fmode_t)128)
- #define FMODE_NDELAY_NOW      ((__force fmode_t)256)
  
 +/*
 + * Don't update ctime and mtime.
 + *
 + * Currently a special hack for the XFS open_by_handle ioctl, but we'll
 + * hopefully graduate it to a proper O_CMTIME flag supported by open(2) soon.
 + */
 +#define FMODE_NOCMTIME                ((__force fmode_t)2048)
 +
  #define RW_MASK               1
  #define RWA_MASK      2
  #define READ 0
@@@ -1882,9 -1875,7 +1883,9 @@@ extern loff_t default_llseek(struct fil
  
  extern loff_t vfs_llseek(struct file *file, loff_t offset, int origin);
  
 +extern struct inode * inode_init_always(struct super_block *, struct inode *);
  extern void inode_init_once(struct inode *);
 +extern void inode_add_to_lists(struct super_block *, struct inode *);
  extern void iput(struct inode *);
  extern struct inode * igrab(struct inode *);
  extern ino_t iunique(struct super_block *, ino_t);