Commit 66c937f3 authored by Alexander Viro's avatar Alexander Viro Committed by Linus Torvalds

[PATCH] prepare for 32-bit dev_t: CODA

	Added old_encode_dev()/old_decode_dev() in CODA code - on assignments
to/from ->va_rdev.
parent 427e541d
......@@ -38,7 +38,7 @@ static void coda_fill_inode(struct inode *inode, struct coda_vattr *attr)
inode->i_data.a_ops = &coda_symlink_aops;
inode->i_mapping = &inode->i_data;
} else
init_special_inode(inode, inode->i_mode, attr->va_rdev);
init_special_inode(inode, inode->i_mode, old_decode_dev(attr->va_rdev));
}
static int coda_test_inode(struct inode *inode, void *data)
......
......@@ -345,7 +345,7 @@ int venus_create(struct super_block *sb, struct CodaFid *dirfid,
inp->coda_create.VFid = *dirfid;
inp->coda_create.attr.va_mode = mode;
inp->coda_create.attr.va_rdev = rdev;
inp->coda_create.attr.va_rdev = old_encode_dev(rdev);
inp->coda_create.excl = excl;
inp->coda_create.mode = mode;
inp->coda_create.name = offset;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment