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:
@@ -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.
|
||||
|
Reference in New Issue
Block a user