diff options
author | Miklos Szeredi <mszeredi@redhat.com> | 2021-04-07 14:36:44 +0200 |
---|---|---|
committer | Miklos Szeredi <mszeredi@redhat.com> | 2021-04-12 15:04:30 +0200 |
commit | 2b5f52c562d3001e442683065ffa7526831b55d4 (patch) | |
tree | 674ba84f5703ea461accf4ddd1f04089c72705d9 /fs/ocfs2/file.c | |
parent | 7c7c436e14b863ce56d9983477d35e05e54a220b (diff) | |
download | linux-stable-2b5f52c562d3001e442683065ffa7526831b55d4.tar.gz linux-stable-2b5f52c562d3001e442683065ffa7526831b55d4.tar.bz2 linux-stable-2b5f52c562d3001e442683065ffa7526831b55d4.zip |
ocfs2: 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: Joel Becker <jlbec@evilplan.org>
Diffstat (limited to 'fs/ocfs2/file.c')
-rw-r--r-- | fs/ocfs2/file.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/fs/ocfs2/file.c b/fs/ocfs2/file.c index 6611c64ca0be..908d22b431fa 100644 --- a/fs/ocfs2/file.c +++ b/fs/ocfs2/file.c @@ -2645,6 +2645,8 @@ const struct inode_operations ocfs2_file_iops = { .fiemap = ocfs2_fiemap, .get_acl = ocfs2_iop_get_acl, .set_acl = ocfs2_iop_set_acl, + .fileattr_get = ocfs2_fileattr_get, + .fileattr_set = ocfs2_fileattr_set, }; const struct inode_operations ocfs2_special_file_iops = { |