In nfs_dir_read() count used before and after limiting?

Peter Dufault dufault at
Thu Sep 11 13:58:34 UTC 2014

In nfs_dir_read() I see:

    /* align + round down the buffer */
    count &= ~ (DIRENT_HEADER_SIZE - 1);
    di->len = count;

Then later:
    if (count > NFS_MAXDATA)
        count = NFS_MAXDATA;

    di->readdirargs.count = count;

Can someone who understands this comment on it?

Peter Dufault
HD Associates, Inc.      Software and System Engineering

More information about the devel mailing list