inode.c (3d48ae45e72390ddf8cc5256ac32ed6f7a19cbea) | inode.c (1495f230fa7750479c79e3656286b9183d662077) |
---|---|
1/* 2 * linux/fs/inode.c 3 * 4 * (C) 1997 Linus Torvalds 5 */ 6 7#include <linux/fs.h> 8#include <linux/mm.h> --- 737 unchanged lines hidden (view full) --- 746 * shrink_icache_memory() will attempt to reclaim some unused inodes. Here, 747 * "unused" means that no dentries are referring to the inodes: the files are 748 * not open and the dcache references to those inodes have already been 749 * reclaimed. 750 * 751 * This function is passed the number of inodes to scan, and it returns the 752 * total number of remaining possibly-reclaimable inodes. 753 */ | 1/* 2 * linux/fs/inode.c 3 * 4 * (C) 1997 Linus Torvalds 5 */ 6 7#include <linux/fs.h> 8#include <linux/mm.h> --- 737 unchanged lines hidden (view full) --- 746 * shrink_icache_memory() will attempt to reclaim some unused inodes. Here, 747 * "unused" means that no dentries are referring to the inodes: the files are 748 * not open and the dcache references to those inodes have already been 749 * reclaimed. 750 * 751 * This function is passed the number of inodes to scan, and it returns the 752 * total number of remaining possibly-reclaimable inodes. 753 */ |
754static int shrink_icache_memory(struct shrinker *shrink, int nr, gfp_t gfp_mask) | 754static int shrink_icache_memory(struct shrinker *shrink, 755 struct shrink_control *sc) |
755{ | 756{ |
757 int nr = sc->nr_to_scan; 758 gfp_t gfp_mask = sc->gfp_mask; 759 |
|
756 if (nr) { 757 /* 758 * Nasty deadlock avoidance. We may hold various FS locks, 759 * and we don't want to recurse into the FS that called us 760 * in clear_inode() and friends.. 761 */ 762 if (!(gfp_mask & __GFP_FS)) 763 return -1; --- 967 unchanged lines hidden --- | 760 if (nr) { 761 /* 762 * Nasty deadlock avoidance. We may hold various FS locks, 763 * and we don't want to recurse into the FS that called us 764 * in clear_inode() and friends.. 765 */ 766 if (!(gfp_mask & __GFP_FS)) 767 return -1; --- 967 unchanged lines hidden --- |