diff options
author | Al Viro <viro@zeniv.linux.org.uk> | 2018-07-10 01:20:08 +0200 |
---|---|---|
committer | Al Viro <viro@zeniv.linux.org.uk> | 2018-07-12 16:04:22 +0200 |
commit | 6c9b1de172bdd0450d56e2cb3b2da5fc1833619e (patch) | |
tree | 9dbfe474c01dda5d176c03f43a324d987d62dc4c /Documentation/filesystems/porting | |
parent | ->atomic_open(): return 0 in all success cases (diff) | |
download | linux-6c9b1de172bdd0450d56e2cb3b2da5fc1833619e.tar.xz linux-6c9b1de172bdd0450d56e2cb3b2da5fc1833619e.zip |
document ->atomic_open() changes
Acked-by: Linus Torvalds <torvalds@linux-foundation.org>
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
Diffstat (limited to 'Documentation/filesystems/porting')
-rw-r--r-- | Documentation/filesystems/porting | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/Documentation/filesystems/porting b/Documentation/filesystems/porting index 17bb4dc28fae..c68ea9294b5f 100644 --- a/Documentation/filesystems/porting +++ b/Documentation/filesystems/porting @@ -602,3 +602,11 @@ in your dentry operations instead. dentry separately, and it now has request_mask and query_flags arguments to specify the fields and sync type requested by statx. Filesystems not supporting any statx-specific features may ignore the new arguments. +-- +[mandatory] + ->atomic_open() calling conventions have changed. Gone is int *opened, + along with FILE_OPENED/FILE_CREATED. In place of those we have + FMODE_OPENED/FMODE_CREATED, set in file->f_mode. Additionally, return + value for 'called finish_no_open(), open it yourself' case has become + 0, not 1. Since finish_no_open() itself is returning 0 now, that part + does not need any changes in ->atomic_open() instances. |