diff options
author | Jiapeng Chong <jiapeng.chong@linux.alibaba.com> | 2021-04-14 08:32:56 +0200 |
---|---|---|
committer | Mike Snitzer <snitzer@redhat.com> | 2021-04-19 19:20:31 +0200 |
commit | 87d5742b73f24ca389cd832fa088170ca5d3d093 (patch) | |
tree | 6136e11d06486e71d266b4fb678c60895945d447 | |
parent | dm integrity: fix missing goto in bitmap_flush_interval error handling (diff) | |
download | linux-87d5742b73f24ca389cd832fa088170ca5d3d093.tar.xz linux-87d5742b73f24ca389cd832fa088170ca5d3d093.zip |
dm clone metadata: remove unused function
Fix the following clang warning:
drivers/md/dm-clone-metadata.c:279:19: warning: unused function
'superblock_write_lock' [-Wunused-function].
Reported-by: Abaci Robot <abaci@linux.alibaba.com>
Signed-off-by: Jiapeng Chong <jiapeng.chong@linux.alibaba.com>
Signed-off-by: Mike Snitzer <snitzer@redhat.com>
-rw-r--r-- | drivers/md/dm-clone-metadata.c | 6 |
1 files changed, 0 insertions, 6 deletions
diff --git a/drivers/md/dm-clone-metadata.c b/drivers/md/dm-clone-metadata.c index 17712456fa63..c43d55672bce 100644 --- a/drivers/md/dm-clone-metadata.c +++ b/drivers/md/dm-clone-metadata.c @@ -276,12 +276,6 @@ static inline int superblock_read_lock(struct dm_clone_metadata *cmd, return dm_bm_read_lock(cmd->bm, SUPERBLOCK_LOCATION, &sb_validator, sblock); } -static inline int superblock_write_lock(struct dm_clone_metadata *cmd, - struct dm_block **sblock) -{ - return dm_bm_write_lock(cmd->bm, SUPERBLOCK_LOCATION, &sb_validator, sblock); -} - static inline int superblock_write_lock_zero(struct dm_clone_metadata *cmd, struct dm_block **sblock) { |