diff options
author | Jeff Garzik <jeff@garzik.org> | 2006-04-01 14:29:12 -0500 |
---|---|---|
committer | Jeff Garzik <jeff@garzik.org> | 2006-04-01 14:29:12 -0500 |
commit | 6e07e16404deafadf45895a7d2aeb5feba53b479 (patch) | |
tree | a7025d6632f0b3eb6232eafba79f331ead812fcf /mm/fadvise.c | |
parent | 08a556db919f67e1e4d33ae8d40f7222da34d994 (diff) | |
parent | e8e0619f68bff8f39d98c46aac85ed1d4557ccfd (diff) | |
download | kernel-crypto-6e07e16404deafadf45895a7d2aeb5feba53b479.tar.gz kernel-crypto-6e07e16404deafadf45895a7d2aeb5feba53b479.tar.xz kernel-crypto-6e07e16404deafadf45895a7d2aeb5feba53b479.zip |
Merge branch 'upstream'
Diffstat (limited to 'mm/fadvise.c')
-rw-r--r-- | mm/fadvise.c | 20 |
1 files changed, 0 insertions, 20 deletions
diff --git a/mm/fadvise.c b/mm/fadvise.c index 907c39257ca..0a03357a1f8 100644 --- a/mm/fadvise.c +++ b/mm/fadvise.c @@ -35,17 +35,6 @@ * * LINUX_FADV_ASYNC_WRITE: push some or all of the dirty pages at the disk. * - * LINUX_FADV_WRITE_WAIT, LINUX_FADV_ASYNC_WRITE: push all of the currently - * dirty pages at the disk. - * - * LINUX_FADV_WRITE_WAIT, LINUX_FADV_ASYNC_WRITE, LINUX_FADV_WRITE_WAIT: push - * all of the currently dirty pages at the disk, wait until they have been - * written. - * - * It should be noted that none of these operations write out the file's - * metadata. So unless the application is strictly performing overwrites of - * already-instantiated disk blocks, there are no guarantees here that the data - * will be available after a crash. */ asmlinkage long sys_fadvise64_64(int fd, loff_t offset, loff_t len, int advice) { @@ -129,15 +118,6 @@ asmlinkage long sys_fadvise64_64(int fd, loff_t offset, loff_t len, int advice) invalidate_mapping_pages(mapping, start_index, end_index); break; - case LINUX_FADV_ASYNC_WRITE: - ret = __filemap_fdatawrite_range(mapping, offset, endbyte, - WB_SYNC_NONE); - break; - case LINUX_FADV_WRITE_WAIT: - ret = wait_on_page_writeback_range(mapping, - offset >> PAGE_CACHE_SHIFT, - endbyte >> PAGE_CACHE_SHIFT); - break; default: ret = -EINVAL; } |