diff options
| author | Ryusuke Konishi <[email protected]> | 2024-04-30 08:00:19 +0000 |
|---|---|---|
| committer | Andrew Morton <[email protected]> | 2024-05-08 15:41:28 +0000 |
| commit | 91d743a9c8299de1fc1b47428d8bb4c85face00f (patch) | |
| tree | 73406145a3923ac7e3bf642de82db45fbfee5d15 /net/unix/af_unix.c | |
| parent | squashfs: remove calls to set the folio error flag (diff) | |
| download | kernel-91d743a9c8299de1fc1b47428d8bb4c85face00f.tar.gz kernel-91d743a9c8299de1fc1b47428d8bb4c85face00f.zip | |
nilfs2: make superblock data array index computation sparse friendly
Upon running sparse, "warning: dubious: x & !y" is output at an array
index calculation within nilfs_load_super_block().
The calculation is not wrong, but to eliminate the sparse warning, replace
it with an equivalent calculation.
Also, add a comment to make it easier to understand what the unintuitive
array index calculation is doing and whether it's correct.
Link: https://lkml.kernel.org/r/[email protected]
Fixes: e339ad31f599 ("nilfs2: introduce secondary super block")
Signed-off-by: Ryusuke Konishi <[email protected]>
Cc: Bart Van Assche <[email protected]>
Cc: Jens Axboe <[email protected]>
Cc: kernel test robot <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Diffstat (limited to 'net/unix/af_unix.c')
0 files changed, 0 insertions, 0 deletions
