@@ -741,7 +741,7 @@ static int __init fcntl_init(void)
* Exceptions: O_NONBLOCK is a two bit define on parisc; O_NDELAY
* is defined as O_NONBLOCK on some platforms and not on others.
*/
- BUILD_BUG_ON(21 - 1 /* for O_RDONLY being 0 */ != HWEIGHT32(
+ BUILD_BUG_ON(22 - 1 /* for O_RDONLY being 0 */ != HWEIGHT32(
O_RDONLY | O_WRONLY | O_RDWR |
O_CREAT | O_EXCL | O_NOCTTY |
O_TRUNC | O_APPEND | /* O_NONBLOCK | */
@@ -749,6 +749,7 @@ static int __init fcntl_init(void)
O_DIRECT | O_LARGEFILE | O_DIRECTORY |
O_NOFOLLOW | O_NOATIME | O_CLOEXEC |
__FMODE_EXEC | O_PATH | __O_TMPFILE |
+ O_ATOMIC |
__FMODE_NONOTIFY
));
@@ -92,6 +92,8 @@
#define O_TMPFILE (__O_TMPFILE | O_DIRECTORY)
#define O_TMPFILE_MASK (__O_TMPFILE | O_DIRECTORY | O_CREAT)
+#define O_ATOMIC 040000000
+
#ifndef O_NDELAY
#define O_NDELAY O_NONBLOCK
#endif
Signed-off-by: Christoph Hellwig <hch@lst.de> --- fs/fcntl.c | 3 ++- include/uapi/asm-generic/fcntl.h | 2 ++ 2 files changed, 4 insertions(+), 1 deletion(-)