Browse Source

Orangefs: large integer implicitly truncated to unsigned type

make.cross ARCH=tile doesn't like "inode->i_bytes = PAGE_CACHE_SIZE;",
so cast PAGE_CACHE_SIZE to unsigned short.

Signed-off-by: Mike Marshall <hubcap@omnibond.com>
Mike Marshall 10 years ago
parent
commit
c36316b74e
1 changed files with 1 additions and 1 deletions
  1. 1 1
      fs/orangefs/pvfs2-utils.c

+ 1 - 1
fs/orangefs/pvfs2-utils.c

@@ -163,7 +163,7 @@ static int copy_attributes_to_inode(struct inode *inode,
 		/*FALLTHRU*/
 	default:
 		pvfs2_lock_inode(inode);
-		inode->i_bytes = PAGE_CACHE_SIZE;
+		inode->i_bytes = (unsigned short)PAGE_CACHE_SIZE;
 		inode->i_blocks = (unsigned long)(PAGE_CACHE_SIZE / 512);
 		pvfs2_unlock_inode(inode);