Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S933693AbcLSQsE (ORCPT ); Mon, 19 Dec 2016 11:48:04 -0500 Received: from mx0a-00082601.pphosted.com ([67.231.145.42]:34953 "EHLO mx0a-00082601.pphosted.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S933192AbcLSQrl (ORCPT ); Mon, 19 Dec 2016 11:47:41 -0500 Date: Mon, 19 Dec 2016 11:46:23 -0500 From: Josef Bacik Subject: Re: [PATCH] btrfs: use rb_entry() To: Geliang Tang CC: Chris Mason , David Sterba , , Message-ID: <1482165983.6766.0@smtp.office365.com> In-Reply-To: References: X-Mailer: geary/0.11.2 MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8"; format=flowed X-Originating-IP: [2620:10d:c091:180::324f] X-ClientProxiedBy: YQBPR01CA0049.CANPRD01.PROD.OUTLOOK.COM (10.169.139.17) To DM5PR15MB1321.namprd15.prod.outlook.com (10.173.210.11) X-MS-Office365-Filtering-Correlation-Id: 6efa2973-d505-4ae8-2fd8-08d4282e96f0 X-Microsoft-Antispam: UriScan:;BCL:0;PCL:0;RULEID:(22001);SRVR:DM5PR15MB1321; X-Microsoft-Exchange-Diagnostics: 1;DM5PR15MB1321;3:5IUJLvOjUlx/wyOzK5Hp3Dq3X71rAGHzMGh6AccYoTjqRIJIP47bCRKfUc1stfgnYAF6OwHyGloMpE6d0v3dLi6Tl29g38qGhHf/lCC8p3ugtrXL/NYZCaMczghnibLtCTBeq+tSX3u+ZBYovvKDQLPNkHAduW+F9UVgkwT1h3EBxscgtmnp5hMo1pIGK/bNYRLZtLl8EFCA2R4E2NncYf4J4ei1JPf+Os/hYvk798PJW/kRrNjV8z164qvOeFexr0JDczClfW44SyeI+lxPag== X-Microsoft-Exchange-Diagnostics: 1;DM5PR15MB1321;25:d6sfETbr9VjGCmBdJhZBGYO9xacGmpATIMVPoS2D3aZYcgANVrt5D92rSjrnvvoXx1nJzmv8l5pqFYZ3E7N4T4kL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5K/aBHnWe6Y/s6aC+82f35Y3KXuMqRm/1oAjM0/Vvc2KWriyBThvMDB0/FO/MUOCHRmIPKK5EERETgH7kI6fnK9DV+M376U8Dgmk2tnFkUdu/xbyKkQZorj/7WDipFmRmR0FjU/t/DSBpR8/3mf8yXRN9lrEI6TBEeBxoIhEmjiALUHtAb8b5tyVwdC6PNdEVdX2kKlPq+IE8wD0uCgwBXCXIwQ/AwLOPSxcfNfn6JYVaVwwL05VBplBD9QKqiomPTiYtXctPhsAVwvmGK3hEvJvVsah6nzWiojI9tFAV/w/yZiMPsBJysKWHxuF9dmjiV/kNPNndav3RpouKmcVqOQupCyJ1wNtveSYAdI8WxyPiy5zjNWGg0F2LyAR96Gfws6VyhduLLFpaggJk/HV8g18Pd3DJ6yx1qASx8HGdZ8FM+gbRU7neXUjjLeaxYIBHvvQCS6BKx X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-Test: UriScan:(67672495146484); X-Exchange-Antispam-Report-CFA-Test: BCL:0;PCL:0;RULEID:(6040375)(601004)(2401047)(8121501046)(5005006)(3002001)(10201501046)(6041248)(20161123560025)(20161123555025)(20161123564025)(20161123562025)(6072148);SRVR:DM5PR15MB1321;BCL:0;PCL:0;RULEID:;SRVR:DM5PR15MB1321; X-Microsoft-Exchange-Diagnostics: 1;DM5PR15MB1321;4:Di+eJilcSPRHuX5PFw04k2H7ERKFNEZKi4M3UfI38TlJTp+nV17jgB+b8fR/8HMRnnTZKrxxAdu9e0vD1wWSxy48naZTG09vQuIZoe5kQTz/DOjuFrpOmVRD51w2o42jQKCYzpNRi/6f6uu2XHC7fgujJx6N0IaBHddk4epJmuv5MM+hcRBQI+I1Ww07/0S+c0KNhHDIToJbE+samZWQqnG6h+BXtdVSI+h8UpY7bjutUMUZXWfhReomuZ1mNJ8f9j+mvO8MdXBDjjagkZ5+Esykomg6OgwGmYsU0yP5YdwrF0wXPwYbkDID0bIynLFCGrzKnvg88HWKxBvXct7jS3NAcjdEQzDXz+iuw9e/TCu8k/Alq6A27cs7wIWtqKIvnNqRU59afOqh2UM9bhLnYZJfEIz5mf4wYcZuFCpghjlEQpxbvbsuN2QkeVr2iSDvxS/R0tm6aJtTUGRO74Oeg45X+zeFBd/i8QfR0dZXtp5NJBcSuey8Y9ofryFIxtJ6UXmtR5pntyks5aJfQAFLfFN9Phw1bv8/ZaE8FPieoVLJPw/NycearZGe3kiKD8Sf9ZcXPyNzw2jnFZLuxhsg5dxF2H/RW1tXBeEmzpPgBmrlgjxs/69jBInaKN0/Qp5D X-Forefront-PRVS: 01613DFDC8 X-Forefront-Antispam-Report: SFV:NSPM;SFS:(10019020)(4630300001)(6069001)(6009001)(7916002)(39450400003)(39410400002)(39830400002)(199003)(24454002)(189002)(377454003)(2906002)(39060400001)(42186005)(105586002)(81156014)(8676002)(6486002)(68736007)(50226002)(229853002)(38730400001)(110136003)(106356001)(7736002)(5660300001)(101416001)(305945005)(81166006)(6916009)(50986999)(86362001)(76176999)(6666003)(4326007)(189998001)(6116002)(97736004)(25786008)(50466002)(6506006)(92566002)(47776003)(2950100002)(1411001)(558084003)(23676002)(88526003)(6512006)(9686002);DIR:OUT;SFP:1102;SCL:1;SRVR:DM5PR15MB1321;H:localhost.localdomain;FPR:;SPF:None;PTR:InfoNoRecords;A:1;MX:1;LANG:en; X-Microsoft-Exchange-Diagnostics: =?utf-8?B?MTtETTVQUjE1TUIxMzIxOzIzOnBnQ0ZlOEd0Mm53K2x6ZGFpenlaTTdWd3dh?= =?utf-8?B?ZkxNUXpnclVqQllNVnBOTmtSd3JsVWF6aXZYN1dCNFlwNU5jaGZFY0h4b0J6?= =?utf-8?B?Z21YYzY2YVhkajZ3OWZhaHJNMjQ1NXZFQUROYzZXOEZTWk9ZYnA5TlY5MDMz?= =?utf-8?B?ZUpQSlhFcmNZZXdCMXoxMWdTa1lnazA3ZUU4WXI3OTF4TG13clh0b3hIQ3Zw?= =?utf-8?B?RVpoRkZueXlDNmJxUFoybmpvTmdPR0VJUWwrbnI1ZTJ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JsuSA2rAKb21fc/wwAldyG5rvyWSDzkHK5D7vDql/C8Bo0VbcF/Y1ahb3mA0ULqiqMzRvjJyRyfdo2v/dL9pZJVNakJ5ELGuUAT8drAJgg==;24:KGDPmLUcS0DlYojJOlF8/rqvJEa7ESPgEnTFtLjXqVEkCM+EFH+DB1OBPF/ThhL/UuzlQtBuKleDy7uelSjl/scygtbdFEtF9RfTCv9+uZI= SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-Microsoft-Exchange-Diagnostics: 1;DM5PR15MB1321;7:eK/sm9OsWKS05i+zQNREDJJJc0T6dwN/ZRg5v0nnlwWZ4BVsNwzye5SOf7wunsqD0sK0MykxALXS4kvGuDePG2a8tGwJCCzCv6zk1vT3Hnv+VcL8s+M55HtVfyOFAGk4wzAe0j9gl7g4znwJJIiysTWdpE5eNkK1dcMkQidRtrFTQse7VRhul6gwWWrHqtxxkMQazpjKhCMix1m91c75hsp0g5Mga+ty2BpyjPzqAoYawzLlp4UlibSW89pisHzPWdCClHOdy70P0yJgl01HN70EaTzP7IZCyveCGvCC5DBBEhDkikTA8qq0Ekic7h1wr5uNwTRhc0Lu9Q0Ywv5zs2u+eKyqk0nDDJez77jbLvhPeb9e3dAHsiwybjoBTXZ6sVnnIISOWz2vCtlHgAe5FKhLoKWv2E4Q/SmxfVH1cM0tq/8n7mulASLmzXENXmkMfsY0q1tZg8VXo3ZAXV0bxg==;20:BchI4IZLRhnm0KOWDbs4QuSP5BdHGIOQqhNQIdbxTmMAj8WNyMjwRb/ojpVZ8HBn5ck5Bo8kXspyPotNjEda3L0KSm6T1ajsIu7ZYHAV9tdY8jEiUBvJzqcldC3x3Sj+oQV9bfPa64QGyA4n2IohhYnY5FXTmIVXI7BmuXWB4rU= X-MS-Exchange-CrossTenant-OriginalArrivalTime: 19 Dec 2016 16:46:30.2537 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-Transport-CrossTenantHeadersStamped: DM5PR15MB1321 X-OriginatorOrg: fb.com X-Proofpoint-Spam-Reason: safe X-FB-Internal: Safe X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10432:,, definitions=2016-12-19_14:,, signatures=0 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 285 Lines: 12 On Mon, Dec 19, 2016 at 9:53 AM, Geliang Tang wrote: > To make the code clearer, use rb_entry() instead of container_of() to > deal with rbtree. > > Signed-off-by: Geliang Tang Reviewed-by: Josef Bacik Thanks, Josef