]> git.baikalelectronics.ru Git - kernel.git/commit
eCryptfs: Return useful code from contains_ecryptfs_marker
authorTyler Hicks <tyhicks@linux.vnet.ibm.com>
Mon, 2 May 2011 05:39:54 +0000 (00:39 -0500)
committerTyler Hicks <tyhicks@linux.vnet.ibm.com>
Sun, 29 May 2011 19:24:24 +0000 (14:24 -0500)
commit938a37e5032b702ed83c11dad9696801821421d4
tree63ae402692eae9b062b3423b6d081ebe9a192d36
parent4eff8dddabc57caaf27d21cf73ece4550ab653f5
eCryptfs: Return useful code from contains_ecryptfs_marker

Instead of having the calling functions translate the true/false return
code to either 0 or -EINVAL, have contains_ecryptfs_marker() return 0 or
-EINVAL so that the calling functions can just reuse the return code.

Also, rename the function to ecryptfs_validate_marker() to avoid callers
mistakenly thinking that it returns true/false codes.

Signed-off-by: Tyler Hicks <tyhicks@linux.vnet.ibm.com>
fs/ecryptfs/crypto.c