]> www.infradead.org Git - users/jedix/linux-maple.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)
committerGuru Anbalagane <guru.anbalagane@oracle.com>
Fri, 27 Jan 2012 01:21:15 +0000 (17:21 -0800)
commit37556d3248521ab522dfe0a33e8dd47f58fe47c9
tree34e1c15ebe306f3ae4962083eda4b14a9652240a
parenta3fa4134d64f64c671acb1298274f21f6f5cd27c
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,

(cherry picked from commit f248679e86fead40cc78e724c7181d6bec1a2046)

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