diff options
Diffstat (limited to 'fs/xfs/xfs_fsops.c')
-rw-r--r-- | fs/xfs/xfs_fsops.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/fs/xfs/xfs_fsops.c b/fs/xfs/xfs_fsops.c index 94bd9f2d9d77..c92d5b821029 100644 --- a/fs/xfs/xfs_fsops.c +++ b/fs/xfs/xfs_fsops.c | |||
@@ -433,10 +433,10 @@ xfs_growfs_data( | |||
433 | xfs_growfs_data_t *in) | 433 | xfs_growfs_data_t *in) |
434 | { | 434 | { |
435 | int error; | 435 | int error; |
436 | if (!cpsema(&mp->m_growlock)) | 436 | if (!mutex_trylock(&mp->m_growlock)) |
437 | return XFS_ERROR(EWOULDBLOCK); | 437 | return XFS_ERROR(EWOULDBLOCK); |
438 | error = xfs_growfs_data_private(mp, in); | 438 | error = xfs_growfs_data_private(mp, in); |
439 | vsema(&mp->m_growlock); | 439 | mutex_unlock(&mp->m_growlock); |
440 | return error; | 440 | return error; |
441 | } | 441 | } |
442 | 442 | ||
@@ -446,10 +446,10 @@ xfs_growfs_log( | |||
446 | xfs_growfs_log_t *in) | 446 | xfs_growfs_log_t *in) |
447 | { | 447 | { |
448 | int error; | 448 | int error; |
449 | if (!cpsema(&mp->m_growlock)) | 449 | if (!mutex_trylock(&mp->m_growlock)) |
450 | return XFS_ERROR(EWOULDBLOCK); | 450 | return XFS_ERROR(EWOULDBLOCK); |
451 | error = xfs_growfs_log_private(mp, in); | 451 | error = xfs_growfs_log_private(mp, in); |
452 | vsema(&mp->m_growlock); | 452 | mutex_unlock(&mp->m_growlock); |
453 | return error; | 453 | return error; |
454 | } | 454 | } |
455 | 455 | ||