aboutsummaryrefslogtreecommitdiffstats
path: root/fs/xfs/xfs_attr.c
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_attr.c
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_attr.c')
-rw-r--r--fs/xfs/xfs_attr.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/fs/xfs/xfs_attr.c b/fs/xfs/xfs_attr.c
index 6e9bd7e46982..c8ef9a9c312b 100644
--- a/fs/xfs/xfs_attr.c
+++ b/fs/xfs/xfs_attr.c
@@ -1988,8 +1988,7 @@ xfs_attr_rmtval_get(xfs_da_args_t *args)
1988 dblkno = XFS_FSB_TO_DADDR(mp, map[i].br_startblock); 1988 dblkno = XFS_FSB_TO_DADDR(mp, map[i].br_startblock);
1989 blkcnt = XFS_FSB_TO_BB(mp, map[i].br_blockcount); 1989 blkcnt = XFS_FSB_TO_BB(mp, map[i].br_blockcount);
1990 error = xfs_read_buf(mp, mp->m_ddev_targp, dblkno, 1990 error = xfs_read_buf(mp, mp->m_ddev_targp, dblkno,
1991 blkcnt, XBF_LOCK | XBF_DONT_BLOCK, 1991 blkcnt, XBF_DONT_BLOCK, &bp);
1992 &bp);
1993 if (error) 1992 if (error)
1994 return(error); 1993 return(error);
1995 1994
@@ -2116,7 +2115,7 @@ xfs_attr_rmtval_set(xfs_da_args_t *args)
2116 blkcnt = XFS_FSB_TO_BB(mp, map.br_blockcount); 2115 blkcnt = XFS_FSB_TO_BB(mp, map.br_blockcount);
2117 2116
2118 bp = xfs_buf_get(mp->m_ddev_targp, dblkno, blkcnt, 2117 bp = xfs_buf_get(mp->m_ddev_targp, dblkno, blkcnt,
2119 XBF_LOCK | XBF_DONT_BLOCK); 2118 XBF_DONT_BLOCK);
2120 if (!bp) 2119 if (!bp)
2121 return ENOMEM; 2120 return ENOMEM;
2122 2121