From 6c9b1de172bdd0450d56e2cb3b2da5fc1833619e Mon Sep 17 00:00:00 2001 From: Al Viro Date: Mon, 9 Jul 2018 19:20:08 -0400 Subject: document ->atomic_open() changes Acked-by: Linus Torvalds Signed-off-by: Al Viro --- Documentation/filesystems/porting | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'Documentation/filesystems/porting') 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. -- cgit v1.2.3