Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 186207
b: refs/heads/master
c: 19adf9c
h: refs/heads/master
i:
  186205: 5a90809
  186203: 4c1fdd6
  186199: db3691c
  186191: e60fd89
  186175: 237ac15
v: v3
  • Loading branch information
Andrew Morton authored and Linus Torvalds committed Mar 6, 2010
1 parent a07e22c commit efec01c
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 12 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 0141450f66c3c12a3aaa869748caa64241885cdf
refs/heads/master: 19adf9c5d5793657118f2002237c0ee49c3b6185
22 changes: 11 additions & 11 deletions trunk/include/linux/fs.h
Original file line number Diff line number Diff line change
Expand Up @@ -60,35 +60,35 @@ struct inodes_stat_t {
*/

/* file is open for reading */
#define FMODE_READ ((__force fmode_t)1)
#define FMODE_READ ((__force fmode_t)0x1)
/* file is open for writing */
#define FMODE_WRITE ((__force fmode_t)2)
#define FMODE_WRITE ((__force fmode_t)0x2)
/* file is seekable */
#define FMODE_LSEEK ((__force fmode_t)4)
#define FMODE_LSEEK ((__force fmode_t)0x4)
/* file can be accessed using pread */
#define FMODE_PREAD ((__force fmode_t)8)
#define FMODE_PREAD ((__force fmode_t)0x8)
/* file can be accessed using pwrite */
#define FMODE_PWRITE ((__force fmode_t)16)
#define FMODE_PWRITE ((__force fmode_t)0x10)
/* File is opened for execution with sys_execve / sys_uselib */
#define FMODE_EXEC ((__force fmode_t)32)
#define FMODE_EXEC ((__force fmode_t)0x20)
/* File is opened with O_NDELAY (only set for block devices) */
#define FMODE_NDELAY ((__force fmode_t)64)
#define FMODE_NDELAY ((__force fmode_t)0x40)
/* File is opened with O_EXCL (only set for block devices) */
#define FMODE_EXCL ((__force fmode_t)128)
#define FMODE_EXCL ((__force fmode_t)0x80)
/* File is opened using open(.., 3, ..) and is writeable only for ioctls
(specialy hack for floppy.c) */
#define FMODE_WRITE_IOCTL ((__force fmode_t)256)
#define FMODE_WRITE_IOCTL ((__force fmode_t)0x100)

/*
* 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 FMODE_NOCMTIME ((__force fmode_t)0x800)

/* Expect random access pattern */
#define FMODE_RANDOM ((__force fmode_t)4096)
#define FMODE_RANDOM ((__force fmode_t)0x1000)

/*
* The below are the various read and write types that we support. Some of
Expand Down

0 comments on commit efec01c

Please sign in to comment.