Whamcloud - gitweb
git://git.whamcloud.com
/
fs
/
lustre-release.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
70e78f5
)
Branch: HEAD
author
wangdi
<wangdi>
Fri, 19 Aug 2005 17:55:54 +0000
(17:55 +0000)
committer
wangdi
<wangdi>
Fri, 19 Aug 2005 17:55:54 +0000
(17:55 +0000)
b7374,7375 offset should be mapped inside page. when crypt and decrypt
lustre/llite/llite_gs.c
patch
|
blob
|
history
diff --git
a/lustre/llite/llite_gs.c
b/lustre/llite/llite_gs.c
index
841d349
..
4f7a9d3
100644
(file)
--- a/
lustre/llite/llite_gs.c
+++ b/
lustre/llite/llite_gs.c
@@
-522,7
+522,7
@@
static int ll_crypt_cb(struct page *page, __u64 offset, __u64 count,
/*encrypt the data*/
ptr = (char *)kmap(page);
key_ptr = ptr;
- ptr += offset;
+ ptr += offset
& (PAGE_SIZE - 1)
;
CDEBUG(D_INFO, "ptr is %s \n", ptr);
for (i = 0; i < count; i++)
*ptr++ ^= (__u8)data_key;