@@ -816,11 +816,8 @@ static int send_cmd(struct send_ctx *sctx)
816
816
static int send_rename (struct send_ctx * sctx ,
817
817
struct fs_path * from , struct fs_path * to )
818
818
{
819
- struct btrfs_fs_info * fs_info = sctx -> send_root -> fs_info ;
820
819
int ret ;
821
820
822
- btrfs_debug (fs_info , "send_rename %s -> %s" , from -> start , to -> start );
823
-
824
821
ret = begin_cmd (sctx , BTRFS_SEND_C_RENAME );
825
822
if (ret < 0 )
826
823
return ret ;
@@ -840,11 +837,8 @@ static int send_rename(struct send_ctx *sctx,
840
837
static int send_link (struct send_ctx * sctx ,
841
838
struct fs_path * path , struct fs_path * lnk )
842
839
{
843
- struct btrfs_fs_info * fs_info = sctx -> send_root -> fs_info ;
844
840
int ret ;
845
841
846
- btrfs_debug (fs_info , "send_link %s -> %s" , path -> start , lnk -> start );
847
-
848
842
ret = begin_cmd (sctx , BTRFS_SEND_C_LINK );
849
843
if (ret < 0 )
850
844
return ret ;
@@ -863,11 +857,8 @@ static int send_link(struct send_ctx *sctx,
863
857
*/
864
858
static int send_unlink (struct send_ctx * sctx , struct fs_path * path )
865
859
{
866
- struct btrfs_fs_info * fs_info = sctx -> send_root -> fs_info ;
867
860
int ret ;
868
861
869
- btrfs_debug (fs_info , "send_unlink %s" , path -> start );
870
-
871
862
ret = begin_cmd (sctx , BTRFS_SEND_C_UNLINK );
872
863
if (ret < 0 )
873
864
return ret ;
@@ -885,11 +876,8 @@ static int send_unlink(struct send_ctx *sctx, struct fs_path *path)
885
876
*/
886
877
static int send_rmdir (struct send_ctx * sctx , struct fs_path * path )
887
878
{
888
- struct btrfs_fs_info * fs_info = sctx -> send_root -> fs_info ;
889
879
int ret ;
890
880
891
- btrfs_debug (fs_info , "send_rmdir %s" , path -> start );
892
-
893
881
ret = begin_cmd (sctx , BTRFS_SEND_C_RMDIR );
894
882
if (ret < 0 )
895
883
return ret ;
@@ -1573,7 +1561,6 @@ static int find_extent_clone(struct send_ctx *sctx,
1573
1561
struct btrfs_fs_info * fs_info = sctx -> send_root -> fs_info ;
1574
1562
int ret ;
1575
1563
int extent_type ;
1576
- u64 logical ;
1577
1564
u64 disk_byte ;
1578
1565
u64 num_bytes ;
1579
1566
struct btrfs_file_extent_item * fi ;
@@ -1604,7 +1591,6 @@ static int find_extent_clone(struct send_ctx *sctx,
1604
1591
1605
1592
compressed = btrfs_file_extent_compression (eb , fi );
1606
1593
num_bytes = btrfs_file_extent_num_bytes (eb , fi );
1607
- logical = disk_byte + btrfs_file_extent_offset (eb , fi );
1608
1594
1609
1595
/*
1610
1596
* Setup the clone roots.
@@ -1686,14 +1672,8 @@ static int find_extent_clone(struct send_ctx *sctx,
1686
1672
}
1687
1673
up_read (& fs_info -> commit_root_sem );
1688
1674
1689
- btrfs_debug (fs_info ,
1690
- "find_extent_clone: data_offset=%llu, ino=%llu, num_bytes=%llu, logical=%llu" ,
1691
- data_offset , ino , num_bytes , logical );
1692
-
1693
- if (!backref_ctx .found ) {
1694
- btrfs_debug (fs_info , "no clones found" );
1675
+ if (!backref_ctx .found )
1695
1676
return - ENOENT ;
1696
- }
1697
1677
1698
1678
cur_clone_root = NULL ;
1699
1679
for (i = 0 ; i < sctx -> clone_roots_cnt ; i ++ ) {
@@ -2631,12 +2611,9 @@ static void free_path_for_command(const struct send_ctx *sctx, struct fs_path *p
2631
2611
2632
2612
static int send_truncate (struct send_ctx * sctx , u64 ino , u64 gen , u64 size )
2633
2613
{
2634
- struct btrfs_fs_info * fs_info = sctx -> send_root -> fs_info ;
2635
2614
int ret = 0 ;
2636
2615
struct fs_path * p ;
2637
2616
2638
- btrfs_debug (fs_info , "send_truncate %llu size=%llu" , ino , size );
2639
-
2640
2617
p = get_path_for_command (sctx , ino , gen );
2641
2618
if (IS_ERR (p ))
2642
2619
return PTR_ERR (p );
@@ -2658,12 +2635,9 @@ static int send_truncate(struct send_ctx *sctx, u64 ino, u64 gen, u64 size)
2658
2635
2659
2636
static int send_chmod (struct send_ctx * sctx , u64 ino , u64 gen , u64 mode )
2660
2637
{
2661
- struct btrfs_fs_info * fs_info = sctx -> send_root -> fs_info ;
2662
2638
int ret = 0 ;
2663
2639
struct fs_path * p ;
2664
2640
2665
- btrfs_debug (fs_info , "send_chmod %llu mode=%llu" , ino , mode );
2666
-
2667
2641
p = get_path_for_command (sctx , ino , gen );
2668
2642
if (IS_ERR (p ))
2669
2643
return PTR_ERR (p );
@@ -2685,15 +2659,12 @@ static int send_chmod(struct send_ctx *sctx, u64 ino, u64 gen, u64 mode)
2685
2659
2686
2660
static int send_fileattr (struct send_ctx * sctx , u64 ino , u64 gen , u64 fileattr )
2687
2661
{
2688
- struct btrfs_fs_info * fs_info = sctx -> send_root -> fs_info ;
2689
2662
int ret = 0 ;
2690
2663
struct fs_path * p ;
2691
2664
2692
2665
if (sctx -> proto < 2 )
2693
2666
return 0 ;
2694
2667
2695
- btrfs_debug (fs_info , "send_fileattr %llu fileattr=%llu" , ino , fileattr );
2696
-
2697
2668
p = get_path_for_command (sctx , ino , gen );
2698
2669
if (IS_ERR (p ))
2699
2670
return PTR_ERR (p );
@@ -2715,13 +2686,9 @@ static int send_fileattr(struct send_ctx *sctx, u64 ino, u64 gen, u64 fileattr)
2715
2686
2716
2687
static int send_chown (struct send_ctx * sctx , u64 ino , u64 gen , u64 uid , u64 gid )
2717
2688
{
2718
- struct btrfs_fs_info * fs_info = sctx -> send_root -> fs_info ;
2719
2689
int ret = 0 ;
2720
2690
struct fs_path * p ;
2721
2691
2722
- btrfs_debug (fs_info , "send_chown %llu uid=%llu, gid=%llu" ,
2723
- ino , uid , gid );
2724
-
2725
2692
p = get_path_for_command (sctx , ino , gen );
2726
2693
if (IS_ERR (p ))
2727
2694
return PTR_ERR (p );
@@ -2744,7 +2711,6 @@ static int send_chown(struct send_ctx *sctx, u64 ino, u64 gen, u64 uid, u64 gid)
2744
2711
2745
2712
static int send_utimes (struct send_ctx * sctx , u64 ino , u64 gen )
2746
2713
{
2747
- struct btrfs_fs_info * fs_info = sctx -> send_root -> fs_info ;
2748
2714
int ret = 0 ;
2749
2715
struct fs_path * p = NULL ;
2750
2716
struct btrfs_inode_item * ii ;
@@ -2753,8 +2719,6 @@ static int send_utimes(struct send_ctx *sctx, u64 ino, u64 gen)
2753
2719
struct btrfs_key key ;
2754
2720
int slot ;
2755
2721
2756
- btrfs_debug (fs_info , "send_utimes %llu" , ino );
2757
-
2758
2722
p = get_path_for_command (sctx , ino , gen );
2759
2723
if (IS_ERR (p ))
2760
2724
return PTR_ERR (p );
@@ -2861,7 +2825,6 @@ static int trim_dir_utimes_cache(struct send_ctx *sctx)
2861
2825
*/
2862
2826
static int send_create_inode (struct send_ctx * sctx , u64 ino )
2863
2827
{
2864
- struct btrfs_fs_info * fs_info = sctx -> send_root -> fs_info ;
2865
2828
int ret = 0 ;
2866
2829
struct fs_path * p ;
2867
2830
int cmd ;
@@ -2870,8 +2833,6 @@ static int send_create_inode(struct send_ctx *sctx, u64 ino)
2870
2833
u64 mode ;
2871
2834
u64 rdev ;
2872
2835
2873
- btrfs_debug (fs_info , "send_create_inode %llu" , ino );
2874
-
2875
2836
p = fs_path_alloc ();
2876
2837
if (!p )
2877
2838
return - ENOMEM ;
@@ -4224,8 +4185,6 @@ static int process_recorded_refs(struct send_ctx *sctx, int *pending_move)
4224
4185
bool orphanized_dir = false;
4225
4186
bool orphanized_ancestor = false;
4226
4187
4227
- btrfs_debug (fs_info , "process_recorded_refs %llu" , sctx -> cur_ino );
4228
-
4229
4188
/*
4230
4189
* This should never happen as the root dir always has the same ref
4231
4190
* which is always '..'
@@ -5334,12 +5293,9 @@ static int put_file_data(struct send_ctx *sctx, u64 offset, u32 len)
5334
5293
*/
5335
5294
static int send_write (struct send_ctx * sctx , u64 offset , u32 len )
5336
5295
{
5337
- struct btrfs_fs_info * fs_info = sctx -> send_root -> fs_info ;
5338
5296
int ret = 0 ;
5339
5297
struct fs_path * p ;
5340
5298
5341
- btrfs_debug (fs_info , "send_write offset=%llu, len=%d" , offset , len );
5342
-
5343
5299
p = get_cur_inode_path (sctx );
5344
5300
if (IS_ERR (p ))
5345
5301
return PTR_ERR (p );
@@ -5372,11 +5328,6 @@ static int send_clone(struct send_ctx *sctx,
5372
5328
struct fs_path * cur_inode_path ;
5373
5329
u64 gen ;
5374
5330
5375
- btrfs_debug (sctx -> send_root -> fs_info ,
5376
- "send_clone offset=%llu, len=%d, clone_root=%llu, clone_inode=%llu, clone_offset=%llu" ,
5377
- offset , len , btrfs_root_id (clone_root -> root ),
5378
- clone_root -> ino , clone_root -> offset );
5379
-
5380
5331
cur_inode_path = get_cur_inode_path (sctx );
5381
5332
if (IS_ERR (cur_inode_path ))
5382
5333
return PTR_ERR (cur_inode_path );
0 commit comments