aboutsummaryrefslogtreecommitdiffstats
path: root/fs/xfs/xfs_buf.h
diff options
context:
space:
mode:
authorDave Chinner <dchinner@redhat.com>2012-04-23 01:58:54 -0400
committerBen Myers <bpm@sgi.com>2012-05-14 17:20:50 -0400
commita8acad70731e7d0585f25f33f8a009176f001f70 (patch)
tree07a14f8bde89e7947f56df7203530b7713b186ac /fs/xfs/xfs_buf.h
parent795cac72e902496adac399389f9affe5d1ab821a (diff)
xfs: kill XBF_LOCK
Buffers are always returned locked from the lookup routines. Hence we don't need to tell the lookup routines to return locked buffers, on to try and lock them. Remove XBF_LOCK from all the callers and from internal buffer cache usage. 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.h4
1 files changed, 1 insertions, 3 deletions
diff --git a/fs/xfs/xfs_buf.h b/fs/xfs/xfs_buf.h
index 5b048f7d13ea..512d9a6776a5 100644
--- a/fs/xfs/xfs_buf.h
+++ b/fs/xfs/xfs_buf.h
@@ -52,7 +52,6 @@ typedef enum {
52#define XBF_FLUSH (1 << 12)/* flush the disk cache before a write */ 52#define XBF_FLUSH (1 << 12)/* flush the disk cache before a write */
53 53
54/* flags used only as arguments to access routines */ 54/* flags used only as arguments to access routines */
55#define XBF_LOCK (1 << 15)/* lock requested */
56#define XBF_TRYLOCK (1 << 16)/* lock requested, but do not wait */ 55#define XBF_TRYLOCK (1 << 16)/* lock requested, but do not wait */
57#define XBF_DONT_BLOCK (1 << 17)/* do not block in current thread */ 56#define XBF_DONT_BLOCK (1 << 17)/* do not block in current thread */
58 57
@@ -74,8 +73,7 @@ typedef unsigned int xfs_buf_flags_t;
74 { XBF_SYNCIO, "SYNCIO" }, \ 73 { XBF_SYNCIO, "SYNCIO" }, \
75 { XBF_FUA, "FUA" }, \ 74 { XBF_FUA, "FUA" }, \
76 { XBF_FLUSH, "FLUSH" }, \ 75 { XBF_FLUSH, "FLUSH" }, \
77 { XBF_LOCK, "LOCK" }, /* should never be set */\ 76 { XBF_TRYLOCK, "TRYLOCK" }, /* should never be set */\
78 { XBF_TRYLOCK, "TRYLOCK" }, /* ditto */\
79 { XBF_DONT_BLOCK, "DONT_BLOCK" }, /* ditto */\ 77 { XBF_DONT_BLOCK, "DONT_BLOCK" }, /* ditto */\
80 { _XBF_PAGES, "PAGES" }, \ 78 { _XBF_PAGES, "PAGES" }, \
81 { _XBF_KMEM, "KMEM" }, \ 79 { _XBF_KMEM, "KMEM" }, \