Re: [PATCH 6/6] Btrfs: do aio_write instead of write

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Sat, May 22, 2010 at 3:03 AM, Josef Bacik <josef@xxxxxxxxxx> wrote:
> +       while (1) {
> +               lock_extent(tree, start, end, GFP_NOFS);
> +               ordered = btrfs_lookup_ordered_extent(inode, start);
> +               if (!ordered)
> +                       break;
> +               unlock_extent(tree, start, end, GFP_NOFS);

Is it ok not to unlock_extent if !ordered?
I don't know if you fixed this in a later version but it stuck out to me :)

-- 
Dmitri Nikulin

Centre for Synchrotron Science
Monash University
Victoria 3800, Australia
--
To unsubscribe from this list: send the line "unsubscribe linux-btrfs" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html


[Index of Archives]     [Linux Filesystem Development]     [Linux NFS]     [Linux NILFS]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux