ufs: move calculation of offsets into ufs_getfrag_block()
authorAl Viro <viro@zeniv.linux.org.uk>
Thu, 4 Jun 2015 18:27:23 +0000 (14:27 -0400)
committerAl Viro <viro@zeniv.linux.org.uk>
Mon, 6 Jul 2015 21:39:53 +0000 (17:39 -0400)
commit4b7068c8b178401637ef2fb068d6256c97d23f4a
treec08bd8f7aa0d7a07ef71b636685f496834649fea
parent5a39c25562aa5eab5a798919855cf41ddeed8b0d
ufs: move calculation of offsets into ufs_getfrag_block()

... and massage ufs_frag_map() to take those instead of fragment number.

As it is, we duplicate the damn thing on the write side, open-coded and
bloody hard to follow.

Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
fs/ufs/inode.c