summaryrefslogtreecommitdiffstats
path: root/fs/btrfs/ioctl.c
diff options
context:
space:
mode:
authorDavid Sterba <dsterba@suse.com>2018-03-26 18:40:21 +0200
committerDavid Sterba <dsterba@suse.com>2018-05-28 18:23:20 +0200
commit7b6a221e5b21fdd4fd0f8a2ebf3f251338a10fea (patch)
tree9a94780169014357bc9a27fedebd5182198e98f6 /fs/btrfs/ioctl.c
parentd9a071f0086d22a6bdb57dc5ecbbf65fa20b6e22 (diff)
downloadtalos-obmc-linux-7b6a221e5b21fdd4fd0f8a2ebf3f251338a10fea.tar.gz
talos-obmc-linux-7b6a221e5b21fdd4fd0f8a2ebf3f251338a10fea.zip
btrfs: rename btrfs_update_iflags to reflect which flags it touches
The btrfs inode flag flavour is now simply called 'inode flags' and the vfs inode are i_flags. Signed-off-by: David Sterba <dsterba@suse.com>
Diffstat (limited to 'fs/btrfs/ioctl.c')
-rw-r--r--fs/btrfs/ioctl.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/fs/btrfs/ioctl.c b/fs/btrfs/ioctl.c
index 48e2ddff32bd..47e7e2822c60 100644
--- a/fs/btrfs/ioctl.c
+++ b/fs/btrfs/ioctl.c
@@ -136,7 +136,7 @@ static unsigned int btrfs_flags_to_ioctl(unsigned int flags)
/*
* Update inode->i_flags based on the btrfs internal flags.
*/
-void btrfs_update_iflags(struct inode *inode)
+void btrfs_sync_inode_flags_to_i_flags(struct inode *inode)
{
struct btrfs_inode *ip = BTRFS_I(inode);
unsigned int new_fl = 0;
@@ -317,7 +317,7 @@ static int btrfs_ioctl_setflags(struct file *file, void __user *arg)
goto out_drop;
}
- btrfs_update_iflags(inode);
+ btrfs_sync_inode_flags_to_i_flags(inode);
inode_inc_iversion(inode);
inode->i_ctime = current_time(inode);
ret = btrfs_update_inode(trans, root, inode);
OpenPOWER on IntegriCloud