diff options
author | Nikolay Borisov <nborisov@suse.com> | 2018-02-27 10:37:18 -0500 |
---|---|---|
committer | David Sterba <dsterba@suse.com> | 2018-03-26 09:09:42 -0400 |
commit | e5b84f7a258a8344947e8b955b8c2648008d8ccc (patch) | |
tree | 338674b9fe3ef5604078a330fe65f90ee160d4f3 | |
parent | f882274b2df2a2533b4fc81713838778d4ac12d6 (diff) |
btrfs: Remove root argument from btrfs_log_dentry_safe
Now that nothing uses the root arg of btrfs_log_dentry_safe it can be
safely removed. No functional changes.
Signed-off-by: Nikolay Borisov <nborisov@suse.com>
Signed-off-by: David Sterba <dsterba@suse.com>
-rw-r--r-- | fs/btrfs/file.c | 2 | ||||
-rw-r--r-- | fs/btrfs/tree-log.c | 2 | ||||
-rw-r--r-- | fs/btrfs/tree-log.h | 2 |
3 files changed, 3 insertions, 3 deletions
diff --git a/fs/btrfs/file.c b/fs/btrfs/file.c index a335e2e6c84d..8f425c64d75f 100644 --- a/fs/btrfs/file.c +++ b/fs/btrfs/file.c | |||
@@ -2214,7 +2214,7 @@ int btrfs_sync_file(struct file *file, loff_t start, loff_t end, int datasync) | |||
2214 | } | 2214 | } |
2215 | trans->sync = true; | 2215 | trans->sync = true; |
2216 | 2216 | ||
2217 | ret = btrfs_log_dentry_safe(trans, root, dentry, start, end, &ctx); | 2217 | ret = btrfs_log_dentry_safe(trans, dentry, start, end, &ctx); |
2218 | if (ret < 0) { | 2218 | if (ret < 0) { |
2219 | /* Fallthrough and commit/free transaction. */ | 2219 | /* Fallthrough and commit/free transaction. */ |
2220 | ret = 1; | 2220 | ret = 1; |
diff --git a/fs/btrfs/tree-log.c b/fs/btrfs/tree-log.c index 05ce8b12beec..7b8fee45b29e 100644 --- a/fs/btrfs/tree-log.c +++ b/fs/btrfs/tree-log.c | |||
@@ -5678,7 +5678,7 @@ end_no_trans: | |||
5678 | * data on disk. | 5678 | * data on disk. |
5679 | */ | 5679 | */ |
5680 | int btrfs_log_dentry_safe(struct btrfs_trans_handle *trans, | 5680 | int btrfs_log_dentry_safe(struct btrfs_trans_handle *trans, |
5681 | struct btrfs_root *root, struct dentry *dentry, | 5681 | struct dentry *dentry, |
5682 | const loff_t start, | 5682 | const loff_t start, |
5683 | const loff_t end, | 5683 | const loff_t end, |
5684 | struct btrfs_log_ctx *ctx) | 5684 | struct btrfs_log_ctx *ctx) |
diff --git a/fs/btrfs/tree-log.h b/fs/btrfs/tree-log.h index 483027f9a7f4..88abc43312a1 100644 --- a/fs/btrfs/tree-log.h +++ b/fs/btrfs/tree-log.h | |||
@@ -65,7 +65,7 @@ int btrfs_free_log_root_tree(struct btrfs_trans_handle *trans, | |||
65 | struct btrfs_fs_info *fs_info); | 65 | struct btrfs_fs_info *fs_info); |
66 | int btrfs_recover_log_trees(struct btrfs_root *tree_root); | 66 | int btrfs_recover_log_trees(struct btrfs_root *tree_root); |
67 | int btrfs_log_dentry_safe(struct btrfs_trans_handle *trans, | 67 | int btrfs_log_dentry_safe(struct btrfs_trans_handle *trans, |
68 | struct btrfs_root *root, struct dentry *dentry, | 68 | struct dentry *dentry, |
69 | const loff_t start, | 69 | const loff_t start, |
70 | const loff_t end, | 70 | const loff_t end, |
71 | struct btrfs_log_ctx *ctx); | 71 | struct btrfs_log_ctx *ctx); |