summaryrefslogtreecommitdiff
path: root/scripts/sbom/git@git.tavy.me:linux.git
diff options
context:
space:
mode:
authorAlex Markuze <amarkuze@redhat.com>2026-04-28 07:41:33 +0000
committerIlya Dryomov <idryomov@gmail.com>2026-06-22 22:44:47 +0200
commit248e514000d552095025de0473165becfe8e810d (patch)
treefa9e4ba54fa5ee79730f1306e775f44c9e473956 /scripts/sbom/git@git.tavy.me:linux.git
parente120e2b666851c4c0c7bffd315ff69a09f9fe4ac (diff)
ceph: use proper endian conversion for flock_len in reconnect
Replace the __force __le32 cast with cpu_to_le32() for the flock_len field in reconnect_caps_cb(). The old code used a type-system bypass to silence sparse; the new form uses the proper endian conversion macro. Also switch from a raw bitmask test against i_ceph_flags to test_bit() on the named CEPH_I_ERROR_FILELOCK_BIT, which is the correct accessor for the unsigned long flags field after the bit-position conversion. Remove the now-unused CEPH_I_ERROR_FILELOCK mask define since all callers use the _BIT form with test_bit/set_bit/clear_bit. Signed-off-by: Alex Markuze <amarkuze@redhat.com> Reviewed-by: Viacheslav Dubeyko <Slava.Dubeyko@ibm.com> Signed-off-by: Viacheslav Dubeyko <Slava.Dubeyko@ibm.com> Signed-off-by: Ilya Dryomov <idryomov@gmail.com>
Diffstat (limited to 'scripts/sbom/git@git.tavy.me:linux.git')
0 files changed, 0 insertions, 0 deletions