diff options
author | Alexander Mikhalitsyn <aleksandr.mikhalitsyn@canonical.com> | 2024-01-05 16:21:29 +0100 |
---|---|---|
committer | Miklos Szeredi <mszeredi@redhat.com> | 2024-03-06 09:56:25 +0100 |
commit | 5a4d888e9f9beeb5062fbddf789278de5295e9f8 (patch) | |
tree | 9f553616130ebc52856a98abd82d177835605eb7 /fs/fuse | |
parent | 2d09ab2203ece3d20aad6b3ba82a574c23da7556 (diff) | |
download | linux-5a4d888e9f9beeb5062fbddf789278de5295e9f8.tar.gz linux-5a4d888e9f9beeb5062fbddf789278de5295e9f8.tar.bz2 linux-5a4d888e9f9beeb5062fbddf789278de5295e9f8.zip |
fuse: __kuid_val/__kgid_val helpers in fuse_fill_attr_from_inode()
For the sake of consistency, let's use these helpers to extract
{u,g}id_t values from k{u,g}id_t ones.
There are no functional changes, just to make code cleaner.
Signed-off-by: Alexander Mikhalitsyn <aleksandr.mikhalitsyn@canonical.com>
Reviewed-by: Christian Brauner <brauner@kernel.org>
Signed-off-by: Miklos Szeredi <mszeredi@redhat.com>
Diffstat (limited to 'fs/fuse')
-rw-r--r-- | fs/fuse/inode.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/fs/fuse/inode.c b/fs/fuse/inode.c index 0d1aee941246..4829e667f9ad 100644 --- a/fs/fuse/inode.c +++ b/fs/fuse/inode.c @@ -1523,8 +1523,8 @@ static void fuse_fill_attr_from_inode(struct fuse_attr *attr, .ctimensec = ctime.tv_nsec, .mode = fi->inode.i_mode, .nlink = fi->inode.i_nlink, - .uid = fi->inode.i_uid.val, - .gid = fi->inode.i_gid.val, + .uid = __kuid_val(fi->inode.i_uid), + .gid = __kgid_val(fi->inode.i_gid), .rdev = fi->inode.i_rdev, .blksize = 1u << fi->inode.i_blkbits, }; |