summaryrefslogtreecommitdiffstats
path: root/fs/btrfs
diff options
context:
space:
mode:
Diffstat (limited to 'fs/btrfs')
-rw-r--r--fs/btrfs/inode.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/fs/btrfs/inode.c b/fs/btrfs/inode.c
index 1673dbd..2e6918c 100644
--- a/fs/btrfs/inode.c
+++ b/fs/btrfs/inode.c
@@ -5041,6 +5041,10 @@ static int btrfs_create(struct inode *dir, struct dentry *dentry,
if (err)
goto out_unlock;
+ err = btrfs_update_inode(trans, root, inode);
+ if (err)
+ goto out_unlock;
+
/*
* If the active LSM wants to access the inode during
* d_instantiate it needs these. Smack checks to see
OpenPOWER on IntegriCloud