• J
    nfsd: check d_can_lookup in fh_verify of directories · e75b23f9
    J. Bruce Fields 提交于
    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: NJ. Bruce Fields <bfields@redhat.com>
    e75b23f9
nfsfh.c 18.2 KB