Re: + 2tb-files-add-blkcnt_t-fixes.patch added to -mm tree

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



2006/1/14, [email protected] <[email protected]>:
>
> The patch titled
>
>      2tb-files-add-blkcnt_t-fixes
>
> has been added to the -mm tree.  Its filename is
>
>      2tb-files-add-blkcnt_t-fixes.patch
>
>
> From: Andrew Morton <[email protected]>
>
> Cc: Takashi Sato <[email protected]>
> Signed-off-by: Andrew Morton <[email protected]>
> ---
>
>  fs/cifs/inode.c    |    6 +++---
>  fs/cifs/readdir.c  |    8 ++++----
>  fs/ocfs2/journal.c |    8 +++++---
>  fs/ocfs2/namei.c   |    5 +++--
>  cifs/file.c        |    0
>  5 files changed, 15 insertions(+), 12 deletions(-)
>
> diff -puN fs/cifs/inode.c~2tb-files-add-blkcnt_t-fixes fs/cifs/inode.c
> --- devel/fs/cifs/inode.c~2tb-files-add-blkcnt_t-fixes  2006-01-13 22:22:50.000000000 -0800
> +++ devel-akpm/fs/cifs/inode.c  2006-01-13 22:23:47.000000000 -0800
> @@ -163,9 +163,9 @@ int cifs_get_inode_info_unix(struct inod
>
>                 if (num_of_bytes < end_of_file)
>                         cFYI(1, ("allocation size less than end of file"));
> -               cFYI(1,
> -                    ("Size %ld and blocks %ld",
> -                     (unsigned long) inode->i_size, inode->i_blocks));
> +               cFYI(1, ("Size %ld and blocks %llu",
> +                       (unsigned long) inode->i_size,

Fix i_size too please. There're a lot.

> +                       (unsigned long long)inode->i_blocks));
>                 if (S_ISREG(inode->i_mode)) {
>                         cFYI(1, ("File inode"));
>                         inode->i_op = &cifs_file_inode_ops;
> diff -puN fs/ocfs2/journal.c~2tb-files-add-blkcnt_t-fixes fs/ocfs2/journal.c
> --- devel/fs/ocfs2/journal.c~2tb-files-add-blkcnt_t-fixes       2006-01-13 22:22:50.000000000 -0800
> +++ devel-akpm/fs/ocfs2/journal.c       2006-01-13 22:30:29.000000000 -0800
> @@ -579,7 +579,8 @@ int ocfs2_journal_init(struct ocfs2_jour
>         }
>
>         mlog(0, "inode->i_size = %lld\n", inode->i_size);
> -       mlog(0, "inode->i_blocks = %lu\n", inode->i_blocks);
> +       mlog(0, "inode->i_blocks = %llu\n",
> +                       (unsigned long long)inode->i_blocks);
>         mlog(0, "inode->ip_clusters = %u\n", OCFS2_I(inode)->ip_clusters);
>
>         /* call the kernels journal init function now */
> @@ -848,8 +849,9 @@ static int ocfs2_force_read_journal(stru
>
>         memset(bhs, 0, sizeof(struct buffer_head *) * CONCURRENT_JOURNAL_FILL);
>
> -       mlog(0, "Force reading %lu blocks\n",
> -            (inode->i_blocks >> (inode->i_sb->s_blocksize_bits - 9)));
> +       mlog(0, "Force reading %llu blocks\n",
> +               (unsigned long long)(inode->i_blocks >>
> +                       (inode->i_sb->s_blocksize_bits - 9)));
>
>         v_blkno = 0;
>         while (v_blkno <
> diff -puN fs/ocfs2/namei.c~2tb-files-add-blkcnt_t-fixes fs/ocfs2/namei.c
> --- devel/fs/ocfs2/namei.c~2tb-files-add-blkcnt_t-fixes 2006-01-13 22:22:50.000000000 -0800
> +++ devel-akpm/fs/ocfs2/namei.c 2006-01-13 22:27:18.000000000 -0800
> @@ -1443,8 +1443,9 @@ static int ocfs2_create_symlink_data(str
>          * write i_size + 1 bytes. */
>         blocks = (bytes_left + sb->s_blocksize - 1) >> sb->s_blocksize_bits;
>
> -       mlog_entry("i_blocks = %lu, i_size = %llu, blocks = %d\n",
> -                      inode->i_blocks, i_size_read(inode), blocks);
> +       mlog_entry("i_blocks = %llu, i_size = %llu, blocks = %d\n",
> +                       (unsigned long long)inode->i_blocks,
> +                       i_size_read(inode), blocks);
>
>         /* Sanity check -- make sure we're going to fit. */
>         if (bytes_left >
> diff -puN fs/cifs/file.c~2tb-files-add-blkcnt_t-fixes fs/cifs/file.c
> diff -puN fs/cifs/readdir.c~2tb-files-add-blkcnt_t-fixes fs/cifs/readdir.c
> --- devel/fs/cifs/readdir.c~2tb-files-add-blkcnt_t-fixes        2006-01-13 22:24:02.000000000 -0800
> +++ devel-akpm/fs/cifs/readdir.c        2006-01-13 22:24:45.000000000 -0800
> @@ -197,10 +197,10 @@ static void fill_in_inode(struct inode *
>
>         if (allocation_size < end_of_file)
>                 cFYI(1, ("May be sparse file, allocation less than file size"));
> -       cFYI(1,
> -            ("File Size %ld and blocks %ld and blocksize %ld",
> -             (unsigned long)tmp_inode->i_size, tmp_inode->i_blocks,
> -             tmp_inode->i_blksize));
> +       cFYI(1, ("File Size %ld and blocks %llu and blocksize %ld",
> +               (unsigned long)tmp_inode->i_size,
> +               (unsigned long long)tmp_inode->i_blocks,
> +               tmp_inode->i_blksize));
>         if (S_ISREG(tmp_inode->i_mode)) {
>                 cFYI(1, ("File inode"));
>                 tmp_inode->i_op = &cifs_file_inode_ops;

--
Coywolf Qi Hunt
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to [email protected]
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

[Index of Archives]     [Kernel Newbies]     [Netfilter]     [Bugtraq]     [Photo]     [Stuff]     [Gimp]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Video 4 Linux]     [Linux for the blind]     [Linux Resources]
  Powered by Linux