• Christoph Hellwig's avatar
    [XFS] wire up ->open for directories · f999a5bf
    Christoph Hellwig authored
    Currently there's no ->open method set for directories on XFS.  That
    means we don't perform any check for opening too large directories
    without O_LARGEFILE, we don't check for shut down filesystems, and we
    don't actually do the readahead for the first block in the directory.
    
    Instead of just setting the directories open routine to xfs_file_open
    we merge the shutdown check directly into xfs_file_open and create
    a new xfs_dir_open that first calls xfs_file_open and then performs
    the readahead for block 0.
    
    (First sent on September 29th)
    Signed-off-by: default avatarChristoph Hellwig <hch@lst.de>
    Reviewed-by: default avatarDave Chinner <david@fromorbit.com>
    Signed-off-by: default avatarNiv Sardi <xaiki@sgi.com>
    f999a5bf
xfs_file.c 9.41 KB