diff options
author | Nikolay Borisov <n.borisov.lkml@gmail.com> | 2017-01-17 17:31:29 -0500 |
---|---|---|
committer | David Sterba <dsterba@suse.com> | 2017-02-14 09:50:54 -0500 |
commit | 436635571bd0b4ba12ec81641667d85e7c29bad5 (patch) | |
tree | 7df8dd11f9679bfa33f27d0c78bc62c2973b5d5b /fs/btrfs/tree-log.c | |
parent | 4176bdbf2d1a58ebfe1c74f3502e2150db8ea445 (diff) |
btrfs: Make btrfs_record_snapshot_destroy take btrfs_inode
Signed-off-by: Nikolay Borisov <n.borisov.lkml@gmail.com>
Signed-off-by: David Sterba <dsterba@suse.com>
Diffstat (limited to 'fs/btrfs/tree-log.c')
-rw-r--r-- | fs/btrfs/tree-log.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/fs/btrfs/tree-log.c b/fs/btrfs/tree-log.c index 6f9a3beb7050..581d31171683 100644 --- a/fs/btrfs/tree-log.c +++ b/fs/btrfs/tree-log.c | |||
@@ -5794,11 +5794,11 @@ record: | |||
5794 | * parent root and tree of tree roots trees, etc) are done. | 5794 | * parent root and tree of tree roots trees, etc) are done. |
5795 | */ | 5795 | */ |
5796 | void btrfs_record_snapshot_destroy(struct btrfs_trans_handle *trans, | 5796 | void btrfs_record_snapshot_destroy(struct btrfs_trans_handle *trans, |
5797 | struct inode *dir) | 5797 | struct btrfs_inode *dir) |
5798 | { | 5798 | { |
5799 | mutex_lock(&BTRFS_I(dir)->log_mutex); | 5799 | mutex_lock(&dir->log_mutex); |
5800 | BTRFS_I(dir)->last_unlink_trans = trans->transid; | 5800 | dir->last_unlink_trans = trans->transid; |
5801 | mutex_unlock(&BTRFS_I(dir)->log_mutex); | 5801 | mutex_unlock(&dir->log_mutex); |
5802 | } | 5802 | } |
5803 | 5803 | ||
5804 | /* | 5804 | /* |