[PATCH 1/4] AFS: Add TestSetPageError()



Add a TestSetPageError() macro to the suite of page flag manipulators. This
can be used by AFS to prevent over-excision of rejected writes from the page
cache.

Signed-off-by: David Howells <dhowells@xxxxxxxxxx>
---

include/linux/page-flags.h | 1 +
1 files changed, 1 insertions(+), 0 deletions(-)

diff --git a/include/linux/page-flags.h b/include/linux/page-flags.h
index ae2d79f..cc8d952 100644
--- a/include/linux/page-flags.h
+++ b/include/linux/page-flags.h
@@ -121,6 +121,7 @@
#define PageError(page) test_bit(PG_error, &(page)->flags)
#define SetPageError(page) set_bit(PG_error, &(page)->flags)
#define ClearPageError(page) clear_bit(PG_error, &(page)->flags)
+#define TestSetPageError(page) test_and_set_bit(PG_error, &(page)->flags)

#define PageReferenced(page) test_bit(PG_referenced, &(page)->flags)
#define SetPageReferenced(page) set_bit(PG_referenced, &(page)->flags)

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/



Relevant Pages

  • Re: Damn you, FEDEX! or Nikon D40 lost in Springfield, MO blackhole.
    ... the 2 mp Mavica he had been using with a Nikon D40. ... After shopping around, he got me to order one for him. ... The shipper had it insured, but from what I have read it could take weeks to sort this crap out. ... You may get your insurance from FedEx and a couple weeks later they find it and deliver it. ...
    (alt.photography)
  • Re:delay line? velocity factor???
    ... containing the electric field in the neighborhood ... between the wires; in the dipole, it's also between the wires, but the ... loading coils and "slinky" antennas. ... thus make delay lines. ...
    (rec.radio.amateur.antenna)
  • [PATCH 17/22] AFS: Add TestSetPageError()
    ... Add a TestSetPageErrormacro to the suite of page flag manipulators. ... can be used by AFS to prevent over-excision of rejected writes from the page ... cache. ...
    (Linux-Kernel)
  • [PATCH 19/24] AFS: Add TestSetPageError()
    ... Add a TestSetPageErrormacro to the suite of page flag manipulators. ... can be used by AFS to prevent over-excision of rejected writes from the page ... cache. ...
    (Linux-Kernel)
  • [PATCH 23/28] AFS: Add TestSetPageError() [try #2]
    ... Add a TestSetPageErrormacro to the suite of page flag manipulators. ... can be used by AFS to prevent over-excision of rejected writes from the page ... cache. ...
    (Linux-Kernel)