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>
This commit is contained in:
Dave Chinner 2012-04-23 15:58:54 +10:00 committed by Ben Myers
parent 795cac72e9
commit a8acad7073
11 changed files with 29 additions and 49 deletions

View file

@ -142,7 +142,7 @@ xfs_trans_get_buf(xfs_trans_t *tp,
xfs_buf_log_item_t *bip;
if (flags == 0)
flags = XBF_LOCK | XBF_MAPPED;
flags = XBF_MAPPED;
/*
* Default to a normal get_buf() call if the tp is NULL.
@ -275,7 +275,7 @@ xfs_trans_read_buf(
int error;
if (flags == 0)
flags = XBF_LOCK | XBF_MAPPED;
flags = XBF_MAPPED;
/*
* Default to a normal get_buf() call if the tp is NULL.