Add cvhanges introduced for Porting to older kernel
Fix the revalidate flag definition and use and put the revalidate in correct context
Move the call to cancel_delayed_sync to outside spinlock