linux-mm.kvack.org archive mirror
 help / color / mirror / Atom feed
* [RFC PATCH 0/2] return value from shrinkers
@ 2013-05-13 14:16 Oskar Andero
  2013-05-13 14:16 ` [RFC PATCH 1/2] mm: vmscan: let any negative return value from shrinker mean error Oskar Andero
                   ` (3 more replies)
  0 siblings, 4 replies; 14+ messages in thread
From: Oskar Andero @ 2013-05-13 14:16 UTC (permalink / raw)
  To: linux-kernel, linux-mm
  Cc: Hugh Dickins, Greg Kroah-Hartman, Radovan Lekanovic,
	David Rientjes, Oskar Andero

Hi,

In a previous discussion on lkml it was noted that the shrinkers use the
magic value "-1" to signal that something went wrong.

This patch-set implements the suggestion of instead using errno.h values
to return something more meaningful.

The first patch simply changes the check from -1 to any negative value and
updates the comment accordingly.

The second patch updates the shrinkers to return an errno.h value instead
of -1. Since this one spans over many different areas I need input on what is
a meaningful return value. Right now I used -EBUSY on everything for consitency.

What do you say? Is this a good idea or does it make no sense at all?

Thanks!

-Oskar

Oskar Andero (2):
  mm: vmscan: let any negative return value from shrinker mean error
  Clean-up shrinker return values

 drivers/staging/android/ashmem.c     | 2 +-
 drivers/staging/zcache/zcache-main.c | 2 +-
 fs/gfs2/glock.c                      | 2 +-
 fs/gfs2/quota.c                      | 2 +-
 fs/nfs/dir.c                         | 2 +-
 fs/ubifs/shrinker.c                  | 2 +-
 include/linux/shrinker.h             | 5 +++--
 mm/vmscan.c                          | 2 +-
 net/sunrpc/auth.c                    | 2 +-
 9 files changed, 11 insertions(+), 10 deletions(-)

-- 
1.8.1.5

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

^ permalink raw reply	[flat|nested] 14+ messages in thread

end of thread, other threads:[~2013-05-16 16:27 UTC | newest]

Thread overview: 14+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-05-13 14:16 [RFC PATCH 0/2] return value from shrinkers Oskar Andero
2013-05-13 14:16 ` [RFC PATCH 1/2] mm: vmscan: let any negative return value from shrinker mean error Oskar Andero
2013-05-16  0:47   ` Dave Chinner
2013-05-13 14:16 ` [RFC PATCH 2/2] Clean-up shrinker return values Oskar Andero
2013-05-14 15:03 ` [RFC PATCH 0/2] return value from shrinkers Glauber Costa
2013-05-15 14:10   ` Oskar Andero
2013-05-15 14:18     ` Glauber Costa
2013-05-15 14:47       ` Oskar Andero
2013-05-15 14:49         ` Glauber Costa
2013-05-16  8:20           ` Oskar Andero
2013-05-16  8:23             ` Glauber Costa
2013-05-15 23:05 ` Andrew Morton
2013-05-16  7:52   ` Oskar Andero
2013-05-16 16:27     ` Andrew Morton

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).