summaryrefslogtreecommitdiffstats
path: root/fs/btrfs/inode.c
diff options
context:
space:
mode:
authorDavid Sterba <dsterba@suse.com>2024-05-20 19:40:26 +0200
committerDavid Sterba <dsterba@suse.com>2024-07-11 15:33:18 +0200
commit9c5e1fb024df2675eeb6a2f43770687602a0ffdc (patch)
tree0b3d6bbef9306402ec2dd2600ceeda0ac4cf7442 /fs/btrfs/inode.c
parentbtrfs: use a btrfs_inode local variable at btrfs_sync_file() (diff)
downloadlinux-9c5e1fb024df2675eeb6a2f43770687602a0ffdc.tar.xz
linux-9c5e1fb024df2675eeb6a2f43770687602a0ffdc.zip
btrfs: remove duplicate name variable declarations
When running 'make W=2' there are a few reports where a variable of the same name is declared in a nested block. In all the cases we can use the one declared in the parent block, no problematic cases were found. Reviewed-by: Boris Burkov <boris@bur.io> Reviewed-by: Anand Jain <anand.jain@oracle.com> Reviewed-by: Naohiro Aota <naohiro.aota@wdc.com> Signed-off-by: David Sterba <dsterba@suse.com>
Diffstat (limited to 'fs/btrfs/inode.c')
-rw-r--r--fs/btrfs/inode.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/fs/btrfs/inode.c b/fs/btrfs/inode.c
index 95a48bd40625..8b0368fb5d0d 100644
--- a/fs/btrfs/inode.c
+++ b/fs/btrfs/inode.c
@@ -1617,10 +1617,8 @@ static noinline void submit_compressed_extents(struct btrfs_work *work, bool do_
u64 alloc_hint = 0;
if (do_free) {
- struct async_chunk *async_chunk;
struct async_cow *async_cow;
- async_chunk = container_of(work, struct async_chunk, work);
btrfs_add_delayed_iput(async_chunk->inode);
if (async_chunk->blkcg_css)
css_put(async_chunk->blkcg_css);