summaryrefslogtreecommitdiffstats
path: root/fs
diff options
context:
space:
mode:
authorKent Overstreet <kent.overstreet@linux.dev>2023-08-03 09:29:42 +0200
committerKent Overstreet <kent.overstreet@linux.dev>2023-10-22 23:10:09 +0200
commit0a6d694584aeb739b976bf69646fa3c23ee117c3 (patch)
tree8cbf5075356c248d141ac9e70845fd36c5c6e3ea /fs
parentbcachefs: Fix overlapping extent repair (diff)
downloadlinux-0a6d694584aeb739b976bf69646fa3c23ee117c3.tar.xz
linux-0a6d694584aeb739b976bf69646fa3c23ee117c3.zip
bcachefs: Fix folio leak in folio_hole_offset()
Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>
Diffstat (limited to '')
-rw-r--r--fs/bcachefs/fs-io.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/fs/bcachefs/fs-io.c b/fs/bcachefs/fs-io.c
index 0661dfd9a8d0..c461b65ab57a 100644
--- a/fs/bcachefs/fs-io.c
+++ b/fs/bcachefs/fs-io.c
@@ -3830,6 +3830,7 @@ static bool folio_hole_offset(struct address_space *mapping, loff_t *offset,
ret = false;
unlock:
folio_unlock(folio);
+ folio_put(folio);
return ret;
}