Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 0045edaa authored by Marcin Slusarz's avatar Marcin Slusarz Committed by Linus Torvalds
Browse files

ufs: remove unused fs64_add and fs64_sub



remove fs64_add and fs64_sub - they probably weren't ever used because
their prototypes used u32 instead of __fs64

Signed-off-by: default avatarMarcin Slusarz <marcin.slusarz@gmail.com>
Cc: Evgeniy Dushistov <dushistov@mail.ru>
Signed-off-by: default avatarAndrew Morton <akpm@linux-foundation.org>
Signed-off-by: default avatarLinus Torvalds <torvalds@linux-foundation.org>
parent 9746077a
Loading
Loading
Loading
Loading
+0 −18
Original line number Original line Diff line number Diff line
@@ -40,24 +40,6 @@ cpu_to_fs64(struct super_block *sbp, u64 n)
		return (__force __fs64)cpu_to_be64(n);
		return (__force __fs64)cpu_to_be64(n);
}
}


static __inline u32
fs64_add(struct super_block *sbp, u32 *n, int d)
{
	if (UFS_SB(sbp)->s_bytesex == BYTESEX_LE)
		return *n = cpu_to_le64(le64_to_cpu(*n)+d);
	else
		return *n = cpu_to_be64(be64_to_cpu(*n)+d);
}

static __inline u32
fs64_sub(struct super_block *sbp, u32 *n, int d)
{
	if (UFS_SB(sbp)->s_bytesex == BYTESEX_LE)
		return *n = cpu_to_le64(le64_to_cpu(*n)-d);
	else
		return *n = cpu_to_be64(be64_to_cpu(*n)-d);
}

static __inline u32
static __inline u32
fs32_to_cpu(struct super_block *sbp, __fs32 n)
fs32_to_cpu(struct super_block *sbp, __fs32 n)
{
{