diff options
author | Theodore Ts'o <tytso@mit.edu> | 2006-09-27 04:50:49 -0400 |
---|---|---|
committer | Linus Torvalds <torvalds@g5.osdl.org> | 2006-09-27 11:26:18 -0400 |
commit | ba52de123d454b57369f291348266d86f4b35070 (patch) | |
tree | 3973f3f3c853b5857b6b64a027cadd4fe954e3b9 /fs/jffs/inode-v23.c | |
parent | 577c4eb09d1034d0739e3135fd2cff50588024be (diff) |
[PATCH] inode-diet: Eliminate i_blksize from the inode structure
This eliminates the i_blksize field from struct inode. Filesystems that want
to provide a per-inode st_blksize can do so by providing their own getattr
routine instead of using the generic_fillattr() function.
Note that some filesystems were providing pretty much random (and incorrect)
values for i_blksize.
[bunk@stusta.de: cleanup]
[akpm@osdl.org: generic_fillattr() fix]
Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
Signed-off-by: Adrian Bunk <bunk@stusta.de>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
Diffstat (limited to 'fs/jffs/inode-v23.c')
-rw-r--r-- | fs/jffs/inode-v23.c | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/fs/jffs/inode-v23.c b/fs/jffs/inode-v23.c index 7358ef87f16b..f5cf9c93e243 100644 --- a/fs/jffs/inode-v23.c +++ b/fs/jffs/inode-v23.c | |||
@@ -364,7 +364,6 @@ jffs_new_inode(const struct inode * dir, struct jffs_raw_inode *raw_inode, | |||
364 | inode->i_ctime.tv_nsec = 0; | 364 | inode->i_ctime.tv_nsec = 0; |
365 | inode->i_mtime.tv_nsec = 0; | 365 | inode->i_mtime.tv_nsec = 0; |
366 | inode->i_atime.tv_nsec = 0; | 366 | inode->i_atime.tv_nsec = 0; |
367 | inode->i_blksize = PAGE_SIZE; | ||
368 | inode->i_blocks = (inode->i_size + 511) >> 9; | 367 | inode->i_blocks = (inode->i_size + 511) >> 9; |
369 | 368 | ||
370 | f = jffs_find_file(c, raw_inode->ino); | 369 | f = jffs_find_file(c, raw_inode->ino); |
@@ -1706,7 +1705,6 @@ jffs_read_inode(struct inode *inode) | |||
1706 | inode->i_mtime.tv_nsec = | 1705 | inode->i_mtime.tv_nsec = |
1707 | inode->i_ctime.tv_nsec = 0; | 1706 | inode->i_ctime.tv_nsec = 0; |
1708 | 1707 | ||
1709 | inode->i_blksize = PAGE_SIZE; | ||
1710 | inode->i_blocks = (inode->i_size + 511) >> 9; | 1708 | inode->i_blocks = (inode->i_size + 511) >> 9; |
1711 | if (S_ISREG(inode->i_mode)) { | 1709 | if (S_ISREG(inode->i_mode)) { |
1712 | inode->i_op = &jffs_file_inode_operations; | 1710 | inode->i_op = &jffs_file_inode_operations; |