Carlos Maiolino
ea4899e241
fs: Enable bmap() function to properly return errors
...
By now, bmap() will either return the physical block number related to
the requested file offset or 0 in case of error or the requested offset
maps into a hole.
This patch makes the needed changes to enable bmap() to proper return
errors, using the return value as an error return, and now, a pointer
must be passed to bmap() to be filled with the mapped physical block.
It will change the behavior of bmap() on return:
- negative value in case of error
- zero on success or map fell into a hole
In case of a hole, the *block will be zero too
Since this is a prep patch, by now, the only error return is -EINVAL if
->bmap doesn't exist.
Reviewed-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Carlos Maiolino <cmaiolino@redhat.com>
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
2021-04-12 11:23:11 -07:00
..
2017-11-02 11:10:55 +01:00
2017-09-11 14:16:44 -06:00
2017-09-08 18:26:46 -07:00
2017-11-02 11:10:55 +01:00
2017-06-05 16:59:12 +02:00
2017-11-02 11:10:55 +01:00
2017-10-13 16:18:32 -07:00
2017-11-02 11:10:55 +01:00
2017-11-02 11:10:55 +01:00
2017-11-02 11:10:55 +01:00
2017-11-02 11:10:55 +01:00
2017-02-27 18:43:47 -08:00
2017-11-02 11:10:55 +01:00
2017-11-02 11:10:55 +01:00
2017-11-02 11:10:55 +01:00
2019-12-02 15:55:55 -08:00
2017-12-05 11:26:28 +01:00
2017-12-10 13:40:43 +01:00
2017-11-02 11:10:55 +01:00
2017-09-08 18:26:46 -07:00
2018-01-09 17:01:36 -08:00
2017-12-05 11:26:30 +01:00
2017-05-03 15:52:12 -07:00
2017-11-02 11:10:55 +01:00
2017-09-06 17:27:30 -07:00
2017-09-08 18:26:49 -07:00
2017-09-08 18:26:46 -07:00
2017-05-03 15:52:10 -07:00
2017-11-02 11:10:55 +01:00
2017-11-02 11:10:55 +01:00
2017-07-06 16:24:34 -07:00
2017-10-03 17:54:23 -07:00
2017-10-03 17:54:25 -07:00
2017-12-05 11:26:29 +01:00
2017-11-02 11:10:55 +01:00
2017-08-25 16:12:46 -07:00
2017-12-05 11:26:29 +01:00
2017-10-03 17:54:26 -07:00
2017-08-17 10:30:49 +02:00
2019-12-02 15:55:55 -08:00
2017-10-13 16:18:32 -07:00
2017-11-02 11:10:55 +01:00
2017-11-02 11:10:55 +01:00
2017-11-02 11:10:55 +01:00
2017-11-02 11:10:55 +01:00
2017-11-02 11:10:55 +01:00
2019-12-02 15:55:55 -08:00
2017-03-02 08:42:38 +01:00
2017-08-31 16:13:00 -07:00
2017-11-02 11:10:55 +01:00
2017-11-02 11:10:55 +01:00
2017-11-02 11:10:55 +01:00
2017-11-02 11:10:55 +01:00
2017-11-02 11:10:55 +01:00
2017-09-14 18:13:32 -07:00
2017-12-05 11:26:28 +01:00
2017-12-05 11:26:28 +01:00
2017-11-02 11:10:55 +01:00
2017-11-24 08:37:05 +01:00
2017-11-02 11:10:55 +01:00
2021-04-12 11:23:11 -07:00
2017-11-02 11:10:55 +01:00
2017-11-02 11:10:55 +01:00
2017-11-02 11:10:55 +01:00
2017-11-02 11:10:55 +01:00
2018-06-28 15:49:24 -07:00
2017-11-24 08:37:04 +01:00
2017-11-02 11:10:55 +01:00
2017-07-26 17:41:05 -04:00
2017-09-27 14:45:57 -07:00
2017-06-29 11:23:38 -04:00
2017-10-19 13:13:49 +01:00
2017-11-02 11:10:55 +01:00
2017-03-02 08:42:28 +01:00
2017-11-02 11:10:55 +01:00
2016-12-12 18:55:08 -08:00
2017-09-08 18:26:49 -07:00
2017-10-03 17:54:24 -07:00
2017-09-13 18:53:16 -07:00
2017-11-02 11:10:55 +01:00
2017-11-02 11:10:55 +01:00
2017-11-02 11:10:55 +01:00
2017-11-02 11:10:55 +01:00
2017-12-14 09:53:10 +01:00
2017-11-02 11:10:55 +01:00
2017-11-02 11:10:55 +01:00
2017-11-02 11:10:55 +01:00
2017-11-02 11:10:55 +01:00
2017-11-02 11:10:55 +01:00
2018-06-28 15:49:24 -07:00
2020-03-28 07:26:01 -07:00
2017-07-10 16:32:32 -07:00
2017-04-05 12:30:18 -07:00
2017-09-06 17:27:28 -07:00
2020-01-28 10:37:32 -08:00
2017-11-02 11:10:55 +01:00
2017-10-13 16:18:32 -07:00
2017-07-10 16:32:31 -07:00
2017-11-02 11:10:55 +01:00
2017-09-08 18:26:47 -07:00
2017-11-02 11:10:55 +01:00
2017-11-30 08:40:44 +00:00
2017-12-14 09:53:10 +01:00
2017-07-06 16:24:35 -07:00