login
Login
/
Register
Search
Search this site:
Forums
News
Blogs
Features
Site
Home
»
Mailing list archives
»
linux-kernel
»
2007
»
September
»
20
Re: [PATCH 4/11] eCryptfs: Replace encrypt, decrypt, and inode size write
view
thread
Previous message: [
thread
] [
date
] [
author
]
Next message: [
thread
] [
date
] [
author
]
[view in full thread]
From: Erez Zadok
Subject:
Re: [PATCH 4/11] eCryptfs: Replace encrypt, decrypt, and inode size write
Date: Thursday, September 20, 2007 - 4:35 pm
In message <20070920214447.GB8496@halcrow.austin.ibm.com>, Michael Halcrow writes:
quoted text
> On Wed, Sep 19, 2007 at 10:46:26PM -0700, Andrew Morton wrote: > (from ecryptfs_encrypt_page()): > > > + enc_extent_virt = kmalloc(PAGE_CACHE_SIZE, GFP_USER); > > > > I'd have thought that alloc_page() would be nicer. After all, we _are_ > > treating it as a page, and not as a random piece of memry. > > > > > + if (!enc_extent_virt) { > > > + rc = -ENOMEM; > > > + ecryptfs_printk(KERN_ERR, "Error allocating memory for " > > > + "encrypted extent\n"); > > > + goto out; > > > + } > > > + enc_extent_page = virt_to_page(enc_extent_virt); > > > > And then we don't need this. > > If neither kmap() nor kmap_atomic() can be safely used to get a > virtual address to pass to vfs_write(), then I do not know what my > other options are here.
kmap_atomic is intended for short-lived code sections, where you may not sleep, so you can't do a vfs_read/write in b/t kmap/kunmap_atomic. Erez. -
unsubscribe notice
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to
majordomo@vger.kernel.org
More majordomo info at
http://vger.kernel.org/majordomo-info.html
Please read the FAQ at
http://www.tux.org/lkml/
Previous message: [
thread
] [
date
] [
author
]
Next message: [
thread
] [
date
] [
author
]
Messages in current thread:
[PATCH 0/11] eCryptfs: Introduce persistent lower files fo ...
, Michael Halcrow
, (Mon Sep 17, 2:44 pm)
[PATCH 1/11] eCryptfs: Remove header_extent_size
, Michael Halcrow
, (Mon Sep 17, 2:45 pm)
[PATCH 2/11] eCryptfs: Remove assignments in if-statements
, Michael Halcrow
, (Mon Sep 17, 2:45 pm)
[PATCH 3/11] eCryptfs: read_write.c routines
, Michael Halcrow
, (Mon Sep 17, 2:46 pm)
[PATCH 4/11] eCryptfs: Replace encrypt, decrypt, and inode ...
, Michael Halcrow
, (Mon Sep 17, 2:47 pm)
[PATCH 5/11] eCryptfs: Set up and destroy persistent lower ...
, Michael Halcrow
, (Mon Sep 17, 2:47 pm)
[PATCH 6/11] eCryptfs: Update metadata read/write functions
, Michael Halcrow
, (Mon Sep 17, 2:48 pm)
[PATCH 7/11] eCryptfs: Make open, truncate, and setattr us ...
, Michael Halcrow
, (Mon Sep 17, 2:49 pm)
[PATCH 8/11] eCryptfs: Convert mmap functions to use persi ...
, Michael Halcrow
, (Mon Sep 17, 2:50 pm)
[PATCH 9/11] eCryptfs: Initialize persistent lower file on ...
, Michael Halcrow
, (Mon Sep 17, 2:50 pm)
[PATCH 10/11] eCryptfs: Remove unused functions and kmem_cache
, Michael Halcrow
, (Mon Sep 17, 2:51 pm)
[PATCH 11/11] eCryptfs: Replace magic numbers
, Michael Halcrow
, (Mon Sep 17, 2:52 pm)
Re: [PATCH 3/11] eCryptfs: read_write.c routines
, Andrew Morton
, (Wed Sep 19, 10:25 pm)
Re: [PATCH 3/11] eCryptfs: read_write.c routines
, Andrew Morton
, (Wed Sep 19, 10:38 pm)
Re: [PATCH 4/11] eCryptfs: Replace encrypt, decrypt, and i ...
, Andrew Morton
, (Wed Sep 19, 10:46 pm)
Re: [PATCH 6/11] eCryptfs: Update metadata read/write func ...
, Andrew Morton
, (Wed Sep 19, 10:48 pm)
Re: [PATCH 8/11] eCryptfs: Convert mmap functions to use p ...
, Andrew Morton
, (Wed Sep 19, 10:50 pm)
Re: [PATCH 4/11] eCryptfs: Replace encrypt, decrypt, and i ...
, Michael Halcrow
, (Thu Sep 20, 2:44 pm)
Re: [PATCH 8/11] eCryptfs: Convert mmap functions to use p ...
, Michael Halcrow
, (Thu Sep 20, 3:03 pm)
Re: [PATCH 4/11] eCryptfs: Replace encrypt, decrypt, and i ...
, Erez Zadok
, (Thu Sep 20, 4:35 pm)
Re: [Ecryptfs-devel] [PATCH 3/11] eCryptfs: read_write.c r ...
, Michael Halcrow
, (Fri Sep 21, 2:51 pm)
Re: [Ecryptfs-devel] [PATCH 3/11] eCryptfs: read_write.c r ...
, Andrew Morton
, (Fri Sep 21, 3:05 pm)
Re: [PATCH 3/11] eCryptfs: read_write.c routines
, Michael Halcrow
, (Mon Sep 24, 3:12 pm)
Re: [PATCH 6/11] eCryptfs: Update metadata read/write func ...
, Michael Halcrow
, (Mon Sep 24, 3:40 pm)
Re: [Ecryptfs-devel] [PATCH 3/11] eCryptfs: read_write.c r ...
, Michael Halcrow
, (Tue Sep 25, 8:56 am)
Navigation
Mailing list archives
Recent posts
Popular discussions
linux-kernel
:
Ingo Molnar
Re: [PATCH 0/3] v2 Make hierarchical RCU less IPI-happy and add more tracing
Jeremy Fitzhardinge
Re: Linux 2.6.28.10 and Linux 2.6.29.6 XEN Guest Support Broken x86_64 in BUILD
Nick Piggin
Re: [patch] CFS (Completely Fair Scheduler), v2
Gary Hade
Re: [PATCH 0/5][RFC] Physical PCI slot objects
Dave Johnson
Re: expected behavior of PF_PACKET on NETIF_F_HW_VLAN_RX device?
linux-netdev
:
Arnd Bergmann
Re: 64-bit net_device_stats
Stephens, Allan
RE: [PATCH]: tipc: Fix oops on send prior to entering networked mode
frank.blaschka
[patch 3/5] [PATCH] qeth: support z/VM VSWITCH Port Isolation
Wu Fengguang
Re: [PATCH] dm9601: handle corrupt mac address
David Miller
Re: [PATCH net-2.6.24] Fix refcounting problem with netif_rx_reschedule()
git
:
Junio C Hamano
Re: [PATCH] [RFC] add Message-ID field to log on git-am operation
Junio C Hamano
Re: Handling large files with GIT
Karl
Re: [ANNOUNCE] pg - A patch porcelain for GIT
Josh Triplett
Re: [RFC][PATCH 00/10] Sparse: Git's "make check" target
Pierre Habouzit
Re: [PATCH] git-daemon: more powerful base-path/user-path settings, using formats.
git-commits-head
:
Linux Kernel Mailing List
MIPS: RBTX4939: Fix IOC pin-enable register updating
Linux Kernel Mailing List
regulator: update email address for Liam Girdwood
Linux Kernel Mailing List
[SCSI] ipr: add message to error table
Linux Kernel Mailing List
powerpc/32: Wire up the trampoline code for kdump
Linux Kernel Mailing List
USB: omap_udc: sync with OMAP tree
openbsd-misc
:
Josh Grosse
Re: error : pkg add phpMyAdmin
Brian Candler
Re: OBSD's perspective on SELinux
Jacob Meuser
Re: /dev/audio: Device busy
David Vasek
Re: Inexpensive, low power, "wall wart" computer
William Boshuck
Re: Richard Stallman...
Colocation donated by:
Syndicate