Btrfs: Fix releasepage to properly keep dirty and writeback pages
Signed-off-by: Chris Mason <chris.mason@oracle.com>
This commit is contained in:
@@ -3060,6 +3060,8 @@ static int __btrfs_releasepage(struct page *page, gfp_t gfp_flags)
|
||||
|
||||
static int btrfs_releasepage(struct page *page, gfp_t gfp_flags)
|
||||
{
|
||||
if (PageWriteback(page) || PageDirty(page))
|
||||
return 0;
|
||||
return __btrfs_releasepage(page, gfp_flags);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user