• Christoph Hellwig's avatar
    fs: split __shrink_dcache_sb · 3049cfe2
    Christoph Hellwig authored
    Currently __shrink_dcache_sb has an extremly awkward calling convention
    because it tries to please very different callers.  Split out the
    main loop into a shrink_dentry_list helper, which gets called directly
    from shrink_dcache_sb for the cases where all dentries need to be pruned,
    or from __shrink_dcache_sb for pruning only a certain number of dentries.
    Signed-off-by: default avatarChristoph Hellwig <hch@lst.de>
    Signed-off-by: default avatarAl Viro <viro@zeniv.linux.org.uk>
    3049cfe2
dcache.c 62.5 KB