diff options
| author | Al Viro <viro@zeniv.linux.org.uk> | 2011-06-20 21:56:31 -0400 |
|---|---|---|
| committer | Al Viro <viro@zeniv.linux.org.uk> | 2011-07-20 01:43:36 -0400 |
| commit | 76fe3276be26cff2e609cdcfbc1265cf1dd72b2c (patch) | |
| tree | 67e25ccf9a76e5cad7bee3087d8f305a9cc1ec8d /Documentation/filesystems/porting | |
| parent | d2d9e9fbc2f8f492dae373482da61d34475c53c1 (diff) | |
->permission() sanitizing: document API changes
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
Diffstat (limited to 'Documentation/filesystems/porting')
| -rw-r--r-- | Documentation/filesystems/porting | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/Documentation/filesystems/porting b/Documentation/filesystems/porting index 6e29954851a2..0eeb3954dea3 100644 --- a/Documentation/filesystems/porting +++ b/Documentation/filesystems/porting | |||
| @@ -400,10 +400,14 @@ a file off. | |||
| 400 | 400 | ||
| 401 | -- | 401 | -- |
| 402 | [mandatory] | 402 | [mandatory] |
| 403 | |||
| 404 | -- | ||
| 405 | [mandatory] | ||
| 406 | ->get_sb() is gone. Switch to use of ->mount(). Typically it's just | 403 | ->get_sb() is gone. Switch to use of ->mount(). Typically it's just |
| 407 | a matter of switching from calling get_sb_... to mount_... and changing the | 404 | a matter of switching from calling get_sb_... to mount_... and changing the |
| 408 | function type. If you were doing it manually, just switch from setting ->mnt_root | 405 | function type. If you were doing it manually, just switch from setting ->mnt_root |
| 409 | to some pointer to returning that pointer. On errors return ERR_PTR(...). | 406 | to some pointer to returning that pointer. On errors return ERR_PTR(...). |
| 407 | |||
| 408 | -- | ||
| 409 | [mandatory] | ||
| 410 | ->permission(), generic_permission() and ->check_acl() have lost flags | ||
| 411 | argument; instead of passing IPERM_FLAG_RCU we add MAY_NOT_BLOCK into mask. | ||
| 412 | generic_permission() has also lost the check_acl argument; if you want | ||
| 413 | non-NULL to be used for that inode, put it into ->i_op->check_acl. | ||
