Fix a return value bug which would cause unused-return warning. This is exposed with -D_FORTIFY_SOURCE=2.

Signed-off-by: rong zeng <rongzeng@us.ibm.com>
Fix XFS compilation issues
Commit for ptv4.1_rev_5

Signed-off-by: Venkateswararao Jujjuri "<jvrao@linux.vnet.ibm.com>