]> git.baikalelectronics.ru Git - kernel.git/commit
Btrfs: add a delalloc mutex to inodes for delalloc reservations
authorJosef Bacik <josef@redhat.com>
Fri, 13 Jan 2012 17:09:22 +0000 (12:09 -0500)
committerChris Mason <chris.mason@oracle.com>
Mon, 16 Jan 2012 20:29:43 +0000 (15:29 -0500)
commit00829d275a7f1b9e6d7ffcf7ca45efcda202921d
tree88abeee0b2a87c0f0377509525c92d3c9ec15a15
parent50e2ae1bbd78f46340a3f7569addc97e9b6668ab
Btrfs: add a delalloc mutex to inodes for delalloc reservations

I was using i_mutex for this, but we're getting bogus lockdep warnings by doing
that and theres no real way to get rid of those, so just stop using i_mutex to
protect delalloc metadata reservations and use a delalloc mutex instead.  This
shouldn't be contended often at all, only if you are writing and mmap writing to
the file at the same time.  Thanks,

Signed-off-by: Josef Bacik <josef@redhat.com>
fs/btrfs/btrfs_inode.h
fs/btrfs/extent-tree.c
fs/btrfs/inode.c
fs/btrfs/ioctl.c
fs/btrfs/relocation.c