Home
last modified time | relevance | path

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

/linux-4.1.27/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.1.27/kernel/
Dsoftirq.c245 current->flags &= ~PF_MEMALLOC; in __do_softirq()
301 tsk_restore_flags(current, old_flags, PF_MEMALLOC); in __do_softirq()
/linux-4.1.27/mm/
Dvmscan.c3379 tsk->flags |= PF_MEMALLOC | PF_SWAPWRITE | PF_KSWAPD; in kswapd()
3436 tsk->flags &= ~(PF_MEMALLOC | PF_SWAPWRITE | PF_KSWAPD); in kswapd()
3494 p->flags |= PF_MEMALLOC; in shrink_all_memory()
3503 p->flags &= ~PF_MEMALLOC; in shrink_all_memory()
3683 p->flags |= PF_MEMALLOC | PF_SWAPWRITE; in __zone_reclaim()
3699 current->flags &= ~(PF_MEMALLOC | PF_SWAPWRITE); in __zone_reclaim()
3729 if (!(gfp_mask & __GFP_WAIT) || (current->flags & PF_MEMALLOC)) in zone_reclaim()
Dpage_alloc.c2326 (current->flags & (PF_MEMALLOC | PF_EXITING))) in warn_alloc_failed()
2470 current->flags |= PF_MEMALLOC; in __alloc_pages_direct_compact()
2473 current->flags &= ~PF_MEMALLOC; in __alloc_pages_direct_compact()
2536 current->flags |= PF_MEMALLOC; in __perform_reclaim()
2546 current->flags &= ~PF_MEMALLOC; in __perform_reclaim()
2654 else if (in_serving_softirq() && (current->flags & PF_MEMALLOC)) in gfp_to_alloc_flags()
2657 ((current->flags & PF_MEMALLOC) || in gfp_to_alloc_flags()
2761 if (current->flags & PF_MEMALLOC) in __alloc_pages_slowpath()
Dmigrate.c790 if (current->flags & PF_MEMALLOC) in __unmap_and_move()
/linux-4.1.27/drivers/block/
Dnbd.c163 current->flags |= PF_MEMALLOC; in sock_xmit()
211 tsk_restore_flags(current, pflags, PF_MEMALLOC); in sock_xmit()
/linux-4.1.27/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.1.27/fs/xfs/
Dxfs_trans_ail.c499 current->flags |= PF_MEMALLOC; in xfsaild()
Dxfs_aops.c969 if (WARN_ON_ONCE((current->flags & (PF_MEMALLOC|PF_KSWAPD)) == in xfs_vm_writepage()
970 PF_MEMALLOC)) in xfs_vm_writepage()
/linux-4.1.27/drivers/mmc/card/
Dqueue.c54 current->flags |= PF_MEMALLOC; in mmc_queue_thread()
/linux-4.1.27/fs/
Dmpage.c75 if (bio == NULL && (current->flags & PF_MEMALLOC)) { in mpage_alloc()
/linux-4.1.27/drivers/mtd/nand/
Dnandsim.c1379 if (current->flags & PF_MEMALLOC) in set_memalloc()
1381 current->flags |= PF_MEMALLOC; in set_memalloc()
1388 current->flags &= ~PF_MEMALLOC; in clear_memalloc()
/linux-4.1.27/fs/nfs/blocklayout/
Dblocklayout.c125 if (!bio && (current->flags & PF_MEMALLOC)) { in bl_alloc_init_bio()
/linux-4.1.27/drivers/staging/lustre/lustre/lov/
Dlov_io.c588 !(current->flags & PF_MEMALLOC); in lov_io_submit()
/linux-4.1.27/fs/ext4/
Dinode.c1861 if (current->flags & PF_MEMALLOC) { in ext4_writepage()
1867 WARN_ON_ONCE((current->flags & (PF_MEMALLOC|PF_KSWAPD)) in ext4_writepage()
1868 == PF_MEMALLOC); in ext4_writepage()
4617 if (WARN_ON_ONCE(current->flags & PF_MEMALLOC)) in ext4_write_inode()
/linux-4.1.27/net/core/
Dsock.c374 current->flags |= PF_MEMALLOC; in __sk_backlog_rcv()
376 tsk_restore_flags(current, pflags, PF_MEMALLOC); in __sk_backlog_rcv()
Ddev.c3816 current->flags |= PF_MEMALLOC; in __netif_receive_skb()
3818 tsk_restore_flags(current, pflags, PF_MEMALLOC); in __netif_receive_skb()
/linux-4.1.27/fs/jbd/
Dtransaction.c1472 if (handle->h_sync && !(current->flags & PF_MEMALLOC)) in journal_stop()
/linux-4.1.27/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.1.27/fs/jbd2/
Dtransaction.c1652 if (handle->h_sync && !(current->flags & PF_MEMALLOC)) in jbd2_journal_stop()
/linux-4.1.27/fs/ceph/
Daddr.c506 WARN_ON((current->flags & PF_MEMALLOC) == 0); in writepage_nounlock()
/linux-4.1.27/include/linux/
Dsched.h1975 #define PF_MEMALLOC 0x00000800 /* Allocating memory */ macro
/linux-4.1.27/Documentation/sysctl/
Dvm.txt432 Some minimal amount of memory is needed to satisfy PF_MEMALLOC
/linux-4.1.27/fs/ext3/
Dinode.c3204 if (WARN_ON_ONCE(current->flags & PF_MEMALLOC)) in ext3_write_inode()
/linux-4.1.27/kernel/locking/
Dlockdep.c2745 if ((curr->flags & PF_MEMALLOC) && !(gfp_mask & __GFP_NOMEMALLOC)) in __lockdep_trace_alloc()
/linux-4.1.27/fs/cifs/
Dconnect.c846 current->flags |= PF_MEMALLOC; in cifs_demultiplex_thread()
/linux-4.1.27/fs/xfs/libxfs/
Dxfs_btree.c2537 new_pflags |= PF_MEMALLOC | PF_SWAPWRITE | PF_KSWAPD; in xfs_btree_split_worker()
/linux-4.1.27/fs/btrfs/
Ddisk-io.c3881 if (current->flags & PF_MEMALLOC) in __btrfs_btree_balance_dirty()
Dextent_io.c2699 if (bio == NULL && (current->flags & PF_MEMALLOC)) { in btrfs_bio_alloc()
Dinode.c8424 if (current->flags & PF_MEMALLOC) { in btrfs_writepage()