[PATCH 3.18 30/45] kernfs: fix regression in kernfs_fop_write caused by wrong type