JFS: simplify types to get rid of sparse warning