mirror of
https://github.com/Fishwaldo/Star64_linux.git
synced 2025-06-20 21:51:05 +00:00
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:
parent
795cac72e9
commit
a8acad7073
11 changed files with 29 additions and 49 deletions
|
@ -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.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue