aboutsummaryrefslogtreecommitdiffstats
path: root/fs/xfs/xfs_fsops.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_fsops.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_fsops.c')
-rw-r--r--fs/xfs/xfs_fsops.c13
1 files changed, 5 insertions, 8 deletions
diff --git a/fs/xfs/xfs_fsops.c b/fs/xfs/xfs_fsops.c
index 019ba5c52a49..874d39883dab 100644
--- a/fs/xfs/xfs_fsops.c
+++ b/fs/xfs/xfs_fsops.c
@@ -193,7 +193,7 @@ xfs_growfs_data_private(
193 */ 193 */
194 bp = xfs_buf_get(mp->m_ddev_targp, 194 bp = xfs_buf_get(mp->m_ddev_targp,
195 XFS_AG_DADDR(mp, agno, XFS_AGF_DADDR(mp)), 195 XFS_AG_DADDR(mp, agno, XFS_AGF_DADDR(mp)),
196 XFS_FSS_TO_BB(mp, 1), XBF_LOCK | XBF_MAPPED); 196 XFS_FSS_TO_BB(mp, 1), XBF_MAPPED);
197 if (!bp) { 197 if (!bp) {
198 error = ENOMEM; 198 error = ENOMEM;
199 goto error0; 199 goto error0;
@@ -230,7 +230,7 @@ xfs_growfs_data_private(
230 */ 230 */
231 bp = xfs_buf_get(mp->m_ddev_targp, 231 bp = xfs_buf_get(mp->m_ddev_targp,
232 XFS_AG_DADDR(mp, agno, XFS_AGI_DADDR(mp)), 232 XFS_AG_DADDR(mp, agno, XFS_AGI_DADDR(mp)),
233 XFS_FSS_TO_BB(mp, 1), XBF_LOCK | XBF_MAPPED); 233 XFS_FSS_TO_BB(mp, 1), XBF_MAPPED);
234 if (!bp) { 234 if (!bp) {
235 error = ENOMEM; 235 error = ENOMEM;
236 goto error0; 236 goto error0;
@@ -259,8 +259,7 @@ xfs_growfs_data_private(
259 */ 259 */
260 bp = xfs_buf_get(mp->m_ddev_targp, 260 bp = xfs_buf_get(mp->m_ddev_targp,
261 XFS_AGB_TO_DADDR(mp, agno, XFS_BNO_BLOCK(mp)), 261 XFS_AGB_TO_DADDR(mp, agno, XFS_BNO_BLOCK(mp)),
262 BTOBB(mp->m_sb.sb_blocksize), 262 BTOBB(mp->m_sb.sb_blocksize), XBF_MAPPED);
263 XBF_LOCK | XBF_MAPPED);
264 if (!bp) { 263 if (!bp) {
265 error = ENOMEM; 264 error = ENOMEM;
266 goto error0; 265 goto error0;
@@ -286,8 +285,7 @@ xfs_growfs_data_private(
286 */ 285 */
287 bp = xfs_buf_get(mp->m_ddev_targp, 286 bp = xfs_buf_get(mp->m_ddev_targp,
288 XFS_AGB_TO_DADDR(mp, agno, XFS_CNT_BLOCK(mp)), 287 XFS_AGB_TO_DADDR(mp, agno, XFS_CNT_BLOCK(mp)),
289 BTOBB(mp->m_sb.sb_blocksize), 288 BTOBB(mp->m_sb.sb_blocksize), XBF_MAPPED);
290 XBF_LOCK | XBF_MAPPED);
291 if (!bp) { 289 if (!bp) {
292 error = ENOMEM; 290 error = ENOMEM;
293 goto error0; 291 goto error0;
@@ -314,8 +312,7 @@ xfs_growfs_data_private(
314 */ 312 */
315 bp = xfs_buf_get(mp->m_ddev_targp, 313 bp = xfs_buf_get(mp->m_ddev_targp,
316 XFS_AGB_TO_DADDR(mp, agno, XFS_IBT_BLOCK(mp)), 314 XFS_AGB_TO_DADDR(mp, agno, XFS_IBT_BLOCK(mp)),
317 BTOBB(mp->m_sb.sb_blocksize), 315 BTOBB(mp->m_sb.sb_blocksize), XBF_MAPPED);
318 XBF_LOCK | XBF_MAPPED);
319 if (!bp) { 316 if (!bp) {
320 error = ENOMEM; 317 error = ENOMEM;
321 goto error0; 318 goto error0;