Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 24081
b: refs/heads/master
c: a0f62ac
h: refs/heads/master
i:
  24079: cc23795
v: v3
  • Loading branch information
Takashi Sato authored and Linus Torvalds committed Mar 26, 2006
1 parent 33d271b commit fc70119
Show file tree
Hide file tree
Showing 10 changed files with 43 additions and 2 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: abcb6c9fd13fc2ad7757b818924dc8109a0e3775
refs/heads/master: a0f62ac6362c168754cccb36f196b3dfbddc3bc3
9 changes: 9 additions & 0 deletions trunk/block/Kconfig
Original file line number Diff line number Diff line change
Expand Up @@ -23,4 +23,13 @@ config BLK_DEV_IO_TRACE

git://brick.kernel.dk/data/git/blktrace.git

config LSF
bool "Support for Large Single Files"
depends on X86 || (MIPS && 32BIT) || PPC32 || ARCH_S390_31 || SUPERH || UML
default n
help
When CONFIG_LBD is disabled, say Y here if you want to
handle large file(bigger than 2TB), otherwise say N.
When CONFIG_LBD is enabled, Y is set automatically.

source block/Kconfig.iosched
3 changes: 3 additions & 0 deletions trunk/include/asm-h8300/types.h
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,9 @@ typedef u32 dma_addr_t;
#define HAVE_SECTOR_T
typedef u64 sector_t;

#define HAVE_BLKCNT_T
typedef u64 blkcnt_t;

#endif /* __KERNEL__ */

#endif /* __ASSEMBLY__ */
Expand Down
5 changes: 5 additions & 0 deletions trunk/include/asm-i386/types.h
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,11 @@ typedef u64 sector_t;
#define HAVE_SECTOR_T
#endif

#ifdef CONFIG_LSF
typedef u64 blkcnt_t;
#define HAVE_BLKCNT_T
#endif

#endif /* __ASSEMBLY__ */

#endif /* __KERNEL__ */
Expand Down
5 changes: 5 additions & 0 deletions trunk/include/asm-mips/types.h
Original file line number Diff line number Diff line change
Expand Up @@ -99,6 +99,11 @@ typedef u64 sector_t;
#define HAVE_SECTOR_T
#endif

#ifdef CONFIG_LSF
typedef u64 blkcnt_t;
#define HAVE_BLKCNT_T
#endif

#endif /* __ASSEMBLY__ */

#endif /* __KERNEL__ */
Expand Down
5 changes: 5 additions & 0 deletions trunk/include/asm-powerpc/types.h
Original file line number Diff line number Diff line change
Expand Up @@ -103,6 +103,11 @@ typedef u64 sector_t;
#define HAVE_SECTOR_T
#endif

#ifdef CONFIG_LSF
typedef u64 blkcnt_t;
#define HAVE_BLKCNT_T
#endif

#endif /* __ASSEMBLY__ */

#endif /* __KERNEL__ */
Expand Down
5 changes: 5 additions & 0 deletions trunk/include/asm-s390/types.h
Original file line number Diff line number Diff line change
Expand Up @@ -93,6 +93,11 @@ typedef u64 sector_t;
#define HAVE_SECTOR_T
#endif

#ifdef CONFIG_LSF
typedef u64 blkcnt_t;
#define HAVE_BLKCNT_T
#endif

#endif /* ! __s390x__ */
#endif /* __ASSEMBLY__ */
#endif /* __KERNEL__ */
Expand Down
5 changes: 5 additions & 0 deletions trunk/include/asm-sh/types.h
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,11 @@ typedef u64 sector_t;
#define HAVE_SECTOR_T
#endif

#ifdef CONFIG_LSF
typedef u64 blkcnt_t;
#define HAVE_BLKCNT_T
#endif

#endif /* __ASSEMBLY__ */

#endif /* __KERNEL__ */
Expand Down
2 changes: 1 addition & 1 deletion trunk/include/linux/fs.h
Original file line number Diff line number Diff line change
Expand Up @@ -490,7 +490,7 @@ struct inode {
unsigned int i_blkbits;
unsigned long i_blksize;
unsigned long i_version;
sector_t i_blocks;
blkcnt_t i_blocks;
unsigned short i_bytes;
spinlock_t i_lock; /* i_blocks, i_bytes, maybe i_size */
struct mutex i_mutex;
Expand Down
4 changes: 4 additions & 0 deletions trunk/include/linux/types.h
Original file line number Diff line number Diff line change
Expand Up @@ -137,6 +137,10 @@ typedef __s64 int64_t;
typedef unsigned long sector_t;
#endif

#ifndef HAVE_BLKCNT_T
typedef unsigned long blkcnt_t;
#endif

/*
* The type of an index into the pagecache. Use a #define so asm/types.h
* can override it.
Expand Down

0 comments on commit fc70119

Please sign in to comment.