Skip to content
  • J. Bruce Fields's avatar
    nfsd: check d_can_lookup in fh_verify of directories · e75b23f9
    J. Bruce Fields authored
    
    
    Create and other nfsd ops generally assume we can call lookup_one_len on
    inodes with S_IFDIR set.  Al says that this assumption isn't true in
    general, though it should be for the filesystem objects nfsd sees.
    
    Add a check just to make sure our assumption isn't violated.
    
    Remove a couple checks for i_op->lookup in create code.
    
    Cc: Al Viro <viro@zeniv.linux.org.uk>
    Signed-off-by: default avatarJ. Bruce Fields <bfields@redhat.com>
    e75b23f9