ok thanks got that change .......!!
--- a/fs/ecryptfs/read_write.c +++ b/fs/ecryptfs/read_write.c @@ -130,13 +130,13 @@ int ecryptfs_write(struct inode *ecryptfs_inode, char *data, loff_t offset, pgoff_t ecryptfs_page_idx = (pos >> PAGE_CACHE_SHIFT); size_t start_offset_in_page = (pos & ~PAGE_CACHE_MASK); size_t num_bytes = (PAGE_CACHE_SIZE - start_offset_in_page); - size_t total_remaining_bytes = ((offset + size) - pos); + loff_t total_remaining_bytes = ((offset + size) - pos);
if (num_bytes > total_remaining_bytes) num_bytes = total_remaining_bytes; if (pos < offset) { /* remaining zeros to write, up to destination offset */ - size_t total_remaining_zeros = (offset - pos); + loff_t total_remaining_zeros = (offset - pos);
if (num_bytes > total_remaining_zeros) num_bytes = total_remaining_zeros;
ok thanks got that change .......!!
--- a/fs/ecryptfs/ read_write. c read_write. c write(struct inode *ecryptfs_inode, char *data, loff_t offset,
pgoff_ t ecryptfs_page_idx = (pos >> PAGE_CACHE_SHIFT);
size_ t start_offset_ in_page = (pos & ~PAGE_CACHE_MASK);
size_ t num_bytes = (PAGE_CACHE_SIZE - start_offset_ in_page) ; _bytes = ((offset + size) - pos); _bytes = ((offset + size) - pos);
+++ b/fs/ecryptfs/
@@ -130,13 +130,13 @@ int ecryptfs_
- size_t total_remaining
+ loff_t total_remaining
if (num_bytes > total_remaining _bytes)
num_ bytes = total_remaining _bytes;
/* remaining zeros to write, up to destination offset */ _zeros = (offset - pos); _zeros = (offset - pos);
if (pos < offset) {
- size_t total_remaining
+ loff_t total_remaining