Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 286019
b: refs/heads/master
c: 10f6327
h: refs/heads/master
i:
  286017: ee002d8
  286015: 17fe31d
v: v3
  • Loading branch information
Al Viro committed Jan 9, 2012
1 parent 9f71410 commit 8190645
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 6de1d09d9677dce7a04ef485d426821159ab7de9
refs/heads/master: 10f6327b5d26660e06120ba17cff993cb616b1d2
5 changes: 2 additions & 3 deletions trunk/fs/btrfs/volumes.c
Original file line number Diff line number Diff line change
Expand Up @@ -706,8 +706,6 @@ int btrfs_scan_one_device(const char *path, fmode_t flags, void *holder,
u64 devid;
u64 transid;

mutex_lock(&uuid_mutex);

flags |= FMODE_EXCL;
bdev = blkdev_get_by_path(path, flags, holder);

Expand All @@ -716,6 +714,7 @@ int btrfs_scan_one_device(const char *path, fmode_t flags, void *holder,
goto error;
}

mutex_lock(&uuid_mutex);
ret = set_blocksize(bdev, 4096);
if (ret)
goto error_close;
Expand All @@ -737,9 +736,9 @@ int btrfs_scan_one_device(const char *path, fmode_t flags, void *holder,

brelse(bh);
error_close:
mutex_unlock(&uuid_mutex);
blkdev_put(bdev, flags);
error:
mutex_unlock(&uuid_mutex);
return ret;
}

Expand Down

0 comments on commit 8190645

Please sign in to comment.