File tree Expand file tree Collapse file tree 1 file changed +8
-8
lines changed Expand file tree Collapse file tree 1 file changed +8
-8
lines changed Original file line number Diff line number Diff line change @@ -3180,10 +3180,10 @@ static inline int buffer_busy(struct buffer_head *bh)
3180
3180
(bh -> b_state & ((1 << BH_Dirty ) | (1 << BH_Lock )));
3181
3181
}
3182
3182
3183
- static int
3184
- drop_buffers (struct page * page , struct buffer_head * * buffers_to_free )
3183
+ static bool
3184
+ drop_buffers (struct folio * folio , struct buffer_head * * buffers_to_free )
3185
3185
{
3186
- struct buffer_head * head = page_buffers ( page );
3186
+ struct buffer_head * head = folio_buffers ( folio );
3187
3187
struct buffer_head * bh ;
3188
3188
3189
3189
bh = head ;
@@ -3201,10 +3201,10 @@ drop_buffers(struct page *page, struct buffer_head **buffers_to_free)
3201
3201
bh = next ;
3202
3202
} while (bh != head );
3203
3203
* buffers_to_free = head ;
3204
- detach_page_private ( page );
3205
- return 1 ;
3204
+ folio_detach_private ( folio );
3205
+ return true ;
3206
3206
failed :
3207
- return 0 ;
3207
+ return false ;
3208
3208
}
3209
3209
3210
3210
bool try_to_free_buffers (struct folio * folio )
@@ -3218,12 +3218,12 @@ bool try_to_free_buffers(struct folio *folio)
3218
3218
return false;
3219
3219
3220
3220
if (mapping == NULL ) { /* can this still happen? */
3221
- ret = drop_buffers (& folio -> page , & buffers_to_free );
3221
+ ret = drop_buffers (folio , & buffers_to_free );
3222
3222
goto out ;
3223
3223
}
3224
3224
3225
3225
spin_lock (& mapping -> private_lock );
3226
- ret = drop_buffers (& folio -> page , & buffers_to_free );
3226
+ ret = drop_buffers (folio , & buffers_to_free );
3227
3227
3228
3228
/*
3229
3229
* If the filesystem writes its buffers by hand (eg ext3)
You can’t perform that action at this time.
0 commit comments