diff options
author | Jan Kara <jack@suse.cz> | 2016-05-26 10:55:18 -0400 |
---|---|---|
committer | Jan Kara <jack@suse.cz> | 2016-09-22 04:56:19 -0400 |
commit | 31051c85b5e2aaaf6315f74c72a732673632a905 (patch) | |
tree | a3bdc58adf95cd02276f44188f6b33c9f06f5e1a /include/linux/fs.h | |
parent | 62490330769c1ce5dcba3f1f3e8f4005e9b797e6 (diff) |
fs: Give dentry to inode_change_ok() instead of inode
inode_change_ok() will be resposible for clearing capabilities and IMA
extended attributes and as such will need dentry. Give it as an argument
to inode_change_ok() instead of an inode. Also rename inode_change_ok()
to setattr_prepare() to better relect that it does also some
modifications in addition to checks.
Reviewed-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Jan Kara <jack@suse.cz>
Diffstat (limited to 'include/linux/fs.h')
-rw-r--r-- | include/linux/fs.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/include/linux/fs.h b/include/linux/fs.h index 3523bf62f328..943a21cbb469 100644 --- a/include/linux/fs.h +++ b/include/linux/fs.h | |||
@@ -2994,7 +2994,7 @@ extern int buffer_migrate_page(struct address_space *, | |||
2994 | #define buffer_migrate_page NULL | 2994 | #define buffer_migrate_page NULL |
2995 | #endif | 2995 | #endif |
2996 | 2996 | ||
2997 | extern int inode_change_ok(const struct inode *, struct iattr *); | 2997 | extern int setattr_prepare(struct dentry *, struct iattr *); |
2998 | extern int inode_newsize_ok(const struct inode *, loff_t offset); | 2998 | extern int inode_newsize_ok(const struct inode *, loff_t offset); |
2999 | extern void setattr_copy(struct inode *inode, const struct iattr *attr); | 2999 | extern void setattr_copy(struct inode *inode, const struct iattr *attr); |
3000 | 3000 | ||