diff options
author | Marcin Slusarz <marcin.slusarz@gmail.com> | 2008-04-28 05:16:18 -0400 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2008-04-28 11:58:45 -0400 |
commit | 0045edaaf980e577272eeb11832daebaeb5d63c4 (patch) | |
tree | eadc4782c3421fe32f65e259f0fce908ce5c80b5 /fs/ufs | |
parent | 9746077a71d01b8d86f5e471a3a2c8f1fa91ef94 (diff) |
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: Marcin Slusarz <marcin.slusarz@gmail.com>
Cc: Evgeniy Dushistov <dushistov@mail.ru>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'fs/ufs')
-rw-r--r-- | fs/ufs/swab.h | 18 |
1 files changed, 0 insertions, 18 deletions
diff --git a/fs/ufs/swab.h b/fs/ufs/swab.h index a4340d0267bb..c89e6ad891fb 100644 --- a/fs/ufs/swab.h +++ b/fs/ufs/swab.h | |||
@@ -41,24 +41,6 @@ cpu_to_fs64(struct super_block *sbp, u64 n) | |||
41 | } | 41 | } |
42 | 42 | ||
43 | static __inline u32 | 43 | static __inline u32 |
44 | fs64_add(struct super_block *sbp, u32 *n, int d) | ||
45 | { | ||
46 | if (UFS_SB(sbp)->s_bytesex == BYTESEX_LE) | ||
47 | return *n = cpu_to_le64(le64_to_cpu(*n)+d); | ||
48 | else | ||
49 | return *n = cpu_to_be64(be64_to_cpu(*n)+d); | ||
50 | } | ||
51 | |||
52 | static __inline u32 | ||
53 | fs64_sub(struct super_block *sbp, u32 *n, int d) | ||
54 | { | ||
55 | if (UFS_SB(sbp)->s_bytesex == BYTESEX_LE) | ||
56 | return *n = cpu_to_le64(le64_to_cpu(*n)-d); | ||
57 | else | ||
58 | return *n = cpu_to_be64(be64_to_cpu(*n)-d); | ||
59 | } | ||
60 | |||
61 | static __inline u32 | ||
62 | fs32_to_cpu(struct super_block *sbp, __fs32 n) | 44 | fs32_to_cpu(struct super_block *sbp, __fs32 n) |
63 | { | 45 | { |
64 | if (UFS_SB(sbp)->s_bytesex == BYTESEX_LE) | 46 | if (UFS_SB(sbp)->s_bytesex == BYTESEX_LE) |