diff options
author | Russell King <rmk+kernel@armlinux.org.uk> | 2019-12-09 11:08:49 +0000 |
---|---|---|
committer | Al Viro <viro@zeniv.linux.org.uk> | 2020-01-20 20:12:40 -0500 |
commit | 197ba3c519312a0bed91aeaf34095b2c09c6431a (patch) | |
tree | be6067609c33ffdadfd27bacf3816094fcac7224 /CREDITS | |
parent | 7b1952676256d2cdc03d0415a4c0e6bfb64e00ff (diff) |
fs/adfs: map: incorporate map offsets into layout
lookup_zone() and scan_free_map() cope in different ways with the
location of the map data within a zone:
1. lookup_zone() adds a four byte offset to the map data pointer to
skip over the check and free link bytes.
2. scan_free_map() needs to use the free link pointer, which is an
offset from itself, so we end up adding a 32-bit offset to the
end pointer (aka mapsize) which is really confusing.
Rename mapsize to endbit as this is really what it is, and incorporate
the 32-bit offset into the map layout. This means that both dm_startbit
and dm_endbit are now bit offsets from the start of the buffer, rather
than four bytes in to the buffer.
Signed-off-by: Russell King <rmk+kernel@armlinux.org.uk>
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
Diffstat (limited to 'CREDITS')
0 files changed, 0 insertions, 0 deletions