diff options
author | Miklos Szeredi <mszeredi@redhat.com> | 2021-04-07 14:36:43 +0200 |
---|---|---|
committer | Miklos Szeredi <mszeredi@redhat.com> | 2021-04-12 15:04:29 +0200 |
commit | 88b631cbfbeb49f881737b974394a1735d3e7da7 (patch) | |
tree | 12db63d9af0ced6b21fe87e21bad8c52164f5953 /fs/gfs2/inode.h | |
parent | f2fs: convert to fileattr (diff) | |
download | linux-88b631cbfbeb49f881737b974394a1735d3e7da7.tar.xz linux-88b631cbfbeb49f881737b974394a1735d3e7da7.zip |
gfs2: convert to fileattr
Use the fileattr API to let the VFS handle locking, permission checking and
conversion.
Signed-off-by: Miklos Szeredi <mszeredi@redhat.com>
Cc: Andreas Gruenbacher <agruenba@redhat.com>
Diffstat (limited to 'fs/gfs2/inode.h')
-rw-r--r-- | fs/gfs2/inode.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/fs/gfs2/inode.h b/fs/gfs2/inode.h index c447bd5b3017..9e898660eae0 100644 --- a/fs/gfs2/inode.h +++ b/fs/gfs2/inode.h @@ -111,6 +111,9 @@ extern loff_t gfs2_seek_hole(struct file *file, loff_t offset); extern const struct file_operations gfs2_file_fops_nolock; extern const struct file_operations gfs2_dir_fops_nolock; +extern int gfs2_fileattr_get(struct dentry *dentry, struct fileattr *fa); +extern int gfs2_fileattr_set(struct user_namespace *mnt_userns, + struct dentry *dentry, struct fileattr *fa); extern void gfs2_set_inode_flags(struct inode *inode); #ifdef CONFIG_GFS2_FS_LOCKING_DLM |