]> git.hungrycats.org Git - linux/commit
[PATCH] 32-bit dev_t: internal use
authorAlexander Viro <viro@www.linux.org.uk>
Tue, 23 Sep 2003 05:52:17 +0000 (22:52 -0700)
committerLinus Torvalds <torvalds@home.osdl.org>
Tue, 23 Sep 2003 05:52:17 +0000 (22:52 -0700)
commit40d2adc65cc233bbbd5437efe1df224b04a5ebf1
tree88f5df8a1b2c13aedcddf5f09fd391e4f52015d9
parent18d0c6d3ba8df654d99677ab070037d6c0d9c055
[PATCH] 32-bit dev_t: internal use

Starting the conversion:
* internal dev_t made 32bit.
* new helpers - new_encode_dev(), new_decode_dev(), huge_encode_dev(),
huge_decode_dev(), new_valid_dev().  They do encoding/decoding of 32bit and
64bit values; for now huge_... are aliases for new_... and new_valid_dev()
is always true.  We do 12:20 for 32bit; representation is compatible with
16bit one - we have major in bits 19--8 and minor in 31--20,7--0.  That's
what the userland sees; internally we have (major << 20)|minor, of course.
* MKDEV(), MAJOR() and MINOR() updated.
* several places used to handle Missed'em'V dev_t (14:18 split)
manually; that stuff had been taken into common helpers.
Now we can start replacing old_... with new_... and huge_..., depending
on the width available.  MKDEV() callers should (for now) make sure that major
and minor are within 12:20.  That's what the next chunk will do.
arch/mips/kernel/sysirix.c
arch/sparc64/solaris/fs.c
drivers/s390/block/dasd_int.h
fs/libfs.c
fs/xfs/linux/xfs_iops.c
fs/xfs/linux/xfs_super.c
fs/xfs/xfs_types.h
include/linux/fs.h
include/linux/kdev_t.h
include/linux/raid/md_k.h
include/linux/types.h