https://github.com/torvalds/linux
Revision ae98043f5f7fa45b65084f70e3ada3209873ebb4 authored by Ryusuke Konishi on 04 September 2018, 22:46:30 UTC, committed by Linus Torvalds on 04 September 2018, 23:45:02 UTC
Remove the verbose license text from NILFS2 files and replace them with
SPDX tags.  This does not change the license of any of the code.

Link: http://lkml.kernel.org/r/1535624528-5982-1-git-send-email-konishi.ryusuke@lab.ntt.co.jp
Signed-off-by: Ryusuke Konishi <konishi.ryusuke@lab.ntt.co.jp>
Reviewed-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
1 parent 36bdac1
Raw File
Tip revision: ae98043f5f7fa45b65084f70e3ada3209873ebb4 authored by Ryusuke Konishi on 04 September 2018, 22:46:30 UTC
nilfs2: convert to SPDX license tags
Tip revision: ae98043
ceph_frag.c
// SPDX-License-Identifier: GPL-2.0
/*
 * Ceph 'frag' type
 */
#include <linux/module.h>
#include <linux/ceph/types.h>

int ceph_frag_compare(__u32 a, __u32 b)
{
	unsigned va = ceph_frag_value(a);
	unsigned vb = ceph_frag_value(b);
	if (va < vb)
		return -1;
	if (va > vb)
		return 1;
	va = ceph_frag_bits(a);
	vb = ceph_frag_bits(b);
	if (va < vb)
		return -1;
	if (va > vb)
		return 1;
	return 0;
}
back to top