summaryrefslogtreecommitdiff
path: root/debian/patches/0010-ext2fs-fix-diskfs_pager_users.patch
diff options
context:
space:
mode:
Diffstat (limited to 'debian/patches/0010-ext2fs-fix-diskfs_pager_users.patch')
-rw-r--r--debian/patches/0010-ext2fs-fix-diskfs_pager_users.patch29
1 files changed, 29 insertions, 0 deletions
diff --git a/debian/patches/0010-ext2fs-fix-diskfs_pager_users.patch b/debian/patches/0010-ext2fs-fix-diskfs_pager_users.patch
new file mode 100644
index 00000000..2f78e1e2
--- /dev/null
+++ b/debian/patches/0010-ext2fs-fix-diskfs_pager_users.patch
@@ -0,0 +1,29 @@
+From f834b1f76f22f301daf9759973244838fecae56b Mon Sep 17 00:00:00 2001
+From: Justus Winter <4winter@informatik.uni-hamburg.de>
+Date: Sun, 25 May 2014 14:18:35 +0200
+Subject: [PATCH 10/12] ext2fs: fix diskfs_pager_users
+
+This fixes a bug introduced in 86122789.
+
+* ext2fs/pager.c (diskfs_pager_users): We count file_pager_bucket,
+which does not include the disk pagers. Fix condition accordingly.
+---
+ ext2fs/pager.c | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+diff --git a/ext2fs/pager.c b/ext2fs/pager.c
+index 017efcc..ce5bc6d 100644
+--- a/ext2fs/pager.c
++++ b/ext2fs/pager.c
+@@ -1449,7 +1449,7 @@ diskfs_pager_users ()
+ {
+ int npagers = ports_count_bucket (file_pager_bucket);
+
+- if (npagers <= 1)
++ if (npagers == 0)
+ return 0;
+
+ if (MAY_CACHE)
+--
+2.0.0.rc2
+