• C
    fs: split __shrink_dcache_sb · 3049cfe2
    Christoph Hellwig 提交于
    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: NChristoph Hellwig <hch@lst.de>
    Signed-off-by: NAl Viro <viro@zeniv.linux.org.uk>
    3049cfe2
dcache.c 62.5 KB