udf: fix default mode and dmode options handling
authorMarcin Slusarz <marcin.slusarz@gmail.com>
Tue, 2 Dec 2008 12:40:11 +0000 (13:40 +0100)
committerJan Kara <jack@suse.cz>
Thu, 2 Apr 2009 10:29:52 +0000 (12:29 +0200)
commit87bc730c07a0884d14d6af5c9d49f4669c0a0589
treeaae3f3b6286526e16ee9614923d227612affe51e
parente650b94addfbf072952df762e6f1c6c9e26c4f9c
udf: fix default mode and dmode options handling

On x86 (and several other archs) mode_t is defined as "unsigned short"
and comparing unsigned shorts to negative ints is broken (because short
is promoted to int and then compared). Fix it.

Reported-and-tested-by: Laurent Riffard <laurent.riffard@free.fr>
Signed-off-by: Marcin Slusarz <marcin.slusarz@gmail.com>
Signed-off-by: Jan Kara <jack@suse.cz>
fs/udf/inode.c
fs/udf/super.c
fs/udf/udf_sb.h