]> pilppa.com Git - linux-2.6-omap-h63xx.git/commitdiff
[PATCH] befs: missing fs32_to_cpu() in debug.c
authorAl Viro <viro@ftp.linux.org.uk>
Sat, 24 Dec 2005 08:09:03 +0000 (03:09 -0500)
committerLinus Torvalds <torvalds@g5.osdl.org>
Tue, 10 Oct 2006 23:15:33 +0000 (16:15 -0700)
inode->mode is disk-endian

Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
fs/befs/debug.c

index 3afd0882fdb9c67cc2b8dc936cad9c06a3a5620a..bb68370f6494a68e1a5c5288ee8316a34c077acc 100644 (file)
@@ -124,7 +124,7 @@ befs_dump_inode(const struct super_block *sb, befs_inode * inode)
        befs_debug(sb, "  type %08x", fs32_to_cpu(sb, inode->type));
        befs_debug(sb, "  inode_size %u", fs32_to_cpu(sb, inode->inode_size));
 
-       if (S_ISLNK(inode->mode)) {
+       if (S_ISLNK(fs32_to_cpu(sb, inode->mode))) {
                befs_debug(sb, "  Symbolic link [%s]", inode->data.symlink);
        } else {
                int i;