Carlos Maiolino
ae6e619e82
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:25:17 -07:00
..
2018-08-17 16:20:30 -07:00
2018-08-31 14:48:56 -06:00
2018-08-02 12:17:27 -06:00
2018-06-15 07:55:25 +09:00
2018-08-17 16:20:32 -07:00
2018-08-17 16:20:32 -07:00
2018-06-15 07:55:25 +09:00
2018-09-13 15:18:04 -10:00
2018-06-15 07:55:25 +09:00
2018-08-30 20:01:32 +02:00
2018-06-15 07:55:25 +09:00
2019-12-02 15:03:46 -08:00
2018-06-15 07:55:25 +09:00
2018-10-05 16:32:04 -07:00
2018-08-23 18:48:44 -07:00
2018-08-25 18:43:59 -07:00
2018-10-18 11:30:52 +02:00
2018-06-07 17:34:35 -07:00
2018-10-05 16:32:04 -07:00
2018-07-17 09:35:30 +02:00
2018-08-23 18:48:44 -07:00
2018-09-20 22:01:11 +02:00
2018-08-22 10:52:44 -07:00
2018-08-23 18:48:44 -07:00
2018-09-04 16:45:02 -07:00
2018-08-22 17:31:34 -07:00
2018-08-17 16:20:32 -07:00
2018-10-05 16:32:05 -07:00
2018-08-30 20:01:32 +02:00
2018-08-17 16:20:30 -07:00
2018-09-04 16:45:02 -07:00
2018-07-12 10:02:57 -04:00
2018-09-04 16:45:02 -07:00
2018-08-25 18:43:59 -07:00
2019-12-02 15:03:46 -08:00
2018-08-22 10:52:45 -07:00
2018-08-22 10:52:44 -07:00
2018-10-05 16:33:03 -07:00
2018-08-17 16:20:27 -07:00
2018-08-22 10:52:45 -07:00
2019-12-02 15:03:46 -08:00
2018-08-22 10:52:44 -07:00
2018-06-20 19:10:01 +02:00
2018-10-18 11:30:52 +02:00
2018-08-02 12:17:27 -06:00
2018-08-17 16:20:29 -07:00
2018-09-04 16:45:02 -07:00
2018-10-09 08:30:51 +02:00
2018-06-07 17:34:36 -07:00
2018-08-17 16:20:28 -07:00
2018-06-15 07:55:25 +09:00
2021-04-12 11:25:17 -07:00
2018-04-11 10:28:32 -07:00
2018-06-15 07:55:25 +09:00
2018-08-30 12:56:40 +02:00
2018-04-05 21:36:27 -07:00
2018-06-12 16:19:22 -07:00
2018-10-07 14:50:12 -07:00
2018-08-30 20:01:32 +02:00
2018-10-05 16:32:04 -07:00
2018-09-20 22:01:11 +02:00
2018-08-17 16:20:30 -07:00
2018-06-12 16:19:22 -07:00
2018-08-17 16:20:30 -07:00
2018-06-07 17:34:34 -07:00
2018-08-30 12:56:40 +02:00
2018-08-17 16:20:32 -07:00
2018-08-17 16:20:32 -07:00
2018-08-22 10:52:44 -07:00
2018-06-12 16:19:22 -07:00
2018-05-22 06:59:39 -07:00
2020-03-28 07:17:56 -07:00
2018-04-11 10:28:39 -07:00
2018-07-04 08:04:52 -07:00
2018-06-07 17:34:38 -07:00
2018-09-04 16:45:02 -07:00
2018-09-13 15:18:04 -10:00
2018-08-17 16:20:29 -07:00
2018-06-07 17:34:36 -07:00
2018-10-05 16:32:05 -07:00
2018-10-05 16:32:05 -07:00
2018-08-17 16:20:32 -07:00
2018-05-11 17:28:45 -07:00
2018-08-17 16:20:30 -07:00
2018-07-26 19:38:03 -07:00