diff options
| author | Al Viro <viro@zeniv.linux.org.uk> | 2013-06-07 01:20:27 -0400 |
|---|---|---|
| committer | Al Viro <viro@zeniv.linux.org.uk> | 2013-06-29 04:57:10 -0400 |
| commit | 60545d0d4610b02e55f65d141c95b18ccf855b6e (patch) | |
| tree | 252111eed41e5f54a7bd13b054420f750cb5e069 /include | |
| parent | f9652e10c12b43d9bb957269745cf2fa5682fa92 (diff) | |
[O_TMPFILE] it's still short a few helpers, but infrastructure should be OK now...
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
Diffstat (limited to 'include')
| -rw-r--r-- | include/linux/dcache.h | 2 | ||||
| -rw-r--r-- | include/linux/fs.h | 1 | ||||
| -rw-r--r-- | include/uapi/asm-generic/fcntl.h | 4 |
3 files changed, 7 insertions, 0 deletions
diff --git a/include/linux/dcache.h b/include/linux/dcache.h index 1a6bb81f0fe5..86da7595ba31 100644 --- a/include/linux/dcache.h +++ b/include/linux/dcache.h | |||
| @@ -246,6 +246,8 @@ extern struct dentry * d_make_root(struct inode *); | |||
| 246 | /* <clickety>-<click> the ramfs-type tree */ | 246 | /* <clickety>-<click> the ramfs-type tree */ |
| 247 | extern void d_genocide(struct dentry *); | 247 | extern void d_genocide(struct dentry *); |
| 248 | 248 | ||
| 249 | extern void d_tmpfile(struct dentry *, struct inode *); | ||
| 250 | |||
| 249 | extern struct dentry *d_find_alias(struct inode *); | 251 | extern struct dentry *d_find_alias(struct inode *); |
| 250 | extern void d_prune_aliases(struct inode *); | 252 | extern void d_prune_aliases(struct inode *); |
| 251 | 253 | ||
diff --git a/include/linux/fs.h b/include/linux/fs.h index 7c30e3a62baf..dd6615f0fd13 100644 --- a/include/linux/fs.h +++ b/include/linux/fs.h | |||
| @@ -1580,6 +1580,7 @@ struct inode_operations { | |||
| 1580 | int (*atomic_open)(struct inode *, struct dentry *, | 1580 | int (*atomic_open)(struct inode *, struct dentry *, |
| 1581 | struct file *, unsigned open_flag, | 1581 | struct file *, unsigned open_flag, |
| 1582 | umode_t create_mode, int *opened); | 1582 | umode_t create_mode, int *opened); |
| 1583 | int (*tmpfile) (struct inode *, struct dentry *, umode_t); | ||
| 1583 | } ____cacheline_aligned; | 1584 | } ____cacheline_aligned; |
| 1584 | 1585 | ||
| 1585 | ssize_t rw_copy_check_uvector(int type, const struct iovec __user * uvector, | 1586 | ssize_t rw_copy_check_uvector(int type, const struct iovec __user * uvector, |
diff --git a/include/uapi/asm-generic/fcntl.h b/include/uapi/asm-generic/fcntl.h index a48937d4a5ea..06632beaa6d5 100644 --- a/include/uapi/asm-generic/fcntl.h +++ b/include/uapi/asm-generic/fcntl.h | |||
| @@ -84,6 +84,10 @@ | |||
| 84 | #define O_PATH 010000000 | 84 | #define O_PATH 010000000 |
| 85 | #endif | 85 | #endif |
| 86 | 86 | ||
| 87 | #ifndef O_TMPFILE | ||
| 88 | #define O_TMPFILE 020000000 | ||
| 89 | #endif | ||
| 90 | |||
| 87 | #ifndef O_NDELAY | 91 | #ifndef O_NDELAY |
| 88 | #define O_NDELAY O_NONBLOCK | 92 | #define O_NDELAY O_NONBLOCK |
| 89 | #endif | 93 | #endif |
