Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 38e82de8 authored by David Sterba's avatar David Sterba
Browse files

btrfs: user proper type for btrfs_mask_flags flags



All users pass a local unsigned int and not the __uXX types that are
supposed to be used for userspace interfaces.

Signed-off-by: default avatarDavid Sterba <dsterba@suse.com>
parent 7e79cb86
Loading
Loading
Loading
Loading
+1 −1
Original line number Original line Diff line number Diff line
@@ -106,7 +106,7 @@ static int btrfs_clone(struct inode *src, struct inode *inode,
		       int no_time_update);
		       int no_time_update);


/* Mask out flags that are inappropriate for the given type of inode. */
/* 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))
	if (S_ISDIR(mode))
		return flags;
		return flags;