Re: Btrfs: check for empty bitmap list in setup_cluster_bitmaps

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

 



Hi Chris,

I have one coding comment for this patch.

Following line can be merged into single:
  if (!list_empty(bitmaps))
     entry = list_first_entry(bitmaps, struct btrfs_free_space, list);


new change as below-:

    entry = list_first_entry_or_null(bitmaps, struct btrfs_free_space,list);


Manish


--
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