linux-2.6.33/filemap_write_and_wait_range()
をテンプレートにして作成
[
トップ
] [
新規
|
一覧
|
検索
|
最終更新
|
ヘルプ
|
ログイン
]
開始行:
*参照元 [#z6d5b7e1]
#backlinks
*説明 [#w204e554]
-パス: [[linux-2.6.33/mm/filemap.c]]
-FIXME: これは何?
--説明
**引数 [#bd5acfd5]
-struct address_space *mapping
--
--[[linux-2.6.33/address_space]]
-loff_t lstart
--
-loff_t lend
--
**返り値 [#o5db6e33]
-int
--
**参考 [#la6ee19f]
*実装 [#ca0c463e]
/**
* filemap_write_and_wait_range - write out & wait on a ...
* @mapping: the address_space for the pages
* @lstart: offset in bytes where the range starts
* @lend: offset in bytes where the range ends (inclusive)
*
* Write out and wait upon file offsets lstart->lend, in...
*
* Note that `lend' is inclusive (describes the last byt...
* that this function can be used to write to the very e...
*/
int filemap_write_and_wait_range(struct address_space *m...
loff_t lstart, loff_t lend)
{
int err = 0;
if (mapping->nrpages) {
err = __filemap_fdatawrite_range(mapping, lstart, lend,
WB_SYNC_ALL);
-
--[[linux-2.6.33/__filemap_fdatawrite_range()]]
/* See comment of filemap_write_and_wait() */
if (err != -EIO) {
int err2 = filemap_fdatawait_range(mapping,
lstart, lend);
-
--[[linux-2.6.33/filemap_fdatawait_range()]]
if (!err)
err = err2;
}
}
return err;
}
EXPORT_SYMBOL(filemap_write_and_wait_range);
-特にライセンスを区別せずシンボルを公開する。
--[[linux-2.6.33/EXPORT_SYMBOL()]]
*コメント [#i086b534]
終了行:
*参照元 [#z6d5b7e1]
#backlinks
*説明 [#w204e554]
-パス: [[linux-2.6.33/mm/filemap.c]]
-FIXME: これは何?
--説明
**引数 [#bd5acfd5]
-struct address_space *mapping
--
--[[linux-2.6.33/address_space]]
-loff_t lstart
--
-loff_t lend
--
**返り値 [#o5db6e33]
-int
--
**参考 [#la6ee19f]
*実装 [#ca0c463e]
/**
* filemap_write_and_wait_range - write out & wait on a ...
* @mapping: the address_space for the pages
* @lstart: offset in bytes where the range starts
* @lend: offset in bytes where the range ends (inclusive)
*
* Write out and wait upon file offsets lstart->lend, in...
*
* Note that `lend' is inclusive (describes the last byt...
* that this function can be used to write to the very e...
*/
int filemap_write_and_wait_range(struct address_space *m...
loff_t lstart, loff_t lend)
{
int err = 0;
if (mapping->nrpages) {
err = __filemap_fdatawrite_range(mapping, lstart, lend,
WB_SYNC_ALL);
-
--[[linux-2.6.33/__filemap_fdatawrite_range()]]
/* See comment of filemap_write_and_wait() */
if (err != -EIO) {
int err2 = filemap_fdatawait_range(mapping,
lstart, lend);
-
--[[linux-2.6.33/filemap_fdatawait_range()]]
if (!err)
err = err2;
}
}
return err;
}
EXPORT_SYMBOL(filemap_write_and_wait_range);
-特にライセンスを区別せずシンボルを公開する。
--[[linux-2.6.33/EXPORT_SYMBOL()]]
*コメント [#i086b534]
ページ名: