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/reiserfs/inode.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/reiserfs/inode.c')
-rw-r--r-- | fs/reiserfs/inode.c | 4 |
1 files changed, 0 insertions, 4 deletions
diff --git a/fs/reiserfs/inode.c b/fs/reiserfs/inode.c index 52f1e2136546..8810fda0da46 100644 --- a/fs/reiserfs/inode.c +++ b/fs/reiserfs/inode.c | |||
@@ -17,8 +17,6 @@ | |||
17 | #include <linux/writeback.h> | 17 | #include <linux/writeback.h> |
18 | #include <linux/quotaops.h> | 18 | #include <linux/quotaops.h> |
19 | 19 | ||
20 | extern int reiserfs_default_io_size; /* default io size devuned in super.c */ | ||
21 | |||
22 | static int reiserfs_commit_write(struct file *f, struct page *page, | 20 | static int reiserfs_commit_write(struct file *f, struct page *page, |
23 | unsigned from, unsigned to); | 21 | unsigned from, unsigned to); |
24 | static int reiserfs_prepare_write(struct file *f, struct page *page, | 22 | static int reiserfs_prepare_write(struct file *f, struct page *page, |
@@ -1122,7 +1120,6 @@ static void init_inode(struct inode *inode, struct path *path) | |||
1122 | ih = PATH_PITEM_HEAD(path); | 1120 | ih = PATH_PITEM_HEAD(path); |
1123 | 1121 | ||
1124 | copy_key(INODE_PKEY(inode), &(ih->ih_key)); | 1122 | copy_key(INODE_PKEY(inode), &(ih->ih_key)); |
1125 | inode->i_blksize = reiserfs_default_io_size; | ||
1126 | 1123 | ||
1127 | INIT_LIST_HEAD(&(REISERFS_I(inode)->i_prealloc_list)); | 1124 | INIT_LIST_HEAD(&(REISERFS_I(inode)->i_prealloc_list)); |
1128 | REISERFS_I(inode)->i_flags = 0; | 1125 | REISERFS_I(inode)->i_flags = 0; |
@@ -1877,7 +1874,6 @@ int reiserfs_new_inode(struct reiserfs_transaction_handle *th, | |||
1877 | } | 1874 | } |
1878 | // these do not go to on-disk stat data | 1875 | // these do not go to on-disk stat data |
1879 | inode->i_ino = le32_to_cpu(ih.ih_key.k_objectid); | 1876 | inode->i_ino = le32_to_cpu(ih.ih_key.k_objectid); |
1880 | inode->i_blksize = reiserfs_default_io_size; | ||
1881 | 1877 | ||
1882 | // store in in-core inode the key of stat data and version all | 1878 | // store in in-core inode the key of stat data and version all |
1883 | // object items will have (directory items will have old offset | 1879 | // object items will have (directory items will have old offset |