patch-2.2.3 linux/fs/dcache.c
Next file: linux/fs/dquot.c
Previous file: linux/fs/buffer.c
Back to the patch index
Back to the overall index
- Lines: 10
- Date:
Wed Feb 24 16:00:25 1999
- Orig file:
v2.2.2/linux/fs/dcache.c
- Orig date:
Mon Jan 25 17:44:34 1999
diff -u --recursive --new-file v2.2.2/linux/fs/dcache.c linux/fs/dcache.c
@@ -470,7 +470,8 @@
*/
void shrink_dcache_memory(int priority, unsigned int gfp_mask)
{
- prune_dcache(0);
+ if (gfp_mask & __GFP_IO)
+ prune_dcache(0);
}
#define NAME_ALLOC_LEN(len) ((len+16) & ~15)
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)