diff options
author | Al Viro <viro@zeniv.linux.org.uk> | 2012-06-10 05:01:45 -0400 |
---|---|---|
committer | Al Viro <viro@zeniv.linux.org.uk> | 2012-07-14 08:33:31 -0400 |
commit | 47237687d73cbeae1dd7a133c3fc3d7239094568 (patch) | |
tree | 1d267d03246f0a16cbff3c8221ee69dd1521f835 /Documentation | |
parent | a8277b9baa6268de386529a33061775bc716198b (diff) |
->atomic_open() prototype change - pass int * instead of bool *
... and let finish_open() report having opened the file via that sucker.
Next step: don't modify od->filp at all.
[AV: FILE_CREATE was already used by cifs; Miklos' fix folded]
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
Diffstat (limited to 'Documentation')
-rw-r--r-- | Documentation/filesystems/Locking | 2 | ||||
-rw-r--r-- | Documentation/filesystems/vfs.txt | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/Documentation/filesystems/Locking b/Documentation/filesystems/Locking index 8157488c3463..af4e45bd6cfa 100644 --- a/Documentation/filesystems/Locking +++ b/Documentation/filesystems/Locking | |||
@@ -64,7 +64,7 @@ ata *); | |||
64 | void (*update_time)(struct inode *, struct timespec *, int); | 64 | void (*update_time)(struct inode *, struct timespec *, int); |
65 | struct file * (*atomic_open)(struct inode *, struct dentry *, | 65 | struct file * (*atomic_open)(struct inode *, struct dentry *, |
66 | struct opendata *, unsigned open_flag, | 66 | struct opendata *, unsigned open_flag, |
67 | umode_t create_mode, bool *created); | 67 | umode_t create_mode, int *opened); |
68 | 68 | ||
69 | locking rules: | 69 | locking rules: |
70 | all may block | 70 | all may block |
diff --git a/Documentation/filesystems/vfs.txt b/Documentation/filesystems/vfs.txt index beb6e691f70a..d7121051afcd 100644 --- a/Documentation/filesystems/vfs.txt +++ b/Documentation/filesystems/vfs.txt | |||
@@ -366,7 +366,7 @@ struct inode_operations { | |||
366 | void (*update_time)(struct inode *, struct timespec *, int); | 366 | void (*update_time)(struct inode *, struct timespec *, int); |
367 | struct file * (*atomic_open)(struct inode *, struct dentry *, | 367 | struct file * (*atomic_open)(struct inode *, struct dentry *, |
368 | struct opendata *, unsigned open_flag, | 368 | struct opendata *, unsigned open_flag, |
369 | umode_t create_mode, bool *created); | 369 | umode_t create_mode, int *opened); |
370 | }; | 370 | }; |
371 | 371 | ||
372 | Again, all methods are called without any locks being held, unless | 372 | Again, all methods are called without any locks being held, unless |