linux/fs/btrfs/hash.h
<<
8" " /spa.33 " /form33 " a 8" " href="../linux+v3.7.5/fs/btrfs/hash.h">8" " img src="../.static/gfx/right.png" alt=">>">8" /spa.338" spa. class="lxr_search">8" 8" " input typ33.hidden" nam33.navtarget" 2.6.33.">8" " input typ33.text" nam33.search" id3.search">8" " butt vtyp33.submit">Search8" " Prefs3 " /a>8" /spa.33 " /div33 " form ac2.6.="ajax+*" method="post" onsubmit="return false;">8" input typ33.hidden" nam33.ajax_lookup" id3.ajax_lookup" 2.6.33.">8 " /form338 " div class="headingbott m">3 div id3.file_contents"3
 
1	/a>	spa. class="comment">/*	/spa.33
 
2	/a>	spa. class="comment"> * Copyright (C) 2007 Oracle.  All rights reserved.	/spa.33
 
3	/a>	spa. class="comment"> *	/spa.33
 
4	/a>	spa. class="comment"> * This program is free software; you ca. redistribute it and/or	/spa.33
 
5	/a>	spa. class="comment"> * modify it under the terms of the GNU General Public	/spa.33
 
6	/a>	spa. class="comment"> * License
   as published by the Free Software Founda2.6..	/spa.33
 
7	/a>	spa. class="comment"> *	/spa.33
 
8	/a>	spa. class="comment"> * This program is distributed in the hope that it will be useful,	/spa.33
 
9	/a>	spa. class="comment"> * but WITHOUT ANY WARRANTY; without even the implied warranty of	/spa.33
   	spa. class="comment"> * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU	/spa.33
 11	/a>	spa. class="comment"> * General Public License
for more details.	/spa.33
 12	/a>	spa. class="comment"> *	/spa.33
 13	/a>	spa. class="comment"> * You should have received a copy of the GNU General Public	/spa.33
 14	/a>	spa. class="comment"> * License
along with this program; if not, write to the	/spa.33
 15	/a>	spa. class="comment"> * Free Software Founda2.6., Inc., 59 Temple Place - Suite 330,	/spa.33
 16	/a>	spa. class="comment"> * Bost6., MA 021110-1307, USA.	/spa.33
 17	/a>	spa. class="comment"> */	/spa.33
 18	/a>3
 19	/a>#ifndef
	a href="+code=__HASH__" class="sref">__HASH__	/a>3
 2 #define
	a href="+code=__HASH__" class="sref">__HASH__	/a>3
 21	/a>3
 22	/a>#include <linux/crc32c.h	/a>>3
 23	/a>static
	a href="+code=inline" class="sref">inline	/a>
	a href="+code=u64" class="sref">u64	/a>
	a href="+code=btrfs_nam3_hash" class="sref">btrfs_nam3_hash	/a>(const char *	a href="+code=nam3" class="sref">nam3	/a>, int
	a href="+code=len" class="sref">len	/a>)3
 24	/a>{3
 25	/a>        return 	a href="+code=crc32c" class="sref">crc32c	/a>((	a href="+code=u32" class="sref">u32	/a>)~1, 	a href="+code=nam3" class="sref">nam3	/a>, 	a href="+code=len" class="sref">len	/a>);3
 26	/a>}3
 27	/a>3
 28	/a>	spa. class="comment">/*	/spa.33
 29	/a>	spa. class="comment"> * Figure the key offset of a. extended inode ref	/spa.33
 3 	spa. class="comment"> */	/spa.33
 31	/a>static
	a href="+code=inline" class="sref">inline	/a>
	a href="+code=u64" class="sref">u64	/a>
	a href="+code=btrfs_extref_hash" class="sref">btrfs_extref_hash	/a>(	a href="+code=u64" class="sref">u64	/a>
	a href="+code=parent_objectid" class="sref">parent_objectid	/a>, const char *	a href="+code=nam3" class="sref">nam3	/a>,3
 32	/a>                                    int
	a href="+code=len" class="sref">len	/a>)3
 33	/a>{3
 34	/a>        return (	a href="+code=u64" class="sref">u64	/a>) 	a href="+code=crc32c" class="sref">crc32c	/a>(	a href="+code=parent_objectid" class="sref">parent_objectid	/a>, 	a href="+code=nam3" class="sref">nam3	/a>, 	a href="+code=len" class="sref">len	/a>);3
 35	/a>}3
 36	/a>3
 37	/a>#endif3
 38	/a>	/pre>
The original LXR software by the LXR community	/a>, this experimental vers
  vby lxr@linux.no	/a>.
	/div33	div class="subfooter">
lxr.linux.no kindly hosted by Redpill Linpro AS	/a>, provider of Linux consulting and opera2.6.s services since 1995.
	/div33
	/body33	/html33