aboutsummaryrefslogtreecommitdiffstats
path: root/fs/xfs/xfs_buf.h
diff options
context:
space:
mode:
authorDave Chinner <dchinner@redhat.com>2012-04-23 01:58:56 -0400
committerBen Myers <bpm@sgi.com>2012-05-14 17:20:52 -0400
commitaa5c158ec97bd4014f47a2bc0150fb6b20e6c48b (patch)
tree8c79791167a5d659949952ad11a08ce325eb025c /fs/xfs/xfs_buf.h
parent7ca790a507a9288ebedab90a8e40b9afa8e4e949 (diff)
xfs: kill XBF_DONTBLOCK
Just about all callers of xfs_buf_read() and xfs_buf_get() use XBF_DONTBLOCK. This is used to make memory allocation use GFP_NOFS rather than GFP_KERNEL to avoid recursion through memory reclaim back into the filesystem. All the blocking get calls in growfs occur inside a transaction, even though they are no part of the transaction, so all allocation will be GFP_NOFS due to the task flag PF_TRANS being set. The blocking read calls occur during log recovery, so they will probably be unaffected by converting to GFP_NOFS allocations. Hence make XBF_DONTBLOCK behaviour always occur for buffers and kill the flag. Signed-off-by: Dave Chinner <dchinner@redhat.com> Reviewed-by: Christoph Hellwig <hch@lst.de> Reviewed-by: Mark Tinguely <tinguely@sgi.com> Signed-off-by: Ben Myers <bpm@sgi.com>
Diffstat (limited to 'fs/xfs/xfs_buf.h')
-rw-r--r--fs/xfs/xfs_buf.h2
1 files changed, 0 insertions, 2 deletions
diff --git a/fs/xfs/xfs_buf.h b/fs/xfs/xfs_buf.h
index 512d9a6776a5..846dee3d8dac 100644
--- a/fs/xfs/xfs_buf.h
+++ b/fs/xfs/xfs_buf.h
@@ -53,7 +53,6 @@ typedef enum {
53 53
54/* flags used only as arguments to access routines */ 54/* flags used only as arguments to access routines */
55#define XBF_TRYLOCK (1 << 16)/* lock requested, but do not wait */ 55#define XBF_TRYLOCK (1 << 16)/* lock requested, but do not wait */
56#define XBF_DONT_BLOCK (1 << 17)/* do not block in current thread */
57 56
58/* flags used only internally */ 57/* flags used only internally */
59#define _XBF_PAGES (1 << 20)/* backed by refcounted pages */ 58#define _XBF_PAGES (1 << 20)/* backed by refcounted pages */
@@ -74,7 +73,6 @@ typedef unsigned int xfs_buf_flags_t;
74 { XBF_FUA, "FUA" }, \ 73 { XBF_FUA, "FUA" }, \
75 { XBF_FLUSH, "FLUSH" }, \ 74 { XBF_FLUSH, "FLUSH" }, \
76 { XBF_TRYLOCK, "TRYLOCK" }, /* should never be set */\ 75 { XBF_TRYLOCK, "TRYLOCK" }, /* should never be set */\
77 { XBF_DONT_BLOCK, "DONT_BLOCK" }, /* ditto */\
78 { _XBF_PAGES, "PAGES" }, \ 76 { _XBF_PAGES, "PAGES" }, \
79 { _XBF_KMEM, "KMEM" }, \ 77 { _XBF_KMEM, "KMEM" }, \
80 { _XBF_DELWRI_Q, "DELWRI_Q" } 78 { _XBF_DELWRI_Q, "DELWRI_Q" }