aboutsummaryrefslogtreecommitdiffstats
path: root/fs/btrfs/inode.c
diff options
context:
space:
mode:
Diffstat (limited to 'fs/btrfs/inode.c')
-rw-r--r--fs/btrfs/inode.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/fs/btrfs/inode.c b/fs/btrfs/inode.c
index 073fdd77c784..24b7e97fccb9 100644
--- a/fs/btrfs/inode.c
+++ b/fs/btrfs/inode.c
@@ -3060,6 +3060,8 @@ static int __btrfs_releasepage(struct page *page, gfp_t gfp_flags)
3060 3060
3061static int btrfs_releasepage(struct page *page, gfp_t gfp_flags) 3061static int btrfs_releasepage(struct page *page, gfp_t gfp_flags)
3062{ 3062{
3063 if (PageWriteback(page) || PageDirty(page))
3064 return 0;
3063 return __btrfs_releasepage(page, gfp_flags); 3065 return __btrfs_releasepage(page, gfp_flags);
3064} 3066}
3065 3067