diff options
author | Tomohiro Kusumi <[email protected]> | 2018-08-14 05:33:47 +0900 |
---|---|---|
committer | Brian Behlendorf <[email protected]> | 2018-08-13 13:33:47 -0700 |
commit | fe8a7982ca90c3c9b8a09ec33f032527d7034a7b (patch) | |
tree | 7a972bbf026f435feaa894a1c9abbb206a25f431 | |
parent | 64e96969a88c21aebb2f8d982a8c345e55a2ae6c (diff) |
Fix comment on calculating blkid
Fix comment on calculating blkid at level n within dnode's blkptrs.
"(2^(level*(indblkshift - SPA_BLKPTRSHIFT)" is part of divisor
in this division.
Reviewed-by: Brian Behlendorf <[email protected]>
Signed-off-by: Tomohiro Kusumi <[email protected]>
Closes #7768
-rw-r--r-- | module/zfs/dbuf.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/module/zfs/dbuf.c b/module/zfs/dbuf.c index 2724f3aa2..f0bee6c2b 100644 --- a/module/zfs/dbuf.c +++ b/module/zfs/dbuf.c @@ -1152,7 +1152,7 @@ dbuf_whichblock(const dnode_t *dn, const int64_t level, const uint64_t offset) * 2^(level*(indblkshift - SPA_BLKPTRSHIFT)). * * Thus, the level n blkid is: offset / - * ((2^datablkshift)*(2^(level*(indblkshift - SPA_BLKPTRSHIFT))) + * ((2^datablkshift)*(2^(level*(indblkshift-SPA_BLKPTRSHIFT)))) * = offset / 2^(datablkshift + level * * (indblkshift - SPA_BLKPTRSHIFT)) * = offset >> (datablkshift + level * |