Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 197995
b: refs/heads/master
c: bef5bc2
h: refs/heads/master
i:
  197993: f4ce3c2
  197991: ba3d3fd
v: v3
  • Loading branch information
Al Viro committed May 21, 2010
1 parent 74be0e5 commit 3dac678
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 5 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: f6d335c08df48b318187a087c9c38ba3d416e115
refs/heads/master: bef5bc2464517cbbf8f85f09b5ade46904afec9a
7 changes: 3 additions & 4 deletions trunk/fs/ecryptfs/mmap.c
Original file line number Diff line number Diff line change
Expand Up @@ -198,7 +198,7 @@ ecryptfs_copy_up_encrypted_with_header(struct page *page,
static int ecryptfs_readpage(struct file *file, struct page *page)
{
struct ecryptfs_crypt_stat *crypt_stat =
&ecryptfs_inode_to_private(file->f_path.dentry->d_inode)->crypt_stat;
&ecryptfs_inode_to_private(page->mapping->host)->crypt_stat;
int rc = 0;

if (!crypt_stat
Expand Down Expand Up @@ -300,8 +300,7 @@ static int ecryptfs_write_begin(struct file *file,

if (!PageUptodate(page)) {
struct ecryptfs_crypt_stat *crypt_stat =
&ecryptfs_inode_to_private(
file->f_path.dentry->d_inode)->crypt_stat;
&ecryptfs_inode_to_private(mapping->host)->crypt_stat;

if (!(crypt_stat->flags & ECRYPTFS_ENCRYPTED)
|| (crypt_stat->flags & ECRYPTFS_NEW_FILE)) {
Expand Down Expand Up @@ -487,7 +486,7 @@ static int ecryptfs_write_end(struct file *file,
unsigned to = from + copied;
struct inode *ecryptfs_inode = mapping->host;
struct ecryptfs_crypt_stat *crypt_stat =
&ecryptfs_inode_to_private(file->f_path.dentry->d_inode)->crypt_stat;
&ecryptfs_inode_to_private(ecryptfs_inode)->crypt_stat;
int rc;

if (crypt_stat->flags & ECRYPTFS_NEW_FILE) {
Expand Down

0 comments on commit 3dac678

Please sign in to comment.