aboutsummaryrefslogtreecommitdiffstats
path: root/fs/xfs/linux-2.6/xfs_aops.c
diff options
context:
space:
mode:
Diffstat (limited to 'fs/xfs/linux-2.6/xfs_aops.c')
-rw-r--r--fs/xfs/linux-2.6/xfs_aops.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/xfs/linux-2.6/xfs_aops.c b/fs/xfs/linux-2.6/xfs_aops.c
index fa73179233ad..fa47e43b8b41 100644
--- a/fs/xfs/linux-2.6/xfs_aops.c
+++ b/fs/xfs/linux-2.6/xfs_aops.c
@@ -1104,7 +1104,7 @@ xfs_page_state_convert(
1104 * that we are writing into for the first time. 1104 * that we are writing into for the first time.
1105 */ 1105 */
1106 type = IOMAP_NEW; 1106 type = IOMAP_NEW;
1107 if (!test_and_set_bit(BH_Lock, &bh->b_state)) { 1107 if (trylock_buffer(bh)) {
1108 ASSERT(buffer_mapped(bh)); 1108 ASSERT(buffer_mapped(bh));
1109 if (iomap_valid) 1109 if (iomap_valid)
1110 all_bh = 1; 1110 all_bh = 1;