diff options
author | Eric Biggers <ebiggers@google.com> | 2016-10-11 10:36:12 -0700 |
---|---|---|
committer | Jaegeuk Kim <jaegeuk@kernel.org> | 2016-11-23 12:10:57 -0800 |
commit | 0c0b471e43e7acf0747c6eb410863bf78c14750d (patch) | |
tree | 21711c32abd717f6b28ad52c5e17d43b2ec38cc5 /fs/f2fs/inline.c | |
parent | 9de69279750e9740bc7221c7051a40c0516a58fb (diff) | |
download | op-kernel-dev-0c0b471e43e7acf0747c6eb410863bf78c14750d.zip op-kernel-dev-0c0b471e43e7acf0747c6eb410863bf78c14750d.tar.gz |
f2fs: fix sparse warnings
f2fs contained a number of endianness conversion bugs.
Also, one function should have been 'static'.
Found with sparse by running 'make C=2 CF=-D__CHECK_ENDIAN__ fs/f2fs/'
Signed-off-by: Eric Biggers <ebiggers@google.com>
Signed-off-by: Jaegeuk Kim <jaegeuk@kernel.org>
Diffstat (limited to 'fs/f2fs/inline.c')
-rw-r--r-- | fs/f2fs/inline.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/f2fs/inline.c b/fs/f2fs/inline.c index 210b2dc..9cd3379 100644 --- a/fs/f2fs/inline.c +++ b/fs/f2fs/inline.c @@ -421,7 +421,7 @@ static int f2fs_add_inline_entries(struct inode *dir, } new_name.name = d.filename[bit_pos]; - new_name.len = de->name_len; + new_name.len = le16_to_cpu(de->name_len); ino = le32_to_cpu(de->ino); fake_mode = get_de_type(de) << S_SHIFT; |