]> git.openfabrics.org - ~shefty/rdma-dev.git/blobdiff - fs/btrfs/inode.c
Btrfs: only log the inode item if we can get away with it
[~shefty/rdma-dev.git] / fs / btrfs / inode.c
index 0446cbe8bcaf6e7e17f93cdb5c0dd84e6e2634d7..123815f3b45428481fe85ed7b07b3322d20ff9e0 100644 (file)
@@ -5083,6 +5083,7 @@ static int btrfs_link(struct dentry *old_dentry, struct inode *dir,
        inode_inc_iversion(inode);
        inode->i_ctime = CURRENT_TIME;
        ihold(inode);
+       set_bit(BTRFS_INODE_COPY_EVERYTHING, &BTRFS_I(inode)->runtime_flags);
 
        err = btrfs_add_nondir(trans, dir, dentry, inode, 1, index);