summaryrefslogtreecommitdiffstats
path: root/fs/xfs/xfs_rw.c
diff options
context:
space:
mode:
authorDave Chinner <dchinner@redhat.com>2012-04-23 07:58:54 +0200
committerBen Myers <bpm@sgi.com>2012-05-14 23:20:50 +0200
commita8acad70731e7d0585f25f33f8a009176f001f70 (patch)
tree07a14f8bde89e7947f56df7203530b7713b186ac /fs/xfs/xfs_rw.c
parentxfs: kill xfs_buf_btoc (diff)
downloadlinux-a8acad70731e7d0585f25f33f8a009176f001f70.tar.xz
linux-a8acad70731e7d0585f25f33f8a009176f001f70.zip
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_rw.c')
-rw-r--r--fs/xfs/xfs_rw.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/xfs/xfs_rw.c b/fs/xfs/xfs_rw.c
index 597d044a09a1..2ce97758f4c7 100644
--- a/fs/xfs/xfs_rw.c
+++ b/fs/xfs/xfs_rw.c
@@ -114,7 +114,7 @@ xfs_read_buf(
int error;
if (!flags)
- flags = XBF_LOCK | XBF_MAPPED;
+ flags = XBF_MAPPED;
bp = xfs_buf_read(target, blkno, len, flags);
if (!bp)