diff options
| author | Eric Biggers <ebiggers@google.com> | 2017-03-31 13:31:25 -0400 |
|---|---|---|
| committer | Al Viro <viro@zeniv.linux.org.uk> | 2017-04-03 01:05:56 -0400 |
| commit | 75dd7e4bb663c7047c7d1bd4dad26f8c048851be (patch) | |
| tree | 3ffef225c729a1a835aa9cf505717e7aef509b31 /Documentation/filesystems | |
| parent | a71c9a1c779f2499fb2afc0553e543f18aff6edf (diff) | |
Documentation/filesystems: fix documentation for ->getattr()
Following the recent merge of statx, correct the documented prototype
for the ->getattr() inode operation, and add an entry to the porting
file.
Signed-off-by: Eric Biggers <ebiggers@google.com>
Signed-off-by: David Howells <dhowells@redhat.com>
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
Diffstat (limited to 'Documentation/filesystems')
| -rw-r--r-- | Documentation/filesystems/Locking | 3 | ||||
| -rw-r--r-- | Documentation/filesystems/porting | 6 | ||||
| -rw-r--r-- | Documentation/filesystems/vfs.txt | 3 |
3 files changed, 8 insertions, 4 deletions
diff --git a/Documentation/filesystems/Locking b/Documentation/filesystems/Locking index fdcfdd79682a..fe25787ff6d4 100644 --- a/Documentation/filesystems/Locking +++ b/Documentation/filesystems/Locking | |||
| @@ -58,8 +58,7 @@ prototypes: | |||
| 58 | int (*permission) (struct inode *, int, unsigned int); | 58 | int (*permission) (struct inode *, int, unsigned int); |
| 59 | int (*get_acl)(struct inode *, int); | 59 | int (*get_acl)(struct inode *, int); |
| 60 | int (*setattr) (struct dentry *, struct iattr *); | 60 | int (*setattr) (struct dentry *, struct iattr *); |
| 61 | int (*getattr) (const struct path *, struct dentry *, struct kstat *, | 61 | int (*getattr) (const struct path *, struct kstat *, u32, unsigned int); |
| 62 | u32, unsigned int); | ||
| 63 | ssize_t (*listxattr) (struct dentry *, char *, size_t); | 62 | ssize_t (*listxattr) (struct dentry *, char *, size_t); |
| 64 | int (*fiemap)(struct inode *, struct fiemap_extent_info *, u64 start, u64 len); | 63 | int (*fiemap)(struct inode *, struct fiemap_extent_info *, u64 start, u64 len); |
| 65 | void (*update_time)(struct inode *, struct timespec *, int); | 64 | void (*update_time)(struct inode *, struct timespec *, int); |
diff --git a/Documentation/filesystems/porting b/Documentation/filesystems/porting index 95280079c0b3..5fb17f49f7a2 100644 --- a/Documentation/filesystems/porting +++ b/Documentation/filesystems/porting | |||
| @@ -600,3 +600,9 @@ in your dentry operations instead. | |||
| 600 | [recommended] | 600 | [recommended] |
| 601 | ->readlink is optional for symlinks. Don't set, unless filesystem needs | 601 | ->readlink is optional for symlinks. Don't set, unless filesystem needs |
| 602 | to fake something for readlink(2). | 602 | to fake something for readlink(2). |
| 603 | -- | ||
| 604 | [mandatory] | ||
| 605 | ->getattr() is now passed a struct path rather than a vfsmount and | ||
| 606 | dentry separately, and it now has request_mask and query_flags arguments | ||
| 607 | to specify the fields and sync type requested by statx. Filesystems not | ||
| 608 | supporting any statx-specific features may ignore the new arguments. | ||
diff --git a/Documentation/filesystems/vfs.txt b/Documentation/filesystems/vfs.txt index 569211703721..94dd27ef4a76 100644 --- a/Documentation/filesystems/vfs.txt +++ b/Documentation/filesystems/vfs.txt | |||
| @@ -382,8 +382,7 @@ struct inode_operations { | |||
| 382 | int (*permission) (struct inode *, int); | 382 | int (*permission) (struct inode *, int); |
| 383 | int (*get_acl)(struct inode *, int); | 383 | int (*get_acl)(struct inode *, int); |
| 384 | int (*setattr) (struct dentry *, struct iattr *); | 384 | int (*setattr) (struct dentry *, struct iattr *); |
| 385 | int (*getattr) (const struct path *, struct dentry *, struct kstat *, | 385 | int (*getattr) (const struct path *, struct kstat *, u32, unsigned int); |
| 386 | u32, unsigned int); | ||
| 387 | ssize_t (*listxattr) (struct dentry *, char *, size_t); | 386 | ssize_t (*listxattr) (struct dentry *, char *, size_t); |
| 388 | void (*update_time)(struct inode *, struct timespec *, int); | 387 | void (*update_time)(struct inode *, struct timespec *, int); |
| 389 | int (*atomic_open)(struct inode *, struct dentry *, struct file *, | 388 | int (*atomic_open)(struct inode *, struct dentry *, struct file *, |
