diff options
author | Takashi Iwai <tiwai@suse.de> | 2014-09-30 04:24:05 -0400 |
---|---|---|
committer | Takashi Iwai <tiwai@suse.de> | 2014-09-30 04:24:05 -0400 |
commit | 5498380e4f403c0938801e2cd6683353d0029cac (patch) | |
tree | c65ab75034cac68e45da4d5bbb1513728bacec84 /fs/btrfs/tree-log.c | |
parent | e76bf634870e3c5e3a767ad575f1d404c9f1cab8 (diff) | |
parent | 82b925c405444b760e743b55a9ad498cb3551afe (diff) |
Merge tag 'asoc-v3.17-rc6' of git://git.kernel.org/pub/scm/linux/kernel/git/broonie/sound into for-linus
ASoC: Fixes for v3.17
A few small driver specific fixes and a couple of error handling fixes
in the core.
Diffstat (limited to 'fs/btrfs/tree-log.c')
-rw-r--r-- | fs/btrfs/tree-log.c | 14 |
1 files changed, 2 insertions, 12 deletions
diff --git a/fs/btrfs/tree-log.c b/fs/btrfs/tree-log.c index d296efe2d3e7..1d1ba083ca6e 100644 --- a/fs/btrfs/tree-log.c +++ b/fs/btrfs/tree-log.c | |||
@@ -4093,18 +4093,8 @@ log_extents: | |||
4093 | } | 4093 | } |
4094 | } | 4094 | } |
4095 | 4095 | ||
4096 | write_lock(&em_tree->lock); | 4096 | BTRFS_I(inode)->logged_trans = trans->transid; |
4097 | /* | 4097 | BTRFS_I(inode)->last_log_commit = BTRFS_I(inode)->last_sub_trans; |
4098 | * If we're doing a ranged fsync and there are still modified extents | ||
4099 | * in the list, we must run on the next fsync call as it might cover | ||
4100 | * those extents (a full fsync or an fsync for other range). | ||
4101 | */ | ||
4102 | if (list_empty(&em_tree->modified_extents)) { | ||
4103 | BTRFS_I(inode)->logged_trans = trans->transid; | ||
4104 | BTRFS_I(inode)->last_log_commit = | ||
4105 | BTRFS_I(inode)->last_sub_trans; | ||
4106 | } | ||
4107 | write_unlock(&em_tree->lock); | ||
4108 | out_unlock: | 4098 | out_unlock: |
4109 | if (unlikely(err)) | 4099 | if (unlikely(err)) |
4110 | btrfs_put_logged_extents(&logged_list); | 4100 | btrfs_put_logged_extents(&logged_list); |