Use proper flags mask.

This commit is contained in:
Justin Husted 2019-10-08 16:21:59 -07:00 committed by Kent Overstreet
parent fd0b8fe7f0
commit 3214b44d90

View File

@ -248,7 +248,7 @@ err:
static void bcachefs_fuse_mkdir(fuse_req_t req, fuse_ino_t dir,
const char *name, mode_t mode)
{
BUG_ON(mode & (~S_IALLUGO));
BUG_ON(mode & S_IFMT);
mode |= S_IFDIR;
bcachefs_fuse_mknod(req, dir, name, mode, 0);