Skip to contentSkip to conversation

mm/Kconfig: NEED_BOUNCE_POOL: clean-up condition

PATCH In review Valentin Rothberg 2 participants 4 messages Jul 23, 2015

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 mm/Kconfig: NEED_BOUNCE_POOL: clean-up condition

commit 106542e7987c ("fs: Remove ext3 filesystem driver") removed ext3 and JBD, hence remove the superfluous condition.

---
I detected the issue with undertaker-checkpatch
(https://undertaker.cs.fau.de)

 mm/Kconfig | 8 +-------
 1 file changed, 1 insertion(+), 7 deletions(-)
mm/Kconfig +1 -7
index e79de2bd12cd..d4e6495a720f 100644
@@ -299,15 +299,9 @@ config BOUNCE
 # On the 'tile' arch, USB OHCI needs the bounce pool since tilegx will often
 # have more than 4GB of memory, but we don't currently use the IOTLB to present
 # a 32-bit address to OHCI.  So we need to use a bounce pool instead.
-#
-# We also use the bounce pool to provide stable page writes for jbd.  jbd
-# initiates buffer writeback without locking the page or setting PG_writeback,
-# and fixing that behavior (a second time; jbd2 doesn't have this problem) is
-# a major rework effort.  Instead, use the bounce buffer to snapshot pages
-# (until jbd goes away).  The only jbd user is ext3.
 config NEED_BOUNCE_POOL
 	bool
-	default y if (TILE && USB_OHCI_HCD) || (BLK_DEV_INTEGRITY && JBD)
+	default y if TILE && USB_OHCI_HCD
 
 config NR_QUICK
 	int
Signature · 7 lines
1.9.1

--
To unsubscribe, send a message with 'unsubscribe linux-mm' in
the body to [email protected].  For more info on Linux MM,
see: http://www.linux-mm.org/ .
Don't email: <a href=mailto:"[email protected]"> [email protected] </a>
#1 lore raw
Quoted 7 lines · Valentin Rothberg

commit 106542e7987c ("fs: Remove ext3 filesystem driver") removed ext3 and JBD, hence remove the superfluous condition.

---
I detected the issue with undertaker-checkpatch
(https://undertaker.cs.fau.de)

Thanks. I have added your patch into my tree. BTW, is the checker automated enough that it could be made part of the 0-day tests Fengguang runs?

Honza

Quoted 27 lines
 mm/Kconfig | 8 +-------
 1 file changed, 1 insertion(+), 7 deletions(-)
mm/Kconfig +1 -7
index e79de2bd12cd..d4e6495a720f 100644
@@ -299,15 +299,9 @@ config BOUNCE
 # On the 'tile' arch, USB OHCI needs the bounce pool since tilegx will often
 # have more than 4GB of memory, but we don't currently use the IOTLB to present
 # a 32-bit address to OHCI.  So we need to use a bounce pool instead.
-#
-# We also use the bounce pool to provide stable page writes for jbd.  jbd
-# initiates buffer writeback without locking the page or setting PG_writeback,
-# and fixing that behavior (a second time; jbd2 doesn't have this problem) is
-# a major rework effort.  Instead, use the bounce buffer to snapshot pages
-# (until jbd goes away).  The only jbd user is ext3.
 config NEED_BOUNCE_POOL
 	bool
-	default y if (TILE && USB_OHCI_HCD) || (BLK_DEV_INTEGRITY && JBD)
+	default y if TILE && USB_OHCI_HCD
 
 config NR_QUICK
 	int
Signature · 1 line
1.9.1
Signature · 8 lines
Jan Kara <[email protected]>
SUSE Labs, CR

--
To unsubscribe, send a message with 'unsubscribe linux-mm' in
the body to [email protected].  For more info on Linux MM,
see: http://www.linux-mm.org/ .
Don't email: <a href=mailto:"[email protected]"> [email protected] </a>
#2 lore raw

Hi Jan,

Quoted 11 lines · Jan Kara
Quoted 7 lines · Valentin Rothberg

commit 106542e7987c ("fs: Remove ext3 filesystem driver") removed ext3 and JBD, hence remove the superfluous condition.

---
I detected the issue with undertaker-checkpatch
(https://undertaker.cs.fau.de)

Thanks. I have added your patch into my tree. BTW, is the checker automated enough that it could be made part of the 0-day tests Fengguang runs?

The checker is automated, but it also produces false positives for certain kinds of bugs/defects, so we decided to run the bot on our servers at the University of Erlangen-Nuremberg. It runs daily on linux-next; we check the reports and fix the issue as above or we report it to the authors and maintainers. So we catch things as soon as they are in linux-next.

If you want to check for symbolic issues (i.e., references on undefined Kconfig opionts/symbols) you can use scripts/checkkconfigsymbols.py which detects most of the cases. However, this script did not catch the upper case (I will check why).

Kind regards,
Valentin

Quoted 24 lines

Honza

Quoted 22 lines
 mm/Kconfig | 8 +-------
 1 file changed, 1 insertion(+), 7 deletions(-)
mm/Kconfig +1 -7
index e79de2bd12cd..d4e6495a720f 100644
@@ -299,15 +299,9 @@ config BOUNCE
 # On the 'tile' arch, USB OHCI needs the bounce pool since tilegx will often
 # have more than 4GB of memory, but we don't currently use the IOTLB to present
 # a 32-bit address to OHCI.  So we need to use a bounce pool instead.
-#
-# We also use the bounce pool to provide stable page writes for jbd.  jbd
-# initiates buffer writeback without locking the page or setting PG_writeback,
-# and fixing that behavior (a second time; jbd2 doesn't have this problem) is
-# a major rework effort.  Instead, use the bounce buffer to snapshot pages
-# (until jbd goes away).  The only jbd user is ext3.
 config NEED_BOUNCE_POOL
      bool
-     default y if (TILE && USB_OHCI_HCD) || (BLK_DEV_INTEGRITY && JBD)
+     default y if TILE && USB_OHCI_HCD
 
Quoted 8 lines
Quoted 5 lines
mm/Kconfig +0 -1
 config NR_QUICK
      int
--

1.9.1

--
Jan Kara <[email protected]>
SUSE Labs, CR

--
To unsubscribe, send a message with 'unsubscribe linux-mm' in the body to [email protected]. For more info on Linux MM,
see: http://www.linux-mm.org/ .
Don't email: <a href=mailto:"[email protected]"> [email protected] </a>

#3 lore raw
Quoted 22 lines · Valentin Rothberg

Hi Jan,

Quoted 11 lines · Jan Kara
Quoted 7 lines · Valentin Rothberg

commit 106542e7987c ("fs: Remove ext3 filesystem driver") removed ext3 and JBD, hence remove the superfluous condition.

---
I detected the issue with undertaker-checkpatch
(https://undertaker.cs.fau.de)

Thanks. I have added your patch into my tree. BTW, is the checker automated enough that it could be made part of the 0-day tests Fengguang runs?

The checker is automated, but it also produces false positives for certain kinds of bugs/defects, so we decided to run the bot on our servers at the University of Erlangen-Nuremberg. It runs daily on linux-next; we check the reports and fix the issue as above or we report it to the authors and maintainers. So we catch things as soon as they are in linux-next.

Quoted 4 lines

If you want to check for symbolic issues (i.e., references on undefined Kconfig opionts/symbols) you can use scripts/checkkconfigsymbols.py which detects most of the cases. However, this script did not catch the upper case (I will check why).

checkkconfigsymbols.py did not detect the issue since it does not check (yet) default statements. I fixed it locally and will send a patch tomorrow after testing it on more Linux versions.

Kind regards,
Valentin

Quoted 35 lines

Kind regards,
Valentin

Quoted 32 lines

Honza

Quoted 25 lines
 mm/Kconfig | 8 +-------
 1 file changed, 1 insertion(+), 7 deletions(-)
mm/Kconfig +1 -8
index e79de2bd12cd..d4e6495a720f 100644
@@ -299,15 +299,9 @@ config BOUNCE
 # On the 'tile' arch, USB OHCI needs the bounce pool since tilegx will often
 # have more than 4GB of memory, but we don't currently use the IOTLB to present
 # a 32-bit address to OHCI.  So we need to use a bounce pool instead.
-#
-# We also use the bounce pool to provide stable page writes for jbd.  jbd
-# initiates buffer writeback without locking the page or setting PG_writeback,
-# and fixing that behavior (a second time; jbd2 doesn't have this problem) is
-# a major rework effort.  Instead, use the bounce buffer to snapshot pages
-# (until jbd goes away).  The only jbd user is ext3.
 config NEED_BOUNCE_POOL
      bool
-     default y if (TILE && USB_OHCI_HCD) || (BLK_DEV_INTEGRITY && JBD)
+     default y if TILE && USB_OHCI_HCD
 
 config NR_QUICK
      int
--
Quoted 2 lines

1.9.1

--
Jan Kara <[email protected]>
SUSE Labs, CR

--
To unsubscribe, send a message with 'unsubscribe linux-mm' in the body to [email protected]. For more info on Linux MM,
see: http://www.linux-mm.org/ .
Don't email: <a href=mailto:"[email protected]"> [email protected] </a>