@@ -1203,7 +1203,7 @@ static int cow_file_range_async(struct inode *inode, struct page *locked_page,
12031203 u64 cur_end ;
12041204
12051205 clear_extent_bit (& BTRFS_I (inode )-> io_tree , start , end , EXTENT_LOCKED ,
1206- 1 , 0 , NULL , GFP_NOFS );
1206+ 1 , 0 , NULL );
12071207 while (start < end ) {
12081208 async_cow = kmalloc (sizeof (* async_cow ), GFP_NOFS );
12091209 BUG_ON (!async_cow ); /* -ENOMEM */
@@ -3000,7 +3000,7 @@ static int btrfs_finish_ordered_io(struct btrfs_ordered_extent *ordered_extent)
30003000
30013001 clear_extent_bit (io_tree , ordered_extent -> file_offset ,
30023002 ordered_extent -> file_offset + ordered_extent -> len - 1 ,
3003- EXTENT_DEFRAG , 0 , 0 , & cached_state , GFP_NOFS );
3003+ EXTENT_DEFRAG , 0 , 0 , & cached_state );
30043004 }
30053005
30063006 if (nolock )
@@ -3070,7 +3070,7 @@ static int btrfs_finish_ordered_io(struct btrfs_ordered_extent *ordered_extent)
30703070 ordered_extent -> len - 1 ,
30713071 clear_bits ,
30723072 (clear_bits & EXTENT_LOCKED ) ? 1 : 0 ,
3073- 0 , & cached_state , GFP_NOFS );
3073+ 0 , & cached_state );
30743074 }
30753075
30763076 if (trans )
@@ -4812,7 +4812,7 @@ int btrfs_truncate_block(struct inode *inode, loff_t from, loff_t len,
48124812 clear_extent_bit (& BTRFS_I (inode )-> io_tree , block_start , block_end ,
48134813 EXTENT_DIRTY | EXTENT_DELALLOC |
48144814 EXTENT_DO_ACCOUNTING | EXTENT_DEFRAG ,
4815- 0 , 0 , & cached_state , GFP_NOFS );
4815+ 0 , 0 , & cached_state );
48164816
48174817 ret = btrfs_set_extent_delalloc (inode , block_start , block_end , 0 ,
48184818 & cached_state , 0 );
@@ -5248,8 +5248,7 @@ static void evict_inode_truncate_pages(struct inode *inode)
52485248 clear_extent_bit (io_tree , start , end ,
52495249 EXTENT_LOCKED | EXTENT_DIRTY |
52505250 EXTENT_DELALLOC | EXTENT_DO_ACCOUNTING |
5251- EXTENT_DEFRAG , 1 , 1 ,
5252- & cached_state , GFP_NOFS );
5251+ EXTENT_DEFRAG , 1 , 1 , & cached_state );
52535252
52545253 cond_resched ();
52555254 spin_lock (& io_tree -> lock );
@@ -7936,7 +7935,7 @@ static int btrfs_get_blocks_direct(struct inode *inode, sector_t iblock,
79367935 if (lockstart < lockend ) {
79377936 clear_extent_bit (& BTRFS_I (inode )-> io_tree , lockstart ,
79387937 lockend , unlock_bits , 1 , 0 ,
7939- & cached_state , GFP_NOFS );
7938+ & cached_state );
79407939 } else {
79417940 free_extent_state (cached_state );
79427941 }
@@ -7947,7 +7946,7 @@ static int btrfs_get_blocks_direct(struct inode *inode, sector_t iblock,
79477946
79487947unlock_err :
79497948 clear_extent_bit (& BTRFS_I (inode )-> io_tree , lockstart , lockend ,
7950- unlock_bits , 1 , 0 , & cached_state , GFP_NOFS );
7949+ unlock_bits , 1 , 0 , & cached_state );
79517950err :
79527951 if (dio_data )
79537952 current -> journal_info = dio_data ;
@@ -8989,8 +8988,7 @@ static void btrfs_invalidatepage(struct page *page, unsigned int offset,
89898988 EXTENT_DIRTY | EXTENT_DELALLOC |
89908989 EXTENT_DELALLOC_NEW |
89918990 EXTENT_LOCKED | EXTENT_DO_ACCOUNTING |
8992- EXTENT_DEFRAG , 1 , 0 , & cached_state ,
8993- GFP_NOFS );
8991+ EXTENT_DEFRAG , 1 , 0 , & cached_state );
89948992 /*
89958993 * whoever cleared the private bit is responsible
89968994 * for the finish_ordered_io
@@ -9047,7 +9045,7 @@ static void btrfs_invalidatepage(struct page *page, unsigned int offset,
90479045 EXTENT_LOCKED | EXTENT_DIRTY |
90489046 EXTENT_DELALLOC | EXTENT_DELALLOC_NEW |
90499047 EXTENT_DO_ACCOUNTING | EXTENT_DEFRAG , 1 , 1 ,
9050- & cached_state , GFP_NOFS );
9048+ & cached_state );
90519049
90529050 __btrfs_releasepage (page , GFP_NOFS );
90539051 }
@@ -9175,7 +9173,7 @@ int btrfs_page_mkwrite(struct vm_fault *vmf)
91759173 clear_extent_bit (& BTRFS_I (inode )-> io_tree , page_start , end ,
91769174 EXTENT_DIRTY | EXTENT_DELALLOC |
91779175 EXTENT_DO_ACCOUNTING | EXTENT_DEFRAG ,
9178- 0 , 0 , & cached_state , GFP_NOFS );
9176+ 0 , 0 , & cached_state );
91799177
91809178 ret = btrfs_set_extent_delalloc (inode , page_start , end , 0 ,
91819179 & cached_state , 0 );
0 commit comments