Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 118465
b: refs/heads/master
c: fa93ca1
h: refs/heads/master
i:
  118463: 905d151
v: v3
  • Loading branch information
OGAWA Hirofumi authored and Linus Torvalds committed Nov 6, 2008
1 parent cd72684 commit 818c059
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 2 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: dfc209c0064efef5590f608056a48b61a5cac09c
refs/heads/master: fa93ca18a8b0da4e26bd9491ad144cd14d22f8ec
9 changes: 8 additions & 1 deletion trunk/fs/fat/inode.c
Original file line number Diff line number Diff line change
Expand Up @@ -199,7 +199,14 @@ static ssize_t fat_direct_IO(int rw, struct kiocb *iocb,

static sector_t _fat_bmap(struct address_space *mapping, sector_t block)
{
return generic_block_bmap(mapping, block, fat_get_block);
sector_t blocknr;

/* fat_get_cluster() assumes the requested blocknr isn't truncated. */
mutex_lock(&mapping->host->i_mutex);
blocknr = generic_block_bmap(mapping, block, fat_get_block);
mutex_unlock(&mapping->host->i_mutex);

return blocknr;
}

static const struct address_space_operations fat_aops = {
Expand Down

0 comments on commit 818c059

Please sign in to comment.