• Jeff Dike's avatar
    uml: hppfs fixes · a0612b1f
    Jeff Dike authored
    hppfs tidying and fixes noticed during hch's get_inode work -
          style fixes
          a copy_to_user got its return value checked
          hppfs_write no longer fiddles file->f_pos because it gets and
    returns pos in its arguments
          hppfs_delete_inode dputs the underlyng procfs dentry stored in
    its private data and mntputs the vfsmnt stashed in s_fs_info
          hppfs_put_super no longer needs to mntput the s_fs_info, so it
    no longer needs to exist
          hppfs_readlink and hppfs_follow_link were doing a bunch of stuff
    with a struct file which they didn't use
          there is now a ->permission which calls generic_permission
          get_inode was always returning 0 for some reason - it now
    returns an inode if nothing bad happened
    Signed-off-by: default avatarJeff Dike <jdike@linux.intel.com>
    Cc: WANG Cong <xiyou.wangcong@gmail.com>
    Signed-off-by: default avatarAndrew Morton <akpm@linux-foundation.org>
    Signed-off-by: default avatarLinus Torvalds <torvalds@linux-foundation.org>
    a0612b1f
hppfs_kern.c 16.4 KB