linux-2.6.33/__filemap_fdatawrite_range()
をテンプレートにして作成
[
トップ
] [
新規
|
一覧
|
検索
|
最終更新
|
ヘルプ
|
ログイン
]
開始行:
*参照元 [#g3744a33]
#backlinks
*説明 [#r087ef8d]
-パス: [[linux-2.6.33/mm/filemap.c]]
-FIXME: これは何?
--説明
**引数 [#q8306202]
-struct address_space *mapping
--
--[[linux-2.6.33/address_space]]
-loff_t start
--
-loff_t end
--
-int sync_mode
--
**返り値 [#vb89b021]
-int
--
**参考 [#aa1c0243]
*実装 [#s5b09e2a]
/**
* __filemap_fdatawrite_range - start writeback on mappi...
* @mapping: address space structure to write
* @start: offset in bytes where the range starts
* @end: offset in bytes where the range ends (inclusive)
* @sync_mode: enable synchronous operation
*
* Start writeback against all of a mapping's dirty page...
* within the byte offsets <start, end> inclusive.
*
* If sync_mode is WB_SYNC_ALL then this is a "data inte...
* opposed to a regular memory cleansing writeback. The...
* these two operations is that if a dirty page/buffer i...
* be waited upon, and not just skipped over.
*/
int __filemap_fdatawrite_range(struct address_space *map...
loff_t end, int sync_mode)
{
int ret;
struct writeback_control wbc = {
.sync_mode = sync_mode,
.nr_to_write = LONG_MAX,
.range_start = start,
.range_end = end,
};
-
--[[linux-2.6.33/writeback_control]]
if (!mapping_cap_writeback_dirty(mapping))
return 0;
-
--[[linux-2.6.33/mapping_cap_writeback_dirty()]]
ret = do_writepages(mapping, &wbc);
-
--[[linux-2.6.33/do_writepages()]]
return ret;
}
*コメント [#d2fb5357]
終了行:
*参照元 [#g3744a33]
#backlinks
*説明 [#r087ef8d]
-パス: [[linux-2.6.33/mm/filemap.c]]
-FIXME: これは何?
--説明
**引数 [#q8306202]
-struct address_space *mapping
--
--[[linux-2.6.33/address_space]]
-loff_t start
--
-loff_t end
--
-int sync_mode
--
**返り値 [#vb89b021]
-int
--
**参考 [#aa1c0243]
*実装 [#s5b09e2a]
/**
* __filemap_fdatawrite_range - start writeback on mappi...
* @mapping: address space structure to write
* @start: offset in bytes where the range starts
* @end: offset in bytes where the range ends (inclusive)
* @sync_mode: enable synchronous operation
*
* Start writeback against all of a mapping's dirty page...
* within the byte offsets <start, end> inclusive.
*
* If sync_mode is WB_SYNC_ALL then this is a "data inte...
* opposed to a regular memory cleansing writeback. The...
* these two operations is that if a dirty page/buffer i...
* be waited upon, and not just skipped over.
*/
int __filemap_fdatawrite_range(struct address_space *map...
loff_t end, int sync_mode)
{
int ret;
struct writeback_control wbc = {
.sync_mode = sync_mode,
.nr_to_write = LONG_MAX,
.range_start = start,
.range_end = end,
};
-
--[[linux-2.6.33/writeback_control]]
if (!mapping_cap_writeback_dirty(mapping))
return 0;
-
--[[linux-2.6.33/mapping_cap_writeback_dirty()]]
ret = do_writepages(mapping, &wbc);
-
--[[linux-2.6.33/do_writepages()]]
return ret;
}
*コメント [#d2fb5357]
ページ名: