btrfs: user proper type for btrfs_mask_flags flags
authorDavid Sterba <dsterba@suse.com>
Mon, 26 Mar 2018 16:29:41 +0000 (18:29 +0200)
committerDavid Sterba <dsterba@suse.com>
Sat, 31 Mar 2018 00:01:07 +0000 (02:01 +0200)
All users pass a local unsigned int and not the __uXX types that are
supposed to be used for userspace interfaces.

Signed-off-by: David Sterba <dsterba@suse.com>
fs/btrfs/ioctl.c

index 8c3ff75..ac85e07 100644 (file)
@@ -106,7 +106,7 @@ static int btrfs_clone(struct inode *src, struct inode *inode,
                       int no_time_update);
 
 /* Mask out flags that are inappropriate for the given type of inode. */
-static inline __u32 btrfs_mask_flags(umode_t mode, __u32 flags)
+static unsigned int btrfs_mask_flags(umode_t mode, unsigned int flags)
 {
        if (S_ISDIR(mode))
                return flags;