]> git.sesse.net Git - bcachefs-tools-debian/commitdiff
bcachefs-tools: Fix build break with FUSE.
authorJustin Husted <sigstop@gmail.com>
Sat, 28 Dec 2019 23:37:42 +0000 (15:37 -0800)
committerJustin Husted <sigstop@gmail.com>
Sat, 28 Dec 2019 23:54:34 +0000 (15:54 -0800)
bch2_link_trans() in the filesystem side was fixed to do timestamps
properly, but the change to the tools call got lost.

Signed-off-by: Justin Husted <sigstop@gmail.com>
cmd_fusemount.c

index 4e4c24cce888b28679841097e49a4961c2e9b70a..5418a556912f772923d6e5d1ff1de864b2e8f8c3 100644 (file)
@@ -341,7 +341,7 @@ static void bcachefs_fuse_link(fuse_req_t req, fuse_ino_t inum,
                               fuse_ino_t newparent, const char *newname)
 {
        struct bch_fs *c = fuse_req_userdata(req);
-       struct bch_inode_unpacked inode_u;
+       struct bch_inode_unpacked dir_u, inode_u;
        struct qstr qstr = QSTR(newname);
        int ret;
 
@@ -352,7 +352,7 @@ static void bcachefs_fuse_link(fuse_req_t req, fuse_ino_t inum,
 
        ret = bch2_trans_do(c, NULL, BTREE_INSERT_ATOMIC,
                            bch2_link_trans(&trans, newparent,
-                                           inum, &inode_u, &qstr));
+                                           inum, &dir_u, &inode_u, &qstr));
 
        if (!ret) {
                struct fuse_entry_param e = inode_to_entry(c, &inode_u);