On Thu, Feb 20, 2014 at 06:08:57PM +0800, Miao Xie wrote:
> --- a/fs/btrfs/tree-log.c
> +++ b/fs/btrfs/tree-log.c
> @@ -142,6 +142,12 @@ static int start_log_trans(struct btrfs_trans_handle 
> *trans,
>  
>       mutex_lock(&root->log_mutex);
>       if (root->log_root) {
> +             if (ACCESS_ONCE(root->fs_info->last_trans_log_full_commit) ==
> +                 trans->transid) {
> +                     ret = -EAGAIN;
> +                     goto out;
> +             }

So last_trans_log_full_commit needs special handling, but opencoding it
everywhere is no very clean. Documented set/get helpers would be much
better.
--
To unsubscribe from this list: send the line "unsubscribe linux-btrfs" in
the body of a message to [email protected]
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Reply via email to