* [patch] affs: use loff_t in affs_truncate()
@ 2013-07-25 9:27 ` Dan Carpenter
0 siblings, 0 replies; 2+ messages in thread
From: Dan Carpenter @ 2013-07-25 9:27 UTC (permalink / raw)
To: Marco Stornelli; +Cc: Al Viro, linux-fsdevel, kernel-janitors
It seems pretty unlikely that AFFS supports files over 4GB but we may as
well leave use loff_t just for cleanness sake instead of truncating it
to 32 bits.
Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
diff --git a/fs/affs/file.c b/fs/affs/file.c
index af3261b..776e393 100644
--- a/fs/affs/file.c
+++ b/fs/affs/file.c
@@ -836,7 +836,7 @@ affs_truncate(struct inode *inode)
struct address_space *mapping = inode->i_mapping;
struct page *page;
void *fsdata;
- u32 size = inode->i_size;
+ loff_t size = inode->i_size;
int res;
res = mapping->a_ops->write_begin(NULL, mapping, size, 0, 0, &page, &fsdata);
^ permalink raw reply related [flat|nested] 2+ messages in thread
* [patch] affs: use loff_t in affs_truncate()
@ 2013-07-25 9:27 ` Dan Carpenter
0 siblings, 0 replies; 2+ messages in thread
From: Dan Carpenter @ 2013-07-25 9:27 UTC (permalink / raw)
To: Marco Stornelli; +Cc: Al Viro, linux-fsdevel, kernel-janitors
It seems pretty unlikely that AFFS supports files over 4GB but we may as
well leave use loff_t just for cleanness sake instead of truncating it
to 32 bits.
Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
diff --git a/fs/affs/file.c b/fs/affs/file.c
index af3261b..776e393 100644
--- a/fs/affs/file.c
+++ b/fs/affs/file.c
@@ -836,7 +836,7 @@ affs_truncate(struct inode *inode)
struct address_space *mapping = inode->i_mapping;
struct page *page;
void *fsdata;
- u32 size = inode->i_size;
+ loff_t size = inode->i_size;
int res;
res = mapping->a_ops->write_begin(NULL, mapping, size, 0, 0, &page, &fsdata);
^ permalink raw reply related [flat|nested] 2+ messages in thread
end of thread, other threads:[~2013-07-25 9:30 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2013-07-25 9:27 [patch] affs: use loff_t in affs_truncate() Dan Carpenter
2013-07-25 9:27 ` Dan Carpenter
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.