Home
last modified time | relevance | path

Searched refs:PF_MEMALLOC (Results 1 – 28 of 28) sorted by relevance

/linux-4.4.14/drivers/staging/lustre/include/linux/libcfs/linux/
Dlinux-mem.h63 #define memory_pressure_get() (current->flags & PF_MEMALLOC)
64 #define memory_pressure_set() do { current->flags |= PF_MEMALLOC; } while (0)
65 #define memory_pressure_clr() do { current->flags &= ~PF_MEMALLOC; } while (0)
/linux-4.4.14/kernel/
Dsoftirq.c245 current->flags &= ~PF_MEMALLOC; in __do_softirq()
301 tsk_restore_flags(current, old_flags, PF_MEMALLOC); in __do_softirq()
/linux-4.4.14/mm/
Dvmscan.c3444 tsk->flags |= PF_MEMALLOC | PF_SWAPWRITE | PF_KSWAPD; in kswapd()
3501 tsk->flags &= ~(PF_MEMALLOC | PF_SWAPWRITE | PF_KSWAPD); in kswapd()
3559 p->flags |= PF_MEMALLOC; in shrink_all_memory()
3568 p->flags &= ~PF_MEMALLOC; in shrink_all_memory()
3748 p->flags |= PF_MEMALLOC | PF_SWAPWRITE; in __zone_reclaim()
3764 current->flags &= ~(PF_MEMALLOC | PF_SWAPWRITE); in __zone_reclaim()
3794 if (!gfpflags_allow_blocking(gfp_mask) || (current->flags & PF_MEMALLOC)) in zone_reclaim()
Dpage_alloc.c2675 (current->flags & (PF_MEMALLOC | PF_EXITING))) in warn_alloc_failed()
2784 current->flags |= PF_MEMALLOC; in __alloc_pages_direct_compact()
2787 current->flags &= ~PF_MEMALLOC; in __alloc_pages_direct_compact()
2850 current->flags |= PF_MEMALLOC; in __perform_reclaim()
2860 current->flags &= ~PF_MEMALLOC; in __perform_reclaim()
2965 else if (in_serving_softirq() && (current->flags & PF_MEMALLOC)) in gfp_to_alloc_flags()
2968 ((current->flags & PF_MEMALLOC) || in gfp_to_alloc_flags()
3085 if (current->flags & PF_MEMALLOC) in __alloc_pages_slowpath()
Dmigrate.c806 if (current->flags & PF_MEMALLOC) in __unmap_and_move()
/linux-4.4.14/drivers/scsi/
Discsi_tcp.c377 current->flags |= PF_MEMALLOC; in iscsi_sw_tcp_pdu_xmit()
390 tsk_restore_flags(current, pflags, PF_MEMALLOC); in iscsi_sw_tcp_pdu_xmit()
/linux-4.4.14/drivers/block/
Dnbd.c189 current->flags |= PF_MEMALLOC; in sock_xmit()
216 tsk_restore_flags(current, pflags, PF_MEMALLOC); in sock_xmit()
/linux-4.4.14/fs/xfs/
Dxfs_trans_ail.c499 current->flags |= PF_MEMALLOC; in xfsaild()
Dxfs_aops.c974 if (WARN_ON_ONCE((current->flags & (PF_MEMALLOC|PF_KSWAPD)) == in xfs_vm_writepage()
975 PF_MEMALLOC)) in xfs_vm_writepage()
/linux-4.4.14/drivers/mmc/card/
Dqueue.c54 current->flags |= PF_MEMALLOC; in mmc_queue_thread()
/linux-4.4.14/fs/
Dmpage.c75 if (bio == NULL && (current->flags & PF_MEMALLOC)) { in mpage_alloc()
/linux-4.4.14/drivers/mtd/nand/
Dnandsim.c1378 if (current->flags & PF_MEMALLOC) in set_memalloc()
1380 current->flags |= PF_MEMALLOC; in set_memalloc()
1387 current->flags &= ~PF_MEMALLOC; in clear_memalloc()
/linux-4.4.14/fs/nfs/blocklayout/
Dblocklayout.c125 if (!bio && (current->flags & PF_MEMALLOC)) { in bl_alloc_init_bio()
/linux-4.4.14/drivers/staging/lustre/lustre/lov/
Dlov_io.c588 !(current->flags & PF_MEMALLOC); in lov_io_submit()
/linux-4.4.14/fs/ext4/
Dinode.c1892 if ((current->flags & PF_MEMALLOC) || in ext4_writepage()
1899 WARN_ON_ONCE((current->flags & (PF_MEMALLOC|PF_KSWAPD)) in ext4_writepage()
1900 == PF_MEMALLOC); in ext4_writepage()
4659 if (WARN_ON_ONCE(current->flags & PF_MEMALLOC)) in ext4_write_inode()
/linux-4.4.14/net/core/
Dsock.c375 current->flags |= PF_MEMALLOC; in __sk_backlog_rcv()
377 tsk_restore_flags(current, pflags, PF_MEMALLOC); in __sk_backlog_rcv()
Ddev.c3979 current->flags |= PF_MEMALLOC; in __netif_receive_skb()
3981 tsk_restore_flags(current, pflags, PF_MEMALLOC); in __netif_receive_skb()
/linux-4.4.14/fs/reiserfs/
Dinode.c1789 if (wbc->sync_mode == WB_SYNC_ALL && !(current->flags & PF_MEMALLOC)) { in reiserfs_write_inode()
2541 if (checked && (current->flags & PF_MEMALLOC)) { in reiserfs_write_full_page()
/linux-4.4.14/fs/jbd2/
Dtransaction.c1750 if (handle->h_sync && !(current->flags & PF_MEMALLOC)) in jbd2_journal_stop()
/linux-4.4.14/fs/ceph/
Daddr.c511 WARN_ON((current->flags & PF_MEMALLOC) == 0); in writepage_nounlock()
/linux-4.4.14/include/linux/
Dsched.h2080 #define PF_MEMALLOC 0x00000800 /* Allocating memory */ macro
/linux-4.4.14/Documentation/sysctl/
Dvm.txt432 Some minimal amount of memory is needed to satisfy PF_MEMALLOC
/linux-4.4.14/kernel/locking/
Dlockdep.c2745 if ((curr->flags & PF_MEMALLOC) && !(gfp_mask & __GFP_NOMEMALLOC)) in __lockdep_trace_alloc()
/linux-4.4.14/fs/xfs/libxfs/
Dxfs_btree.c2552 new_pflags |= PF_MEMALLOC | PF_SWAPWRITE | PF_KSWAPD; in xfs_btree_split_worker()
/linux-4.4.14/fs/cifs/
Dconnect.c857 current->flags |= PF_MEMALLOC; in cifs_demultiplex_thread()
/linux-4.4.14/fs/btrfs/
Ddisk-io.c3983 if (current->flags & PF_MEMALLOC) in __btrfs_btree_balance_dirty()
Dextent_io.c2760 if (bio == NULL && (current->flags & PF_MEMALLOC)) { in btrfs_bio_alloc()
Dinode.c8552 if (current->flags & PF_MEMALLOC) { in btrfs_writepage()