btrfs: Make btrfs_commit_inode_delayed_items take btrfs_inode
authorNikolay Borisov <n.borisov.lkml@gmail.com>
Tue, 10 Jan 2017 18:35:41 +0000 (20:35 +0200)
committerDavid Sterba <dsterba@suse.com>
Tue, 14 Feb 2017 14:50:53 +0000 (15:50 +0100)
Signed-off-by: Nikolay Borisov <n.borisov.lkml@gmail.com>
Signed-off-by: David Sterba <dsterba@suse.com>
fs/btrfs/delayed-inode.c
fs/btrfs/delayed-inode.h
fs/btrfs/tree-log.c

index 0470a7eb489ebeb2391d21a0f4dc5d751d8a3ace..11ee1ad6bc3d46199229fb50838fd7b3876f8e8b 100644 (file)
@@ -1194,9 +1194,9 @@ int btrfs_run_delayed_items_nr(struct btrfs_trans_handle *trans,
 }
 
 int btrfs_commit_inode_delayed_items(struct btrfs_trans_handle *trans,
-                                    struct inode *inode)
+                                    struct btrfs_inode *inode)
 {
-       struct btrfs_delayed_node *delayed_node = btrfs_get_delayed_node(BTRFS_I(inode));
+       struct btrfs_delayed_node *delayed_node = btrfs_get_delayed_node(inode);
        struct btrfs_path *path;
        struct btrfs_block_rsv *block_rsv;
        int ret;
index cd80fe8f150f46881d77f5425abb571fd69224d8..40bf1a94314650b4cad9dca427087b19bf86d486 100644 (file)
@@ -119,7 +119,7 @@ int btrfs_run_delayed_items_nr(struct btrfs_trans_handle *trans,
 void btrfs_balance_delayed_items(struct btrfs_fs_info *fs_info);
 
 int btrfs_commit_inode_delayed_items(struct btrfs_trans_handle *trans,
-                                    struct inode *inode);
+                                    struct btrfs_inode *inode);
 /* Used for evicting the inode. */
 void btrfs_remove_delayed_node(struct btrfs_inode *inode);
 void btrfs_kill_delayed_inode_items(struct btrfs_inode *inode);
index 85186fbee0ec1af43b816fc42a140ad20efb54aa..b814cd7bbe70b0937277b3a6281974a7a60ae235 100644 (file)
@@ -4656,7 +4656,7 @@ static int btrfs_log_inode(struct btrfs_trans_handle *trans,
         */
        if (S_ISDIR(inode->i_mode) ||
            BTRFS_I(inode)->generation > fs_info->last_trans_committed)
-               ret = btrfs_commit_inode_delayed_items(trans, inode);
+               ret = btrfs_commit_inode_delayed_items(trans, BTRFS_I(inode));
        else
                ret = btrfs_commit_inode_delayed_inode(BTRFS_I(inode));