diff options
author | David Sterba <dsterba@suse.com> | 2018-03-26 18:52:15 +0200 |
---|---|---|
committer | David Sterba <dsterba@suse.com> | 2018-05-28 18:23:25 +0200 |
commit | 5ba76abfb233661f4d890b7069aacc65aa65e34c (patch) | |
tree | ced2be5c79e17852682a196f21903747517a8812 /fs/btrfs/ioctl.c | |
parent | 1905a0f7c7de3cec4a61b9f0053da8cd07b512bf (diff) |
btrfs: rename check_flags to reflect which flags it touches
The FS_*_FL flags cannot be easily identified by a prefix but we still
need to recognize them so the 'fsflags' should be closer to the naming
scheme but again the 'fs' part sounds like it's a filesystem flag. I
don't have a better idea for now.
Signed-off-by: David Sterba <dsterba@suse.com>
Diffstat (limited to 'fs/btrfs/ioctl.c')
-rw-r--r-- | fs/btrfs/ioctl.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/fs/btrfs/ioctl.c b/fs/btrfs/ioctl.c index f5b83b4cc6bf..ba62dc3d59ec 100644 --- a/fs/btrfs/ioctl.c +++ b/fs/btrfs/ioctl.c @@ -168,7 +168,8 @@ static int btrfs_ioctl_getflags(struct file *file, void __user *arg) return 0; } -static int check_flags(unsigned int flags) +/* Check if @flags are a supported and valid set of FS_*_FL flags */ +static int check_fsflags(unsigned int flags) { if (flags & ~(FS_IMMUTABLE_FL | FS_APPEND_FL | \ FS_NOATIME_FL | FS_NODUMP_FL | \ @@ -205,7 +206,7 @@ static int btrfs_ioctl_setflags(struct file *file, void __user *arg) if (copy_from_user(&flags, arg, sizeof(flags))) return -EFAULT; - ret = check_flags(flags); + ret = check_fsflags(flags); if (ret) return ret; |