summaryrefslogtreecommitdiff
path: root/fs/ext2/namei.c
diff options
context:
space:
mode:
authorMiklos Szeredi <mszeredi@redhat.com>2021-04-07 15:36:43 +0300
committerMiklos Szeredi <mszeredi@redhat.com>2021-04-12 16:04:29 +0300
commitaba405e33e150860dd9e55be582a70e36d457039 (patch)
treebcd80dd18607a0001dbfad181749e84d8afb39be /fs/ext2/namei.c
parent97fc2977548786b073b17aa18174fcbaae9cb6a8 (diff)
downloadlinux-aba405e33e150860dd9e55be582a70e36d457039.tar.xz
ext2: 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: Jan Kara <jack@suse.cz>
Diffstat (limited to 'fs/ext2/namei.c')
-rw-r--r--fs/ext2/namei.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/fs/ext2/namei.c b/fs/ext2/namei.c
index 3367384d344d..c03fc3c1533e 100644
--- a/fs/ext2/namei.c
+++ b/fs/ext2/namei.c
@@ -427,6 +427,8 @@ const struct inode_operations ext2_dir_inode_operations = {
.get_acl = ext2_get_acl,
.set_acl = ext2_set_acl,
.tmpfile = ext2_tmpfile,
+ .fileattr_get = ext2_fileattr_get,
+ .fileattr_set = ext2_fileattr_set,
};
const struct inode_operations ext2_special_inode_operations = {