summaryrefslogtreecommitdiffstats
path: root/fs/stat.c
diff options
context:
space:
mode:
authorJosef Bacik <josef@redhat.com>2011-01-25 22:30:38 +0100
committerJosef Bacik <josef@redhat.com>2011-03-17 19:21:18 +0100
commit57a45ced94fe48a701361d64230fc16eefa189dd (patch)
tree8f0cfe52ba0b3fb8a6ed3cc5d3e7449369b0b9a5 /fs/stat.c
parentBtrfs: fix how we deal with the pages array in the write path (diff)
downloadlinux-57a45ced94fe48a701361d64230fc16eefa189dd.tar.xz
linux-57a45ced94fe48a701361d64230fc16eefa189dd.zip
Btrfs: change reserved_extents to an atomic_t
We track delayed allocation per inodes via 2 counters, one is outstanding_extents and reserved_extents. Outstanding_extents is already an atomic_t, but reserved_extents is not and is protected by a spinlock. So convert this to an atomic_t and instead of using a spinlock, use atomic_cmpxchg when releasing delalloc bytes. This makes our inode 72 bytes smaller, and reduces locking overhead (albiet it was minimal to begin with). Thanks, Signed-off-by: Josef Bacik <josef@redhat.com>
Diffstat (limited to 'fs/stat.c')
0 files changed, 0 insertions, 0 deletions