summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--fs/btrfs/inode.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/fs/btrfs/inode.c b/fs/btrfs/inode.c
index a1761f01cf11..adab791e1ce9 100644
--- a/fs/btrfs/inode.c
+++ b/fs/btrfs/inode.c
@@ -4951,6 +4951,12 @@ static int btrfs_mknod(struct inode *dir, struct dentry *dentry,
4951 goto out_unlock; 4951 goto out_unlock;
4952 } 4952 }
4953 4953
4954 err = btrfs_update_inode(trans, root, inode);
4955 if (err) {
4956 drop_inode = 1;
4957 goto out_unlock;
4958 }
4959
4954 /* 4960 /*
4955 * If the active LSM wants to access the inode during 4961 * If the active LSM wants to access the inode during
4956 * d_instantiate it needs these. Smack checks to see 4962 * d_instantiate it needs these. Smack checks to see