~ubuntu-branches/ubuntu/karmic/linux-ports/karmic

« back to all changes in this revision

Viewing changes to fs/minix/inode.c

  • Committer: Bazaar Package Importer
  • Author(s): Luke Yelavich, Luke Yelavich, Michael Casadevall, Tim Gardner, Upstream Kernel Changes
  • Date: 2009-05-06 18:18:55 UTC
  • Revision ID: james.westby@ubuntu.com-20090506181855-t00baeevpnvd9o7a
Tags: 2.6.30-1.1
[ Luke Yelavich ]
* initial release for karmic
* SAUCE: rebase-ports - adjust for the karmic ports kernel
* SAUCE: rebase-ports - also remove abi dirs/files on rebase
* Update configs after rebase against mainline Jaunty tree
* [Config] Disable CONFIG_BLK_DEV_UB and CONFIG_USB_LIBUSUAL as per
  mainline jaunty
* forward-port patch to drbd for powerpc compilation
* [Config] disable CONFIG_LENOVO_SL_LAPTOP for i386 due to FTBFS
* add .o files found in arch/powerpc/lib to all powerpc kernel header
  packages
* [Config] enable CONFIG_DRM_I915_KMS for i386 as per karmic mainline

[ Michael Casadevall ]

* Disable kgdb on sparc64
* [sparc] [Config] Disable GPIO LEDS
* [ia64] Rename -ia64-generic to -ia64 in line with other architectures
* Correct kernel image path for sparc builds
* [hppa] Fix HPPA config files to build modules for all udebian

Rebase on top of karmic mainline 2.6.30-1.1

[ Tim Gardner ]

* [Config] armel: disable staging drivers, fixes FTBS
* [Config] armel imx51: Disable CONFIG_MTD_NAND_MXC, fixes FTBS

[ Upstream Kernel Changes ]

* mpt2sas: Change reset_type enum to avoid namespace collision.
  Submitted upstream.

* Initial release after rebasing against v2.6.30-rc3

Show diffs side-by-side

added added

removed removed

Lines of Context:
3
3
 *
4
4
 *  Copyright (C) 1991, 1992  Linus Torvalds
5
5
 *
6
 
 *  Copyright (C) 1996  Gertjan van Wingerde    (gertjan@cs.vu.nl)
 
6
 *  Copyright (C) 1996  Gertjan van Wingerde
7
7
 *      Minix V2 fs support.
8
8
 *
9
9
 *  Modified for 680x0 by Andreas Schwab
321
321
 
322
322
static int minix_statfs(struct dentry *dentry, struct kstatfs *buf)
323
323
{
324
 
        struct minix_sb_info *sbi = minix_sb(dentry->d_sb);
325
 
        buf->f_type = dentry->d_sb->s_magic;
326
 
        buf->f_bsize = dentry->d_sb->s_blocksize;
 
324
        struct super_block *sb = dentry->d_sb;
 
325
        struct minix_sb_info *sbi = minix_sb(sb);
 
326
        u64 id = huge_encode_dev(sb->s_bdev->bd_dev);
 
327
        buf->f_type = sb->s_magic;
 
328
        buf->f_bsize = sb->s_blocksize;
327
329
        buf->f_blocks = (sbi->s_nzones - sbi->s_firstdatazone) << sbi->s_log_zone_size;
328
330
        buf->f_bfree = minix_count_free_blocks(sbi);
329
331
        buf->f_bavail = buf->f_bfree;
330
332
        buf->f_files = sbi->s_ninodes;
331
333
        buf->f_ffree = minix_count_free_inodes(sbi);
332
334
        buf->f_namelen = sbi->s_namelen;
 
335
        buf->f_fsid.val[0] = (u32)id;
 
336
        buf->f_fsid.val[1] = (u32)(id >> 32);
 
337
 
333
338
        return 0;
334
339
}
335
340