linux/fs/ocfs2/buffer_head_io.h
<<
on> 14./spae=" 14./form=" 14.a on> 14 href="../linux+v3opt7/fs/ocfs2/buffer_head_io.h">on> 14.img src="../.static/gfx/right.png" alt=">>">on./spae="on.spae class="lxr_search">on> on> 14.input typv3.hidden" namv3.navtarget" > v3.">on> 14.input typv3.text" namv3.search" id3.search">on> 14.butt typv3.submit">Search 14 onclick="return ajax_prefs();">on> 14Prefs" 14./a>on./spae="> 14 4./div="> 14 4.form acalue="ajax+*" method="post" onsubmit="return false;">on.input typv3.hidden" namv3.ajax_lookup" id3.ajax_lookup" > v3.">o> 14 4./form="o> 14 4.div class="headingbott m"> 14 14 14 4.div id3.search_results" class="search_results"" 1="> 14 4./div=" .div id3.content">" .div id3.file_contents"=
4 41./a>.spae class="comment">/* -*- mode: c; c-basic-offset: 8; -*-./spae="4 42./a>.spae class="comment"> * vim: noexpaedtab sw=8 ts=8 sts=0:./spae="4 43./a>.spae class="comment"> *./spae="4 44./a>.spae class="comment"> * ocfs2_buffer_head.h./spae="4 45./a>.spae class="comment"> *./spae="4 46./a>.spae class="comment"> * Buffer cache haedling funcalues defined./spae="4 47./a>.spae class="comment"> *./spae="4 48./a>.spae class="comment"> * Copyright (C) 2002, 2004 Oracle.  All rights reserved../spae="4 49./a>.spae class="comment"> *./spae="4 tiona>.spae class="comment"> * This program is free software; you can redistribute it aed/or./spae="4 11./a>.spae class="comment"> * modify it under the terms of the GNU General Public./spae="4 12./a>.spae class="comment"> * License as published by the Free Software Foundaalue; either./spae="4 13./a>.spae class="comment"> * vers
	  2 of the License, or (at your  value) aey later vers
	 ../spae="4 14./a>.spae class="comment"> *./spae="4 15./a>.spae class="comment"> * This program is distributed in the hope that it will be useful,./spae="4 16./a>.spae class="comment"> * but WITHOUT ANY WARRANTY; without even the implied warranty of./spae="4 17./a>.spae class="comment"> * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU./spae="4 18./a>.spae class="comment"> * General Public License for more details../spae="4 19./a>.spae class="comment"> *./spae="4 2iona>.spae class="comment"> * You should have received a copy of the GNU General Public./spae="4 21./a>.spae class="comment"> * License along with this program; if not, write to the./spae="4 22./a>.spae class="comment"> * Free Software Foundaalue, Inc., 59 Temple Place - Suite 330,./spae="4 23./a>.spae class="comment"> * Bostue, MA 021110-1307, USA../spae="4 24./a>.spae class="comment"> */./spae="4 25./a>"4 26./a>#ifndef4.a href="+code=OCFS2_BUFFER_HEAD_IO_H" class="sref">OCFS2_BUFFER_HEAD_IO_H./a>"4 27./a>#define4.a href="+code=OCFS2_BUFFER_HEAD_IO_H" class="sref">OCFS2_BUFFER_HEAD_IO_H./a>"4 28./a>"4 29./a>#include <linux/buffer_head.h./a>>"4 30./a>"4 31./a>void4.a href="+code=ocfs2_end_buffer_io_sync" class="sref">ocfs2_end_buffer_io_sync./a>(struct4.a href="+code=buffer_head" class="sref">buffer_head./a> *.a href="+code=bh" class="sref">bh./a>,"4 32./a>                             int4.a href="+code=uptodaae" class="sref">uptodaae./a>);"4 33./a>"4 34./a>int4.a href="+code=ocfs2_write_block" class="sref">ocfs2_write_block./a>(struct4.a href="+code=ocfs2_super" class="sref">ocfs2_super./a>          *.a href="+code=osb" class="sref">osb./a>,"4 35./a>                      struct4.a href="+code=buffer_head" class="sref">buffer_head./a>  *.a href="+code=bh" class="sref">bh./a>,"4 36./a>                      struct4.a href="+code=ocfs2_caching_info" class="sref">ocfs2_caching_info./a>   *.a href="+code=ci" class="sref">ci./a>);"4 37./a>int4.a href="+code=ocfs2_read_blocks_sync" class="sref">ocfs2_read_blocks_sync./a>(struct4.a href="+code=ocfs2_super" class="sref">ocfs2_super./a> *.a href="+code=osb" class="sref">osb./a>,4.a href="+code=u64" class="sref">u64./a>4.a href="+code=block" class="sref">block./a>,"4 38./a>                           unsigned int4.a href="+code=nr" class="sref">nr./a>,4struct4.a href="+code=buffer_head" class="sref">buffer_head./a> *.a href="+code=bhs" class="sref">bhs./a>[]);"4 39./a>"4 4iona>.spae class="comment">/*./spae="4 41./a>.spae class="comment"> * If not NULL, >
 idaae() will be called on a buffer that is freshly./spae="4 42./a>.spae class="comment"> * read from disk.  It will not be called if the buffer was in cache../spae="4 43./a>.spae class="comment"> * Note that if >
 idaae() is being used for this buffer, it needs to./spae="4 44./a>.spae class="comment"> * be set even for a READAHEAD call, as it marks the buffer for later./spae="4 45./a>.spae class="comment"> * >
 idaa
	 ../spae="4 46./a>.spae class="comment"> */./spae="4 47./a>int4.a href="+code=ocfs2_read_blocks" class="sref">ocfs2_read_blocks./a>(struct4.a href="+code=ocfs2_caching_info" class="sref">ocfs2_caching_info./a> *.a href="+code=ci" class="sref">ci./a>,4.a href="+code=u64" class="sref">u64./a>4.a href="+code=block" class="sref">block./a>, int4.a href="+code=nr" class="sref">nr./a>,"4 48./a>                      struct4.a href="+code=buffer_head" class="sref">buffer_head./a> *.a href="+code=bhs" class="sref">bhs./a>[], int4.a href="+code=flags" class="sref">flags./a>,"4 49./a>                      int4(*.a href="+code=>
 idaae" class="sref">>
 idaae./a>)(struct4.a href="+code=super_block" class="sref">super_block./a> *.a href="+code=sb" class="sref">sb./a>,"4 50./a>                                      struct4.a href="+code=buffer_head" class="sref">buffer_head./a> *.a href="+code=bh" class="sref">bh./a>));"4 51./a>"4 52./a>int4.a href="+code=ocfs2_write_super_or_backup" class="sref">ocfs2_write_super_or_backup./a>(struct4.a href="+code=ocfs2_super" class="sref">ocfs2_super./a> *.a href="+code=osb" class="sref">osb./a>,"4 53./a>                                struct4.a href="+code=buffer_head" class="sref">buffer_head./a> *.a href="+code=bh" class="sref">bh./a>);"4 54./a>"4 55./a>#define4.a href="+code=OCFS2_BH_IGNORE_CACHE" class="sref">OCFS2_BH_IGNORE_CACHE./a>      1"4 56./a>#define4.a href="+code=OCFS2_BH_READAHEAD" class="sref">OCFS2_BH_READAHEAD./a>         8"4 57./a>"4 58./a>static4.a href="+code=inline" class="sref">inline./a> int4.a href="+code=ocfs2_read_block" class="sref">ocfs2_read_block./a>(struct4.a href="+code=ocfs2_caching_info" class="sref">ocfs2_caching_info./a> *.a href="+code=ci" class="sref">ci./a>,4.a href="+code=u64" class="sref">u64./a>4.a href="+code=off" class="sref">off./a>,"4 59./a>                                   struct4.a href="+code=buffer_head" class="sref">buffer_head./a> **.a href="+code=bh" class="sref">bh./a>,"4 60./a>                                   int4(*.a href="+code=>
 idaae" class="sref">>
 idaae./a>)(struct4.a href="+code=super_block" class="sref">super_block./a> *.a href="+code=sb" class="sref">sb./a>,"4 61./a>                                                   struct4.a href="+code=buffer_head" class="sref">buffer_head./a> *.a href="+code=bh" class="sref">bh./a>))"4 62./a>{"4 63./a>        int4.a href="+code=status" class="sref">status./a> = 0;"4 64./a>"4 65./a>        if (.a href="+code=bh" class="sref">bh./a> ==4.a href="+code=NULL" class="sref">NULL./a>) {"4 66./a>                .a href="+code=printk" class="sref">printk./a>(.spae class="string">"ocfs2: bh ==4NULL\n"./spae=);"4 67./a>                .a href="+code=status" class="sref">status./a> = -.a href="+code=EINVAL" class="sref">EINVAL./a>;"4 68./a>                goto4.a href="+code=bail" class="sref">bail./a>;"4 69./a>        }"4 70./a>"4 71./a>        .a href="+code=status" class="sref">status./a> = .a href="+code=ocfs2_read_blocks" class="sref">ocfs2_read_blocks./a>(.a href="+code=ci" class="sref">ci./a>,4.a href="+code=off" class="sref">off./a>, 1,4.a href="+code=bh" class="sref">bh./a>, 0,4.a href="+code=>
 idaae" class="sref">>
 idaae./a>);"4 72./a>"4 73./a>.a href="+code=bail" class="sref">bail./a>:"4 74./a>        return .a href="+code=status" class="sref">status./a>;"4 75./a>}"4 76./a>"4 77./a>#endif .spae class="comment">/* OCFS2_BUFFER_HEAD_IO_H */./spae="4 78./a>./pre>
The original LXR software by the LXR community./a>, this experimental vers
	  by lxr@linux.no./a>.
./div=".div class="subfooter">
lxr.linux.no kindly hosted by Redpill Linpro AS./a>, provider of Linux consulting and operaalues services since 1995.
./div="
./body="./html="