Eric Sandeen
9d65be36a7
xfs: only return -errno or success from attr ->put_listent
...
commit 2a6fba6d23 upstream.
Today, the put_listent formatters return either 1 or 0; if
they return 1, some callers treat this as an error and return
it up the stack, despite "1" not being a valid (negative)
error code.
The intent seems to be that if the input buffer is full,
we set seen_enough or set count = -1, and return 1;
but some callers check the return before checking the
seen_enough or count fields of the context.
Fix this by only returning non-zero for actual errors
encountered, and rely on the caller to first check the
return value, then check the values in the context to
decide what to do.
Signed-off-by: Eric Sandeen <sandeen@redhat.com >
Reviewed-by: Christoph Hellwig <hch@lst.de >
Signed-off-by: Dave Chinner <david@fromorbit.com >
Signed-off-by: Nikolay Borisov <nborisov@suse.com >
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org >
2017-06-07 12:06:03 +02:00
..
2017-05-14 13:32:54 +02:00
2015-06-30 19:44:57 -07:00
2016-06-07 18:14:32 -07:00
2016-09-30 10:18:37 +02:00
2015-07-04 19:36:06 -07:00
2017-01-19 20:17:21 +01:00
2015-11-16 20:38:43 -05:00
2017-05-25 14:30:13 +02:00
2017-05-20 14:27:01 +02:00
2015-09-10 13:29:01 -07:00
2015-11-20 16:17:32 -08:00
2016-05-04 14:48:41 -07:00
2016-08-16 09:30:49 +02:00
2016-10-22 12:26:56 +02:00
2016-09-15 08:27:47 +02:00
2016-03-03 15:07:09 -08:00
2015-06-25 17:00:42 -07:00
2015-12-12 10:15:34 -08:00
2016-10-31 04:13:58 -06:00
2017-05-25 14:30:11 +02:00
2017-05-25 14:30:11 +02:00
2017-03-15 09:57:15 +08:00
2015-08-07 13:59:24 +02:00
2015-11-11 02:11:02 -05:00
2017-03-12 06:37:28 +01:00
2017-04-30 05:49:28 +02:00
2015-09-10 13:29:01 -07:00
2016-10-31 04:13:58 -06:00
2016-09-30 10:18:39 +02:00
2016-06-01 12:15:54 -07:00
2016-02-25 12:01:22 -08:00
2016-10-28 03:01:34 -04:00
2017-03-12 06:37:26 +01:00
2016-10-31 04:13:58 -06:00
2016-10-31 04:13:58 -06:00
2016-09-24 10:07:36 +02:00
2015-11-11 20:11:28 -08:00
2015-11-06 17:50:42 -08:00
2015-07-04 19:36:06 -07:00
2016-03-16 08:42:59 -07:00
2017-03-12 06:37:30 +01:00
2015-08-13 10:22:06 -04:00
2017-05-25 14:30:18 +02:00
2016-08-10 11:49:25 +02:00
2016-09-30 10:18:37 +02:00
2015-11-06 17:50:42 -08:00
2017-01-19 20:17:19 +01:00
2016-11-10 16:36:34 +01:00
2017-05-25 14:30:10 +02:00
2016-10-28 03:01:27 -04:00
2015-06-23 18:02:00 -04:00
2016-04-12 09:08:56 -07:00
2015-10-16 11:42:28 -07:00
2016-10-31 04:13:58 -06:00
2015-11-13 20:34:33 -05:00
2017-04-12 12:38:33 +02:00
2015-11-23 21:11:08 -05:00
2015-11-04 22:13:45 -05:00
2017-01-26 08:23:48 +01:00
2016-02-25 12:01:18 -08:00
2015-09-09 10:43:12 -07:00
2017-06-07 12:06:03 +02:00
2016-10-07 15:23:47 +02:00
2016-10-22 12:26:56 +02:00
2015-11-10 12:07:22 -08:00
2015-11-11 09:45:24 -08:00
2017-05-20 14:27:01 +02:00
2015-11-11 02:19:33 -05:00
2015-08-05 13:49:35 -07:00
2015-10-23 23:26:43 +02:00
2016-11-18 10:48:34 +01:00
2015-11-16 23:54:45 -08:00
2017-01-19 20:17:21 +01:00
2016-03-03 15:07:28 -08:00
2015-08-17 18:39:46 -04:00
2017-01-06 11:16:14 +01:00
2016-04-12 09:08:58 -07:00
2015-08-07 04:39:40 +03:00
2015-11-05 23:05:32 -08:00
2016-04-12 09:09:04 -07:00
2016-08-10 11:49:30 +02:00
2015-08-17 23:38:10 -04:00
2015-11-16 23:54:45 -08:00
2015-08-12 15:28:45 -05:00
2016-08-10 11:49:27 +02:00
2015-10-15 10:33:21 -04:00
2017-04-30 05:49:28 +02:00
2015-11-06 17:50:42 -08:00
2016-09-15 08:27:49 +02:00
2017-04-30 05:49:28 +02:00
2015-09-11 15:21:34 -07:00
2016-05-18 17:06:48 -07:00
2016-06-07 18:14:35 -07:00
2017-04-30 05:49:28 +02:00
2017-04-30 05:49:28 +02:00
2017-01-26 08:23:47 +01:00
2016-04-12 09:08:55 -07:00
2016-09-07 08:32:43 +02:00
2015-08-07 04:39:40 +03:00
2017-02-23 17:43:09 +01:00
2015-11-09 15:11:24 -08:00
2016-10-28 03:01:32 -04:00
2015-11-06 17:50:42 -08:00
2017-05-08 07:46:01 +02:00
2016-03-16 08:43:01 -07:00
2016-10-22 12:26:56 +02:00
2017-05-20 14:27:01 +02:00