eCryptfs: Replace miscdev read/write magic numbers
authorTyler Hicks <tyhicks@canonical.com>
Sat, 14 Jan 2012 15:46:46 +0000 (16:46 +0100)
committerTyler Hicks <tyhicks@canonical.com>
Wed, 25 Jan 2012 20:43:40 +0000 (14:43 -0600)
commit48399c0b0e6172888a2e2e36df1595ab1e049ba8
tree7fb94f7ce80de13fd419e69322d9e6b157a49f91
parent7f133504249afa48618becac546ce3c35c9f0185
eCryptfs: Replace miscdev read/write magic numbers

ecryptfs_miscdev_read() and ecryptfs_miscdev_write() contained many
magic numbers for specifying packet header field sizes and offsets. This
patch defines those values and replaces the magic values.

Signed-off-by: Tyler Hicks <tyhicks@canonical.com>
fs/ecryptfs/ecryptfs_kernel.h
fs/ecryptfs/keystore.c
fs/ecryptfs/miscdev.c