*参照元 [#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 file range
  * @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, inclusive.
  *
  * Note that `lend' is inclusive (describes the last byte to be written) so
  * that this function can be used to write to the very end-of-file (end = -1).
  */
 int filemap_write_and_wait_range(struct address_space *mapping,
 				 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]


トップ   編集 差分 履歴 添付 複製 名前変更 リロード   新規 一覧 検索 最終更新   ヘルプ   最終更新のRSS