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 | |
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>
80 files changed, 21 insertions, 125 deletions
diff --git a/arch/powerpc/platforms/cell/spufs/inode.c b/arch/powerpc/platforms/cell/spufs/inode.c index b837f12a84ae..3950ddccb2c8 100644 --- a/arch/powerpc/platforms/cell/spufs/inode.c +++ b/arch/powerpc/platforms/cell/spufs/inode.c | |||
@@ -82,7 +82,6 @@ spufs_new_inode(struct super_block *sb, int mode) | |||
82 | inode->i_mode = mode; | 82 | inode->i_mode = mode; |
83 | inode->i_uid = current->fsuid; | 83 | inode->i_uid = current->fsuid; |
84 | inode->i_gid = current->fsgid; | 84 | inode->i_gid = current->fsgid; |
85 | inode->i_blksize = PAGE_CACHE_SIZE; | ||
86 | inode->i_blocks = 0; | 85 | inode->i_blocks = 0; |
87 | inode->i_atime = inode->i_mtime = inode->i_ctime = CURRENT_TIME; | 86 | inode->i_atime = inode->i_mtime = inode->i_ctime = CURRENT_TIME; |
88 | out: | 87 | out: |
diff --git a/arch/s390/hypfs/inode.c b/arch/s390/hypfs/inode.c index 8735024d235b..813fc21358f9 100644 --- a/arch/s390/hypfs/inode.c +++ b/arch/s390/hypfs/inode.c | |||
@@ -91,7 +91,6 @@ static struct inode *hypfs_make_inode(struct super_block *sb, int mode) | |||
91 | ret->i_mode = mode; | 91 | ret->i_mode = mode; |
92 | ret->i_uid = hypfs_info->uid; | 92 | ret->i_uid = hypfs_info->uid; |
93 | ret->i_gid = hypfs_info->gid; | 93 | ret->i_gid = hypfs_info->gid; |
94 | ret->i_blksize = PAGE_CACHE_SIZE; | ||
95 | ret->i_blocks = 0; | 94 | ret->i_blocks = 0; |
96 | ret->i_atime = ret->i_mtime = ret->i_ctime = CURRENT_TIME; | 95 | ret->i_atime = ret->i_mtime = ret->i_ctime = CURRENT_TIME; |
97 | if (mode & S_IFDIR) | 96 | if (mode & S_IFDIR) |
diff --git a/drivers/block/loop.c b/drivers/block/loop.c index 7b3b94ddddcc..c774121684d7 100644 --- a/drivers/block/loop.c +++ b/drivers/block/loop.c | |||
@@ -662,7 +662,8 @@ static void do_loop_switch(struct loop_device *lo, struct switch_request *p) | |||
662 | 662 | ||
663 | mapping_set_gfp_mask(old_file->f_mapping, lo->old_gfp_mask); | 663 | mapping_set_gfp_mask(old_file->f_mapping, lo->old_gfp_mask); |
664 | lo->lo_backing_file = file; | 664 | lo->lo_backing_file = file; |
665 | lo->lo_blocksize = mapping->host->i_blksize; | 665 | lo->lo_blocksize = S_ISBLK(mapping->host->i_mode) ? |
666 | mapping->host->i_bdev->bd_block_size : PAGE_SIZE; | ||
666 | lo->old_gfp_mask = mapping_gfp_mask(mapping); | 667 | lo->old_gfp_mask = mapping_gfp_mask(mapping); |
667 | mapping_set_gfp_mask(mapping, lo->old_gfp_mask & ~(__GFP_IO|__GFP_FS)); | 668 | mapping_set_gfp_mask(mapping, lo->old_gfp_mask & ~(__GFP_IO|__GFP_FS)); |
668 | complete(&p->wait); | 669 | complete(&p->wait); |
@@ -794,7 +795,9 @@ static int loop_set_fd(struct loop_device *lo, struct file *lo_file, | |||
794 | if (!(lo_flags & LO_FLAGS_USE_AOPS) && !file->f_op->write) | 795 | if (!(lo_flags & LO_FLAGS_USE_AOPS) && !file->f_op->write) |
795 | lo_flags |= LO_FLAGS_READ_ONLY; | 796 | lo_flags |= LO_FLAGS_READ_ONLY; |
796 | 797 | ||
797 | lo_blocksize = inode->i_blksize; | 798 | lo_blocksize = S_ISBLK(inode->i_mode) ? |
799 | inode->i_bdev->bd_block_size : PAGE_SIZE; | ||
800 | |||
798 | error = 0; | 801 | error = 0; |
799 | } else { | 802 | } else { |
800 | goto out_putf; | 803 | goto out_putf; |
diff --git a/drivers/infiniband/hw/ipath/ipath_fs.c b/drivers/infiniband/hw/ipath/ipath_fs.c index 055cdd089b28..c8a8af0fe471 100644 --- a/drivers/infiniband/hw/ipath/ipath_fs.c +++ b/drivers/infiniband/hw/ipath/ipath_fs.c | |||
@@ -61,7 +61,6 @@ static int ipathfs_mknod(struct inode *dir, struct dentry *dentry, | |||
61 | inode->i_mode = mode; | 61 | inode->i_mode = mode; |
62 | inode->i_uid = 0; | 62 | inode->i_uid = 0; |
63 | inode->i_gid = 0; | 63 | inode->i_gid = 0; |
64 | inode->i_blksize = PAGE_CACHE_SIZE; | ||
65 | inode->i_blocks = 0; | 64 | inode->i_blocks = 0; |
66 | inode->i_atime = inode->i_mtime = inode->i_ctime = CURRENT_TIME; | 65 | inode->i_atime = inode->i_mtime = inode->i_ctime = CURRENT_TIME; |
67 | inode->i_private = data; | 66 | inode->i_private = data; |
diff --git a/drivers/isdn/capi/capifs.c b/drivers/isdn/capi/capifs.c index 9ea6bd0ddc35..2dd1b57b0ba4 100644 --- a/drivers/isdn/capi/capifs.c +++ b/drivers/isdn/capi/capifs.c | |||
@@ -104,7 +104,6 @@ capifs_fill_super(struct super_block *s, void *data, int silent) | |||
104 | inode->i_ino = 1; | 104 | inode->i_ino = 1; |
105 | inode->i_mtime = inode->i_atime = inode->i_ctime = CURRENT_TIME; | 105 | inode->i_mtime = inode->i_atime = inode->i_ctime = CURRENT_TIME; |
106 | inode->i_blocks = 0; | 106 | inode->i_blocks = 0; |
107 | inode->i_blksize = 1024; | ||
108 | inode->i_uid = inode->i_gid = 0; | 107 | inode->i_uid = inode->i_gid = 0; |
109 | inode->i_mode = S_IFDIR | S_IRUGO | S_IXUGO | S_IWUSR; | 108 | inode->i_mode = S_IFDIR | S_IRUGO | S_IXUGO | S_IWUSR; |
110 | inode->i_op = &simple_dir_inode_operations; | 109 | inode->i_op = &simple_dir_inode_operations; |
@@ -149,7 +148,6 @@ void capifs_new_ncci(unsigned int number, dev_t device) | |||
149 | if (!inode) | 148 | if (!inode) |
150 | return; | 149 | return; |
151 | inode->i_ino = number+2; | 150 | inode->i_ino = number+2; |
152 | inode->i_blksize = 1024; | ||
153 | inode->i_uid = config.setuid ? config.uid : current->fsuid; | 151 | inode->i_uid = config.setuid ? config.uid : current->fsuid; |
154 | inode->i_gid = config.setgid ? config.gid : current->fsgid; | 152 | inode->i_gid = config.setgid ? config.gid : current->fsgid; |
155 | inode->i_mtime = inode->i_atime = inode->i_ctime = CURRENT_TIME; | 153 | inode->i_mtime = inode->i_atime = inode->i_ctime = CURRENT_TIME; |
diff --git a/drivers/misc/ibmasm/ibmasmfs.c b/drivers/misc/ibmasm/ibmasmfs.c index 0e909b617226..b99dc507de2e 100644 --- a/drivers/misc/ibmasm/ibmasmfs.c +++ b/drivers/misc/ibmasm/ibmasmfs.c | |||
@@ -147,7 +147,6 @@ static struct inode *ibmasmfs_make_inode(struct super_block *sb, int mode) | |||
147 | if (ret) { | 147 | if (ret) { |
148 | ret->i_mode = mode; | 148 | ret->i_mode = mode; |
149 | ret->i_uid = ret->i_gid = 0; | 149 | ret->i_uid = ret->i_gid = 0; |
150 | ret->i_blksize = PAGE_CACHE_SIZE; | ||
151 | ret->i_blocks = 0; | 150 | ret->i_blocks = 0; |
152 | ret->i_atime = ret->i_mtime = ret->i_ctime = CURRENT_TIME; | 151 | ret->i_atime = ret->i_mtime = ret->i_ctime = CURRENT_TIME; |
153 | } | 152 | } |
diff --git a/drivers/oprofile/oprofilefs.c b/drivers/oprofile/oprofilefs.c index deb37354785b..5756401fb15b 100644 --- a/drivers/oprofile/oprofilefs.c +++ b/drivers/oprofile/oprofilefs.c | |||
@@ -31,7 +31,6 @@ static struct inode * oprofilefs_get_inode(struct super_block * sb, int mode) | |||
31 | inode->i_mode = mode; | 31 | inode->i_mode = mode; |
32 | inode->i_uid = 0; | 32 | inode->i_uid = 0; |
33 | inode->i_gid = 0; | 33 | inode->i_gid = 0; |
34 | inode->i_blksize = PAGE_CACHE_SIZE; | ||
35 | inode->i_blocks = 0; | 34 | inode->i_blocks = 0; |
36 | inode->i_atime = inode->i_mtime = inode->i_ctime = CURRENT_TIME; | 35 | inode->i_atime = inode->i_mtime = inode->i_ctime = CURRENT_TIME; |
37 | } | 36 | } |
diff --git a/drivers/usb/core/inode.c b/drivers/usb/core/inode.c index 482f253085e5..58b4b1012120 100644 --- a/drivers/usb/core/inode.c +++ b/drivers/usb/core/inode.c | |||
@@ -249,7 +249,6 @@ static struct inode *usbfs_get_inode (struct super_block *sb, int mode, dev_t de | |||
249 | inode->i_mode = mode; | 249 | inode->i_mode = mode; |
250 | inode->i_uid = current->fsuid; | 250 | inode->i_uid = current->fsuid; |
251 | inode->i_gid = current->fsgid; | 251 | inode->i_gid = current->fsgid; |
252 | inode->i_blksize = PAGE_CACHE_SIZE; | ||
253 | inode->i_blocks = 0; | 252 | inode->i_blocks = 0; |
254 | inode->i_atime = inode->i_mtime = inode->i_ctime = CURRENT_TIME; | 253 | inode->i_atime = inode->i_mtime = inode->i_ctime = CURRENT_TIME; |
255 | switch (mode & S_IFMT) { | 254 | switch (mode & S_IFMT) { |
diff --git a/drivers/usb/gadget/inode.c b/drivers/usb/gadget/inode.c index ffaa8c1afad8..2a7162d89799 100644 --- a/drivers/usb/gadget/inode.c +++ b/drivers/usb/gadget/inode.c | |||
@@ -1966,7 +1966,6 @@ gadgetfs_make_inode (struct super_block *sb, | |||
1966 | inode->i_mode = mode; | 1966 | inode->i_mode = mode; |
1967 | inode->i_uid = default_uid; | 1967 | inode->i_uid = default_uid; |
1968 | inode->i_gid = default_gid; | 1968 | inode->i_gid = default_gid; |
1969 | inode->i_blksize = PAGE_CACHE_SIZE; | ||
1970 | inode->i_blocks = 0; | 1969 | inode->i_blocks = 0; |
1971 | inode->i_atime = inode->i_mtime = inode->i_ctime | 1970 | inode->i_atime = inode->i_mtime = inode->i_ctime |
1972 | = CURRENT_TIME; | 1971 | = CURRENT_TIME; |
diff --git a/fs/9p/vfs_inode.c b/fs/9p/vfs_inode.c index eae50c9d6dc4..7a7ec2d1d2f4 100644 --- a/fs/9p/vfs_inode.c +++ b/fs/9p/vfs_inode.c | |||
@@ -204,7 +204,6 @@ struct inode *v9fs_get_inode(struct super_block *sb, int mode) | |||
204 | inode->i_mode = mode; | 204 | inode->i_mode = mode; |
205 | inode->i_uid = current->fsuid; | 205 | inode->i_uid = current->fsuid; |
206 | inode->i_gid = current->fsgid; | 206 | inode->i_gid = current->fsgid; |
207 | inode->i_blksize = sb->s_blocksize; | ||
208 | inode->i_blocks = 0; | 207 | inode->i_blocks = 0; |
209 | inode->i_rdev = 0; | 208 | inode->i_rdev = 0; |
210 | inode->i_atime = inode->i_mtime = inode->i_ctime = CURRENT_TIME; | 209 | inode->i_atime = inode->i_mtime = inode->i_ctime = CURRENT_TIME; |
@@ -950,9 +949,8 @@ v9fs_stat2inode(struct v9fs_stat *stat, struct inode *inode, | |||
950 | 949 | ||
951 | inode->i_size = stat->length; | 950 | inode->i_size = stat->length; |
952 | 951 | ||
953 | inode->i_blksize = sb->s_blocksize; | ||
954 | inode->i_blocks = | 952 | inode->i_blocks = |
955 | (inode->i_size + inode->i_blksize - 1) >> sb->s_blocksize_bits; | 953 | (inode->i_size + sb->s_blocksize - 1) >> sb->s_blocksize_bits; |
956 | } | 954 | } |
957 | 955 | ||
958 | /** | 956 | /** |
diff --git a/fs/adfs/inode.c b/fs/adfs/inode.c index 534f3eecc985..7e7a04be1278 100644 --- a/fs/adfs/inode.c +++ b/fs/adfs/inode.c | |||
@@ -269,7 +269,6 @@ adfs_iget(struct super_block *sb, struct object_info *obj) | |||
269 | inode->i_ino = obj->file_id; | 269 | inode->i_ino = obj->file_id; |
270 | inode->i_size = obj->size; | 270 | inode->i_size = obj->size; |
271 | inode->i_nlink = 2; | 271 | inode->i_nlink = 2; |
272 | inode->i_blksize = PAGE_SIZE; | ||
273 | inode->i_blocks = (inode->i_size + sb->s_blocksize - 1) >> | 272 | inode->i_blocks = (inode->i_size + sb->s_blocksize - 1) >> |
274 | sb->s_blocksize_bits; | 273 | sb->s_blocksize_bits; |
275 | 274 | ||
diff --git a/fs/afs/inode.c b/fs/afs/inode.c index 4ebb30a50ed5..6f37754906c2 100644 --- a/fs/afs/inode.c +++ b/fs/afs/inode.c | |||
@@ -72,7 +72,6 @@ static int afs_inode_map_status(struct afs_vnode *vnode) | |||
72 | inode->i_ctime.tv_sec = vnode->status.mtime_server; | 72 | inode->i_ctime.tv_sec = vnode->status.mtime_server; |
73 | inode->i_ctime.tv_nsec = 0; | 73 | inode->i_ctime.tv_nsec = 0; |
74 | inode->i_atime = inode->i_mtime = inode->i_ctime; | 74 | inode->i_atime = inode->i_mtime = inode->i_ctime; |
75 | inode->i_blksize = PAGE_CACHE_SIZE; | ||
76 | inode->i_blocks = 0; | 75 | inode->i_blocks = 0; |
77 | inode->i_version = vnode->fid.unique; | 76 | inode->i_version = vnode->fid.unique; |
78 | inode->i_mapping->a_ops = &afs_fs_aops; | 77 | inode->i_mapping->a_ops = &afs_fs_aops; |
diff --git a/fs/autofs/inode.c b/fs/autofs/inode.c index d39d2acd9b38..2c9759baad61 100644 --- a/fs/autofs/inode.c +++ b/fs/autofs/inode.c | |||
@@ -216,7 +216,6 @@ static void autofs_read_inode(struct inode *inode) | |||
216 | inode->i_nlink = 2; | 216 | inode->i_nlink = 2; |
217 | inode->i_mtime = inode->i_atime = inode->i_ctime = CURRENT_TIME; | 217 | inode->i_mtime = inode->i_atime = inode->i_ctime = CURRENT_TIME; |
218 | inode->i_blocks = 0; | 218 | inode->i_blocks = 0; |
219 | inode->i_blksize = 1024; | ||
220 | 219 | ||
221 | if ( ino == AUTOFS_ROOT_INO ) { | 220 | if ( ino == AUTOFS_ROOT_INO ) { |
222 | inode->i_mode = S_IFDIR | S_IRUGO | S_IXUGO | S_IWUSR; | 221 | inode->i_mode = S_IFDIR | S_IRUGO | S_IXUGO | S_IWUSR; |
diff --git a/fs/autofs4/inode.c b/fs/autofs4/inode.c index 11a6a9ae51b7..800ce876caec 100644 --- a/fs/autofs4/inode.c +++ b/fs/autofs4/inode.c | |||
@@ -447,7 +447,6 @@ struct inode *autofs4_get_inode(struct super_block *sb, | |||
447 | inode->i_uid = 0; | 447 | inode->i_uid = 0; |
448 | inode->i_gid = 0; | 448 | inode->i_gid = 0; |
449 | } | 449 | } |
450 | inode->i_blksize = PAGE_CACHE_SIZE; | ||
451 | inode->i_blocks = 0; | 450 | inode->i_blocks = 0; |
452 | inode->i_atime = inode->i_mtime = inode->i_ctime = CURRENT_TIME; | 451 | inode->i_atime = inode->i_mtime = inode->i_ctime = CURRENT_TIME; |
453 | 452 | ||
diff --git a/fs/befs/linuxvfs.c b/fs/befs/linuxvfs.c index f6676fbe9484..57020c7a7e65 100644 --- a/fs/befs/linuxvfs.c +++ b/fs/befs/linuxvfs.c | |||
@@ -365,7 +365,6 @@ befs_read_inode(struct inode *inode) | |||
365 | inode->i_mtime.tv_nsec = 0; /* lower 16 bits are not a time */ | 365 | inode->i_mtime.tv_nsec = 0; /* lower 16 bits are not a time */ |
366 | inode->i_ctime = inode->i_mtime; | 366 | inode->i_ctime = inode->i_mtime; |
367 | inode->i_atime = inode->i_mtime; | 367 | inode->i_atime = inode->i_mtime; |
368 | inode->i_blksize = befs_sb->block_size; | ||
369 | 368 | ||
370 | befs_ino->i_inode_num = fsrun_to_cpu(sb, raw_inode->inode_num); | 369 | befs_ino->i_inode_num = fsrun_to_cpu(sb, raw_inode->inode_num); |
371 | befs_ino->i_parent = fsrun_to_cpu(sb, raw_inode->parent); | 370 | befs_ino->i_parent = fsrun_to_cpu(sb, raw_inode->parent); |
diff --git a/fs/bfs/dir.c b/fs/bfs/dir.c index 26fad9621738..dcf04cb13283 100644 --- a/fs/bfs/dir.c +++ b/fs/bfs/dir.c | |||
@@ -102,7 +102,7 @@ static int bfs_create(struct inode * dir, struct dentry * dentry, int mode, | |||
102 | inode->i_uid = current->fsuid; | 102 | inode->i_uid = current->fsuid; |
103 | inode->i_gid = (dir->i_mode & S_ISGID) ? dir->i_gid : current->fsgid; | 103 | inode->i_gid = (dir->i_mode & S_ISGID) ? dir->i_gid : current->fsgid; |
104 | inode->i_mtime = inode->i_atime = inode->i_ctime = CURRENT_TIME_SEC; | 104 | inode->i_mtime = inode->i_atime = inode->i_ctime = CURRENT_TIME_SEC; |
105 | inode->i_blocks = inode->i_blksize = 0; | 105 | inode->i_blocks = 0; |
106 | inode->i_op = &bfs_file_inops; | 106 | inode->i_op = &bfs_file_inops; |
107 | inode->i_fop = &bfs_file_operations; | 107 | inode->i_fop = &bfs_file_operations; |
108 | inode->i_mapping->a_ops = &bfs_aops; | 108 | inode->i_mapping->a_ops = &bfs_aops; |
diff --git a/fs/bfs/inode.c b/fs/bfs/inode.c index 8fc2e8e49dbe..ed27ffb3459e 100644 --- a/fs/bfs/inode.c +++ b/fs/bfs/inode.c | |||
@@ -76,7 +76,6 @@ static void bfs_read_inode(struct inode * inode) | |||
76 | inode->i_size = BFS_FILESIZE(di); | 76 | inode->i_size = BFS_FILESIZE(di); |
77 | inode->i_blocks = BFS_FILEBLOCKS(di); | 77 | inode->i_blocks = BFS_FILEBLOCKS(di); |
78 | if (inode->i_size || inode->i_blocks) dprintf("Registered inode with %lld size, %ld blocks\n", inode->i_size, inode->i_blocks); | 78 | if (inode->i_size || inode->i_blocks) dprintf("Registered inode with %lld size, %ld blocks\n", inode->i_size, inode->i_blocks); |
79 | inode->i_blksize = PAGE_SIZE; | ||
80 | inode->i_atime.tv_sec = le32_to_cpu(di->i_atime); | 79 | inode->i_atime.tv_sec = le32_to_cpu(di->i_atime); |
81 | inode->i_mtime.tv_sec = le32_to_cpu(di->i_mtime); | 80 | inode->i_mtime.tv_sec = le32_to_cpu(di->i_mtime); |
82 | inode->i_ctime.tv_sec = le32_to_cpu(di->i_ctime); | 81 | inode->i_ctime.tv_sec = le32_to_cpu(di->i_ctime); |
diff --git a/fs/binfmt_misc.c b/fs/binfmt_misc.c index 6759b9839ce8..66ba137f8661 100644 --- a/fs/binfmt_misc.c +++ b/fs/binfmt_misc.c | |||
@@ -507,7 +507,6 @@ static struct inode *bm_get_inode(struct super_block *sb, int mode) | |||
507 | inode->i_mode = mode; | 507 | inode->i_mode = mode; |
508 | inode->i_uid = 0; | 508 | inode->i_uid = 0; |
509 | inode->i_gid = 0; | 509 | inode->i_gid = 0; |
510 | inode->i_blksize = PAGE_CACHE_SIZE; | ||
511 | inode->i_blocks = 0; | 510 | inode->i_blocks = 0; |
512 | inode->i_atime = inode->i_mtime = inode->i_ctime = | 511 | inode->i_atime = inode->i_mtime = inode->i_ctime = |
513 | current_fs_time(inode->i_sb); | 512 | current_fs_time(inode->i_sb); |
diff --git a/fs/cifs/cifsfs.c b/fs/cifs/cifsfs.c index 4197a5043f13..22bcf4d7e7ae 100644 --- a/fs/cifs/cifsfs.c +++ b/fs/cifs/cifsfs.c | |||
@@ -253,7 +253,6 @@ cifs_alloc_inode(struct super_block *sb) | |||
253 | file data or metadata */ | 253 | file data or metadata */ |
254 | cifs_inode->clientCanCacheRead = FALSE; | 254 | cifs_inode->clientCanCacheRead = FALSE; |
255 | cifs_inode->clientCanCacheAll = FALSE; | 255 | cifs_inode->clientCanCacheAll = FALSE; |
256 | cifs_inode->vfs_inode.i_blksize = CIFS_MAX_MSGSIZE; | ||
257 | cifs_inode->vfs_inode.i_blkbits = 14; /* 2**14 = CIFS_MAX_MSGSIZE */ | 256 | cifs_inode->vfs_inode.i_blkbits = 14; /* 2**14 = CIFS_MAX_MSGSIZE */ |
258 | cifs_inode->vfs_inode.i_flags = S_NOATIME | S_NOCMTIME; | 257 | cifs_inode->vfs_inode.i_flags = S_NOATIME | S_NOCMTIME; |
259 | INIT_LIST_HEAD(&cifs_inode->openFileList); | 258 | INIT_LIST_HEAD(&cifs_inode->openFileList); |
diff --git a/fs/cifs/readdir.c b/fs/cifs/readdir.c index 9aeb58a7d369..b27b34537bf2 100644 --- a/fs/cifs/readdir.c +++ b/fs/cifs/readdir.c | |||
@@ -216,10 +216,9 @@ static void fill_in_inode(struct inode *tmp_inode, int new_buf_type, | |||
216 | 216 | ||
217 | if (allocation_size < end_of_file) | 217 | if (allocation_size < end_of_file) |
218 | cFYI(1, ("May be sparse file, allocation less than file size")); | 218 | cFYI(1, ("May be sparse file, allocation less than file size")); |
219 | cFYI(1, ("File Size %ld and blocks %llu and blocksize %ld", | 219 | cFYI(1, ("File Size %ld and blocks %llu", |
220 | (unsigned long)tmp_inode->i_size, | 220 | (unsigned long)tmp_inode->i_size, |
221 | (unsigned long long)tmp_inode->i_blocks, | 221 | (unsigned long long)tmp_inode->i_blocks)); |
222 | tmp_inode->i_blksize)); | ||
223 | if (S_ISREG(tmp_inode->i_mode)) { | 222 | if (S_ISREG(tmp_inode->i_mode)) { |
224 | cFYI(1, ("File inode")); | 223 | cFYI(1, ("File inode")); |
225 | tmp_inode->i_op = &cifs_file_inode_ops; | 224 | tmp_inode->i_op = &cifs_file_inode_ops; |
diff --git a/fs/coda/coda_linux.c b/fs/coda/coda_linux.c index 5597080cb811..95a54253c047 100644 --- a/fs/coda/coda_linux.c +++ b/fs/coda/coda_linux.c | |||
@@ -110,8 +110,6 @@ void coda_vattr_to_iattr(struct inode *inode, struct coda_vattr *attr) | |||
110 | inode->i_nlink = attr->va_nlink; | 110 | inode->i_nlink = attr->va_nlink; |
111 | if (attr->va_size != -1) | 111 | if (attr->va_size != -1) |
112 | inode->i_size = attr->va_size; | 112 | inode->i_size = attr->va_size; |
113 | if (attr->va_blocksize != -1) | ||
114 | inode->i_blksize = attr->va_blocksize; | ||
115 | if (attr->va_size != -1) | 113 | if (attr->va_size != -1) |
116 | inode->i_blocks = (attr->va_size + 511) >> 9; | 114 | inode->i_blocks = (attr->va_size + 511) >> 9; |
117 | if (attr->va_atime.tv_sec != -1) | 115 | if (attr->va_atime.tv_sec != -1) |
diff --git a/fs/configfs/inode.c b/fs/configfs/inode.c index 5047e6a7581e..fb18917954a9 100644 --- a/fs/configfs/inode.c +++ b/fs/configfs/inode.c | |||
@@ -135,7 +135,6 @@ struct inode * configfs_new_inode(mode_t mode, struct configfs_dirent * sd) | |||
135 | { | 135 | { |
136 | struct inode * inode = new_inode(configfs_sb); | 136 | struct inode * inode = new_inode(configfs_sb); |
137 | if (inode) { | 137 | if (inode) { |
138 | inode->i_blksize = PAGE_CACHE_SIZE; | ||
139 | inode->i_blocks = 0; | 138 | inode->i_blocks = 0; |
140 | inode->i_mapping->a_ops = &configfs_aops; | 139 | inode->i_mapping->a_ops = &configfs_aops; |
141 | inode->i_mapping->backing_dev_info = &configfs_backing_dev_info; | 140 | inode->i_mapping->backing_dev_info = &configfs_backing_dev_info; |
diff --git a/fs/cramfs/inode.c b/fs/cramfs/inode.c index d09b6777c41a..ad96b6990715 100644 --- a/fs/cramfs/inode.c +++ b/fs/cramfs/inode.c | |||
@@ -73,7 +73,6 @@ static int cramfs_iget5_set(struct inode *inode, void *opaque) | |||
73 | inode->i_uid = cramfs_inode->uid; | 73 | inode->i_uid = cramfs_inode->uid; |
74 | inode->i_size = cramfs_inode->size; | 74 | inode->i_size = cramfs_inode->size; |
75 | inode->i_blocks = (cramfs_inode->size - 1) / 512 + 1; | 75 | inode->i_blocks = (cramfs_inode->size - 1) / 512 + 1; |
76 | inode->i_blksize = PAGE_CACHE_SIZE; | ||
77 | inode->i_gid = cramfs_inode->gid; | 76 | inode->i_gid = cramfs_inode->gid; |
78 | /* Struct copy intentional */ | 77 | /* Struct copy intentional */ |
79 | inode->i_mtime = inode->i_atime = inode->i_ctime = zerotime; | 78 | inode->i_mtime = inode->i_atime = inode->i_ctime = zerotime; |
diff --git a/fs/debugfs/inode.c b/fs/debugfs/inode.c index 717f4821ed02..269e649e6dc6 100644 --- a/fs/debugfs/inode.c +++ b/fs/debugfs/inode.c | |||
@@ -40,7 +40,6 @@ static struct inode *debugfs_get_inode(struct super_block *sb, int mode, dev_t d | |||
40 | inode->i_mode = mode; | 40 | inode->i_mode = mode; |
41 | inode->i_uid = 0; | 41 | inode->i_uid = 0; |
42 | inode->i_gid = 0; | 42 | inode->i_gid = 0; |
43 | inode->i_blksize = PAGE_CACHE_SIZE; | ||
44 | inode->i_blocks = 0; | 43 | inode->i_blocks = 0; |
45 | inode->i_atime = inode->i_mtime = inode->i_ctime = CURRENT_TIME; | 44 | inode->i_atime = inode->i_mtime = inode->i_ctime = CURRENT_TIME; |
46 | switch (mode & S_IFMT) { | 45 | switch (mode & S_IFMT) { |
diff --git a/fs/devpts/inode.c b/fs/devpts/inode.c index 5bf06a10dddf..5f7b5a6025bf 100644 --- a/fs/devpts/inode.c +++ b/fs/devpts/inode.c | |||
@@ -113,7 +113,6 @@ devpts_fill_super(struct super_block *s, void *data, int silent) | |||
113 | inode->i_ino = 1; | 113 | inode->i_ino = 1; |
114 | inode->i_mtime = inode->i_atime = inode->i_ctime = CURRENT_TIME; | 114 | inode->i_mtime = inode->i_atime = inode->i_ctime = CURRENT_TIME; |
115 | inode->i_blocks = 0; | 115 | inode->i_blocks = 0; |
116 | inode->i_blksize = 1024; | ||
117 | inode->i_uid = inode->i_gid = 0; | 116 | inode->i_uid = inode->i_gid = 0; |
118 | inode->i_mode = S_IFDIR | S_IRUGO | S_IXUGO | S_IWUSR; | 117 | inode->i_mode = S_IFDIR | S_IRUGO | S_IXUGO | S_IWUSR; |
119 | inode->i_op = &simple_dir_inode_operations; | 118 | inode->i_op = &simple_dir_inode_operations; |
@@ -172,7 +171,6 @@ int devpts_pty_new(struct tty_struct *tty) | |||
172 | return -ENOMEM; | 171 | return -ENOMEM; |
173 | 172 | ||
174 | inode->i_ino = number+2; | 173 | inode->i_ino = number+2; |
175 | inode->i_blksize = 1024; | ||
176 | inode->i_uid = config.setuid ? config.uid : current->fsuid; | 174 | inode->i_uid = config.setuid ? config.uid : current->fsuid; |
177 | inode->i_gid = config.setgid ? config.gid : current->fsgid; | 175 | inode->i_gid = config.setgid ? config.gid : current->fsgid; |
178 | inode->i_mtime = inode->i_atime = inode->i_ctime = CURRENT_TIME; | 176 | inode->i_mtime = inode->i_atime = inode->i_ctime = CURRENT_TIME; |
diff --git a/fs/eventpoll.c b/fs/eventpoll.c index 3a3567433b92..8d544334bcd2 100644 --- a/fs/eventpoll.c +++ b/fs/eventpoll.c | |||
@@ -1590,7 +1590,6 @@ static struct inode *ep_eventpoll_inode(void) | |||
1590 | inode->i_uid = current->fsuid; | 1590 | inode->i_uid = current->fsuid; |
1591 | inode->i_gid = current->fsgid; | 1591 | inode->i_gid = current->fsgid; |
1592 | inode->i_atime = inode->i_mtime = inode->i_ctime = CURRENT_TIME; | 1592 | inode->i_atime = inode->i_mtime = inode->i_ctime = CURRENT_TIME; |
1593 | inode->i_blksize = PAGE_SIZE; | ||
1594 | return inode; | 1593 | return inode; |
1595 | 1594 | ||
1596 | eexit_1: | 1595 | eexit_1: |
diff --git a/fs/ext2/ialloc.c b/fs/ext2/ialloc.c index 695f69ccf908..2cb545bf0f3c 100644 --- a/fs/ext2/ialloc.c +++ b/fs/ext2/ialloc.c | |||
@@ -574,7 +574,6 @@ got: | |||
574 | inode->i_mode = mode; | 574 | inode->i_mode = mode; |
575 | 575 | ||
576 | inode->i_ino = ino; | 576 | inode->i_ino = ino; |
577 | inode->i_blksize = PAGE_SIZE; /* This is the optimal IO size (for stat), not the fs block size */ | ||
578 | inode->i_blocks = 0; | 577 | inode->i_blocks = 0; |
579 | inode->i_mtime = inode->i_atime = inode->i_ctime = CURRENT_TIME_SEC; | 578 | inode->i_mtime = inode->i_atime = inode->i_ctime = CURRENT_TIME_SEC; |
580 | memset(ei->i_data, 0, sizeof(ei->i_data)); | 579 | memset(ei->i_data, 0, sizeof(ei->i_data)); |
diff --git a/fs/ext2/inode.c b/fs/ext2/inode.c index fb4d3220eb8d..dd4e14c221e0 100644 --- a/fs/ext2/inode.c +++ b/fs/ext2/inode.c | |||
@@ -1094,7 +1094,6 @@ void ext2_read_inode (struct inode * inode) | |||
1094 | brelse (bh); | 1094 | brelse (bh); |
1095 | goto bad_inode; | 1095 | goto bad_inode; |
1096 | } | 1096 | } |
1097 | inode->i_blksize = PAGE_SIZE; /* This is the optimal IO size (for stat), not the fs block size */ | ||
1098 | inode->i_blocks = le32_to_cpu(raw_inode->i_blocks); | 1097 | inode->i_blocks = le32_to_cpu(raw_inode->i_blocks); |
1099 | ei->i_flags = le32_to_cpu(raw_inode->i_flags); | 1098 | ei->i_flags = le32_to_cpu(raw_inode->i_flags); |
1100 | ei->i_faddr = le32_to_cpu(raw_inode->i_faddr); | 1099 | ei->i_faddr = le32_to_cpu(raw_inode->i_faddr); |
diff --git a/fs/ext3/ialloc.c b/fs/ext3/ialloc.c index 1e4ded8aa3cd..e45dbd651736 100644 --- a/fs/ext3/ialloc.c +++ b/fs/ext3/ialloc.c | |||
@@ -559,7 +559,6 @@ got: | |||
559 | 559 | ||
560 | inode->i_ino = ino; | 560 | inode->i_ino = ino; |
561 | /* This is the optimal IO size (for stat), not the fs block size */ | 561 | /* This is the optimal IO size (for stat), not the fs block size */ |
562 | inode->i_blksize = PAGE_SIZE; | ||
563 | inode->i_blocks = 0; | 562 | inode->i_blocks = 0; |
564 | inode->i_mtime = inode->i_atime = inode->i_ctime = CURRENT_TIME_SEC; | 563 | inode->i_mtime = inode->i_atime = inode->i_ctime = CURRENT_TIME_SEC; |
565 | 564 | ||
diff --git a/fs/ext3/inode.c b/fs/ext3/inode.c index c9fc15f8b609..dcf4f1dd108b 100644 --- a/fs/ext3/inode.c +++ b/fs/ext3/inode.c | |||
@@ -2632,9 +2632,6 @@ void ext3_read_inode(struct inode * inode) | |||
2632 | * recovery code: that's fine, we're about to complete | 2632 | * recovery code: that's fine, we're about to complete |
2633 | * the process of deleting those. */ | 2633 | * the process of deleting those. */ |
2634 | } | 2634 | } |
2635 | inode->i_blksize = PAGE_SIZE; /* This is the optimal IO size | ||
2636 | * (for stat), not the fs block | ||
2637 | * size */ | ||
2638 | inode->i_blocks = le32_to_cpu(raw_inode->i_blocks); | 2635 | inode->i_blocks = le32_to_cpu(raw_inode->i_blocks); |
2639 | ei->i_flags = le32_to_cpu(raw_inode->i_flags); | 2636 | ei->i_flags = le32_to_cpu(raw_inode->i_flags); |
2640 | #ifdef EXT3_FRAGMENTS | 2637 | #ifdef EXT3_FRAGMENTS |
diff --git a/fs/fat/inode.c b/fs/fat/inode.c index e1035a590664..ab96ae823753 100644 --- a/fs/fat/inode.c +++ b/fs/fat/inode.c | |||
@@ -370,8 +370,6 @@ static int fat_fill_inode(struct inode *inode, struct msdos_dir_entry *de) | |||
370 | inode->i_flags |= S_IMMUTABLE; | 370 | inode->i_flags |= S_IMMUTABLE; |
371 | } | 371 | } |
372 | MSDOS_I(inode)->i_attrs = de->attr & ATTR_UNUSED; | 372 | MSDOS_I(inode)->i_attrs = de->attr & ATTR_UNUSED; |
373 | /* this is as close to the truth as we can get ... */ | ||
374 | inode->i_blksize = sbi->cluster_size; | ||
375 | inode->i_blocks = ((inode->i_size + (sbi->cluster_size - 1)) | 373 | inode->i_blocks = ((inode->i_size + (sbi->cluster_size - 1)) |
376 | & ~((loff_t)sbi->cluster_size - 1)) >> 9; | 374 | & ~((loff_t)sbi->cluster_size - 1)) >> 9; |
377 | inode->i_mtime.tv_sec = | 375 | inode->i_mtime.tv_sec = |
@@ -1131,7 +1129,6 @@ static int fat_read_root(struct inode *inode) | |||
1131 | MSDOS_I(inode)->i_start = 0; | 1129 | MSDOS_I(inode)->i_start = 0; |
1132 | inode->i_size = sbi->dir_entries * sizeof(struct msdos_dir_entry); | 1130 | inode->i_size = sbi->dir_entries * sizeof(struct msdos_dir_entry); |
1133 | } | 1131 | } |
1134 | inode->i_blksize = sbi->cluster_size; | ||
1135 | inode->i_blocks = ((inode->i_size + (sbi->cluster_size - 1)) | 1132 | inode->i_blocks = ((inode->i_size + (sbi->cluster_size - 1)) |
1136 | & ~((loff_t)sbi->cluster_size - 1)) >> 9; | 1133 | & ~((loff_t)sbi->cluster_size - 1)) >> 9; |
1137 | MSDOS_I(inode)->i_logstart = 0; | 1134 | MSDOS_I(inode)->i_logstart = 0; |
diff --git a/fs/freevxfs/vxfs_inode.c b/fs/freevxfs/vxfs_inode.c index 32a82ed108e4..4786d51ad3bd 100644 --- a/fs/freevxfs/vxfs_inode.c +++ b/fs/freevxfs/vxfs_inode.c | |||
@@ -239,7 +239,6 @@ vxfs_iinit(struct inode *ip, struct vxfs_inode_info *vip) | |||
239 | ip->i_ctime.tv_nsec = 0; | 239 | ip->i_ctime.tv_nsec = 0; |
240 | ip->i_mtime.tv_nsec = 0; | 240 | ip->i_mtime.tv_nsec = 0; |
241 | 241 | ||
242 | ip->i_blksize = PAGE_SIZE; | ||
243 | ip->i_blocks = vip->vii_blocks; | 242 | ip->i_blocks = vip->vii_blocks; |
244 | ip->i_generation = vip->vii_gen; | 243 | ip->i_generation = vip->vii_gen; |
245 | 244 | ||
diff --git a/fs/fuse/inode.c b/fs/fuse/inode.c index 7d25092262ae..cb7cadb0b790 100644 --- a/fs/fuse/inode.c +++ b/fs/fuse/inode.c | |||
@@ -118,7 +118,6 @@ void fuse_change_attributes(struct inode *inode, struct fuse_attr *attr) | |||
118 | inode->i_uid = attr->uid; | 118 | inode->i_uid = attr->uid; |
119 | inode->i_gid = attr->gid; | 119 | inode->i_gid = attr->gid; |
120 | i_size_write(inode, attr->size); | 120 | i_size_write(inode, attr->size); |
121 | inode->i_blksize = PAGE_CACHE_SIZE; | ||
122 | inode->i_blocks = attr->blocks; | 121 | inode->i_blocks = attr->blocks; |
123 | inode->i_atime.tv_sec = attr->atime; | 122 | inode->i_atime.tv_sec = attr->atime; |
124 | inode->i_atime.tv_nsec = attr->atimensec; | 123 | inode->i_atime.tv_nsec = attr->atimensec; |
diff --git a/fs/hfs/inode.c b/fs/hfs/inode.c index 315cf44a90b2..d05641c35fc9 100644 --- a/fs/hfs/inode.c +++ b/fs/hfs/inode.c | |||
@@ -154,7 +154,6 @@ struct inode *hfs_new_inode(struct inode *dir, struct qstr *name, int mode) | |||
154 | inode->i_gid = current->fsgid; | 154 | inode->i_gid = current->fsgid; |
155 | inode->i_nlink = 1; | 155 | inode->i_nlink = 1; |
156 | inode->i_mtime = inode->i_atime = inode->i_ctime = CURRENT_TIME_SEC; | 156 | inode->i_mtime = inode->i_atime = inode->i_ctime = CURRENT_TIME_SEC; |
157 | inode->i_blksize = HFS_SB(sb)->alloc_blksz; | ||
158 | HFS_I(inode)->flags = 0; | 157 | HFS_I(inode)->flags = 0; |
159 | HFS_I(inode)->rsrc_inode = NULL; | 158 | HFS_I(inode)->rsrc_inode = NULL; |
160 | HFS_I(inode)->fs_blocks = 0; | 159 | HFS_I(inode)->fs_blocks = 0; |
@@ -284,7 +283,6 @@ static int hfs_read_inode(struct inode *inode, void *data) | |||
284 | inode->i_uid = hsb->s_uid; | 283 | inode->i_uid = hsb->s_uid; |
285 | inode->i_gid = hsb->s_gid; | 284 | inode->i_gid = hsb->s_gid; |
286 | inode->i_nlink = 1; | 285 | inode->i_nlink = 1; |
287 | inode->i_blksize = HFS_SB(inode->i_sb)->alloc_blksz; | ||
288 | 286 | ||
289 | if (idata->key) | 287 | if (idata->key) |
290 | HFS_I(inode)->cat_key = *idata->key; | 288 | HFS_I(inode)->cat_key = *idata->key; |
diff --git a/fs/hfsplus/inode.c b/fs/hfsplus/inode.c index 924ecdef8091..0eb1a6092668 100644 --- a/fs/hfsplus/inode.c +++ b/fs/hfsplus/inode.c | |||
@@ -304,7 +304,6 @@ struct inode *hfsplus_new_inode(struct super_block *sb, int mode) | |||
304 | inode->i_gid = current->fsgid; | 304 | inode->i_gid = current->fsgid; |
305 | inode->i_nlink = 1; | 305 | inode->i_nlink = 1; |
306 | inode->i_mtime = inode->i_atime = inode->i_ctime = CURRENT_TIME_SEC; | 306 | inode->i_mtime = inode->i_atime = inode->i_ctime = CURRENT_TIME_SEC; |
307 | inode->i_blksize = HFSPLUS_SB(sb).alloc_blksz; | ||
308 | INIT_LIST_HEAD(&HFSPLUS_I(inode).open_dir_list); | 307 | INIT_LIST_HEAD(&HFSPLUS_I(inode).open_dir_list); |
309 | init_MUTEX(&HFSPLUS_I(inode).extents_lock); | 308 | init_MUTEX(&HFSPLUS_I(inode).extents_lock); |
310 | atomic_set(&HFSPLUS_I(inode).opencnt, 0); | 309 | atomic_set(&HFSPLUS_I(inode).opencnt, 0); |
@@ -407,7 +406,6 @@ int hfsplus_cat_read_inode(struct inode *inode, struct hfs_find_data *fd) | |||
407 | type = hfs_bnode_read_u16(fd->bnode, fd->entryoffset); | 406 | type = hfs_bnode_read_u16(fd->bnode, fd->entryoffset); |
408 | 407 | ||
409 | HFSPLUS_I(inode).dev = 0; | 408 | HFSPLUS_I(inode).dev = 0; |
410 | inode->i_blksize = HFSPLUS_SB(inode->i_sb).alloc_blksz; | ||
411 | if (type == HFSPLUS_FOLDER) { | 409 | if (type == HFSPLUS_FOLDER) { |
412 | struct hfsplus_cat_folder *folder = &entry.folder; | 410 | struct hfsplus_cat_folder *folder = &entry.folder; |
413 | 411 | ||
diff --git a/fs/hostfs/hostfs_kern.c b/fs/hostfs/hostfs_kern.c index b82e3d9c8790..322e876c35ed 100644 --- a/fs/hostfs/hostfs_kern.c +++ b/fs/hostfs/hostfs_kern.c | |||
@@ -156,7 +156,6 @@ static int read_name(struct inode *ino, char *name) | |||
156 | ino->i_mode = i_mode; | 156 | ino->i_mode = i_mode; |
157 | ino->i_nlink = i_nlink; | 157 | ino->i_nlink = i_nlink; |
158 | ino->i_size = i_size; | 158 | ino->i_size = i_size; |
159 | ino->i_blksize = i_blksize; | ||
160 | ino->i_blocks = i_blocks; | 159 | ino->i_blocks = i_blocks; |
161 | return(0); | 160 | return(0); |
162 | } | 161 | } |
diff --git a/fs/hpfs/inode.c b/fs/hpfs/inode.c index 56f2c338c4d9..bcf6ee36e065 100644 --- a/fs/hpfs/inode.c +++ b/fs/hpfs/inode.c | |||
@@ -17,7 +17,6 @@ void hpfs_init_inode(struct inode *i) | |||
17 | i->i_gid = hpfs_sb(sb)->sb_gid; | 17 | i->i_gid = hpfs_sb(sb)->sb_gid; |
18 | i->i_mode = hpfs_sb(sb)->sb_mode; | 18 | i->i_mode = hpfs_sb(sb)->sb_mode; |
19 | hpfs_inode->i_conv = hpfs_sb(sb)->sb_conv; | 19 | hpfs_inode->i_conv = hpfs_sb(sb)->sb_conv; |
20 | i->i_blksize = 512; | ||
21 | i->i_size = -1; | 20 | i->i_size = -1; |
22 | i->i_blocks = -1; | 21 | i->i_blocks = -1; |
23 | 22 | ||
diff --git a/fs/hppfs/hppfs_kern.c b/fs/hppfs/hppfs_kern.c index 3a9bdf58166f..dcb6d2e988b8 100644 --- a/fs/hppfs/hppfs_kern.c +++ b/fs/hppfs/hppfs_kern.c | |||
@@ -152,7 +152,6 @@ static void hppfs_read_inode(struct inode *ino) | |||
152 | ino->i_mode = proc_ino->i_mode; | 152 | ino->i_mode = proc_ino->i_mode; |
153 | ino->i_nlink = proc_ino->i_nlink; | 153 | ino->i_nlink = proc_ino->i_nlink; |
154 | ino->i_size = proc_ino->i_size; | 154 | ino->i_size = proc_ino->i_size; |
155 | ino->i_blksize = proc_ino->i_blksize; | ||
156 | ino->i_blocks = proc_ino->i_blocks; | 155 | ino->i_blocks = proc_ino->i_blocks; |
157 | } | 156 | } |
158 | 157 | ||
diff --git a/fs/hugetlbfs/inode.c b/fs/hugetlbfs/inode.c index c3920c96dadf..e025a31b4c64 100644 --- a/fs/hugetlbfs/inode.c +++ b/fs/hugetlbfs/inode.c | |||
@@ -357,7 +357,6 @@ static struct inode *hugetlbfs_get_inode(struct super_block *sb, uid_t uid, | |||
357 | inode->i_mode = mode; | 357 | inode->i_mode = mode; |
358 | inode->i_uid = uid; | 358 | inode->i_uid = uid; |
359 | inode->i_gid = gid; | 359 | inode->i_gid = gid; |
360 | inode->i_blksize = HPAGE_SIZE; | ||
361 | inode->i_blocks = 0; | 360 | inode->i_blocks = 0; |
362 | inode->i_mapping->a_ops = &hugetlbfs_aops; | 361 | inode->i_mapping->a_ops = &hugetlbfs_aops; |
363 | inode->i_mapping->backing_dev_info =&hugetlbfs_backing_dev_info; | 362 | inode->i_mapping->backing_dev_info =&hugetlbfs_backing_dev_info; |
diff --git a/fs/isofs/inode.c b/fs/isofs/inode.c index 10e47897bac7..4527692f432b 100644 --- a/fs/isofs/inode.c +++ b/fs/isofs/inode.c | |||
@@ -1235,7 +1235,7 @@ static void isofs_read_inode(struct inode *inode) | |||
1235 | } | 1235 | } |
1236 | inode->i_uid = sbi->s_uid; | 1236 | inode->i_uid = sbi->s_uid; |
1237 | inode->i_gid = sbi->s_gid; | 1237 | inode->i_gid = sbi->s_gid; |
1238 | inode->i_blocks = inode->i_blksize = 0; | 1238 | inode->i_blocks = 0; |
1239 | 1239 | ||
1240 | ei->i_format_parm[0] = 0; | 1240 | ei->i_format_parm[0] = 0; |
1241 | ei->i_format_parm[1] = 0; | 1241 | ei->i_format_parm[1] = 0; |
@@ -1291,7 +1291,6 @@ static void isofs_read_inode(struct inode *inode) | |||
1291 | isonum_711 (de->ext_attr_length)); | 1291 | isonum_711 (de->ext_attr_length)); |
1292 | 1292 | ||
1293 | /* Set the number of blocks for stat() - should be done before RR */ | 1293 | /* Set the number of blocks for stat() - should be done before RR */ |
1294 | inode->i_blksize = PAGE_CACHE_SIZE; /* For stat() only */ | ||
1295 | inode->i_blocks = (inode->i_size + 511) >> 9; | 1294 | inode->i_blocks = (inode->i_size + 511) >> 9; |
1296 | 1295 | ||
1297 | /* | 1296 | /* |
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; |
diff --git a/fs/jffs2/fs.c b/fs/jffs2/fs.c index 4780f82825d6..72d9909d95ff 100644 --- a/fs/jffs2/fs.c +++ b/fs/jffs2/fs.c | |||
@@ -263,7 +263,6 @@ void jffs2_read_inode (struct inode *inode) | |||
263 | 263 | ||
264 | inode->i_nlink = f->inocache->nlink; | 264 | inode->i_nlink = f->inocache->nlink; |
265 | 265 | ||
266 | inode->i_blksize = PAGE_SIZE; | ||
267 | inode->i_blocks = (inode->i_size + 511) >> 9; | 266 | inode->i_blocks = (inode->i_size + 511) >> 9; |
268 | 267 | ||
269 | switch (inode->i_mode & S_IFMT) { | 268 | switch (inode->i_mode & S_IFMT) { |
@@ -449,7 +448,6 @@ struct inode *jffs2_new_inode (struct inode *dir_i, int mode, struct jffs2_raw_i | |||
449 | inode->i_atime = inode->i_ctime = inode->i_mtime = CURRENT_TIME_SEC; | 448 | inode->i_atime = inode->i_ctime = inode->i_mtime = CURRENT_TIME_SEC; |
450 | ri->atime = ri->mtime = ri->ctime = cpu_to_je32(I_SEC(inode->i_mtime)); | 449 | ri->atime = ri->mtime = ri->ctime = cpu_to_je32(I_SEC(inode->i_mtime)); |
451 | 450 | ||
452 | inode->i_blksize = PAGE_SIZE; | ||
453 | inode->i_blocks = 0; | 451 | inode->i_blocks = 0; |
454 | inode->i_size = 0; | 452 | inode->i_size = 0; |
455 | 453 | ||
diff --git a/fs/jfs/jfs_extent.c b/fs/jfs/jfs_extent.c index 4d52593a5fc6..4c74f0944f7e 100644 --- a/fs/jfs/jfs_extent.c +++ b/fs/jfs/jfs_extent.c | |||
@@ -468,7 +468,7 @@ int extRecord(struct inode *ip, xad_t * xp) | |||
468 | int extFill(struct inode *ip, xad_t * xp) | 468 | int extFill(struct inode *ip, xad_t * xp) |
469 | { | 469 | { |
470 | int rc, nbperpage = JFS_SBI(ip->i_sb)->nbperpage; | 470 | int rc, nbperpage = JFS_SBI(ip->i_sb)->nbperpage; |
471 | s64 blkno = offsetXAD(xp) >> ip->i_blksize; | 471 | s64 blkno = offsetXAD(xp) >> ip->i_blkbits; |
472 | 472 | ||
473 | // assert(ISSPARSE(ip)); | 473 | // assert(ISSPARSE(ip)); |
474 | 474 | ||
diff --git a/fs/jfs/jfs_imap.c b/fs/jfs/jfs_imap.c index ccbe60aff83d..369d7f39c040 100644 --- a/fs/jfs/jfs_imap.c +++ b/fs/jfs/jfs_imap.c | |||
@@ -3115,7 +3115,6 @@ static int copy_from_dinode(struct dinode * dip, struct inode *ip) | |||
3115 | ip->i_mtime.tv_nsec = le32_to_cpu(dip->di_mtime.tv_nsec); | 3115 | ip->i_mtime.tv_nsec = le32_to_cpu(dip->di_mtime.tv_nsec); |
3116 | ip->i_ctime.tv_sec = le32_to_cpu(dip->di_ctime.tv_sec); | 3116 | ip->i_ctime.tv_sec = le32_to_cpu(dip->di_ctime.tv_sec); |
3117 | ip->i_ctime.tv_nsec = le32_to_cpu(dip->di_ctime.tv_nsec); | 3117 | ip->i_ctime.tv_nsec = le32_to_cpu(dip->di_ctime.tv_nsec); |
3118 | ip->i_blksize = ip->i_sb->s_blocksize; | ||
3119 | ip->i_blocks = LBLK2PBLK(ip->i_sb, le64_to_cpu(dip->di_nblocks)); | 3118 | ip->i_blocks = LBLK2PBLK(ip->i_sb, le64_to_cpu(dip->di_nblocks)); |
3120 | ip->i_generation = le32_to_cpu(dip->di_gen); | 3119 | ip->i_generation = le32_to_cpu(dip->di_gen); |
3121 | 3120 | ||
diff --git a/fs/jfs/jfs_inode.c b/fs/jfs/jfs_inode.c index 495df402916d..bffaca9ae3a2 100644 --- a/fs/jfs/jfs_inode.c +++ b/fs/jfs/jfs_inode.c | |||
@@ -115,7 +115,6 @@ struct inode *ialloc(struct inode *parent, umode_t mode) | |||
115 | } | 115 | } |
116 | jfs_inode->mode2 |= mode; | 116 | jfs_inode->mode2 |= mode; |
117 | 117 | ||
118 | inode->i_blksize = sb->s_blocksize; | ||
119 | inode->i_blocks = 0; | 118 | inode->i_blocks = 0; |
120 | inode->i_mtime = inode->i_atime = inode->i_ctime = CURRENT_TIME; | 119 | inode->i_mtime = inode->i_atime = inode->i_ctime = CURRENT_TIME; |
121 | jfs_inode->otime = inode->i_ctime.tv_sec; | 120 | jfs_inode->otime = inode->i_ctime.tv_sec; |
diff --git a/fs/jfs/jfs_metapage.c b/fs/jfs/jfs_metapage.c index e1e0a6e6ebdf..f5afc129d6b1 100644 --- a/fs/jfs/jfs_metapage.c +++ b/fs/jfs/jfs_metapage.c | |||
@@ -257,7 +257,7 @@ static sector_t metapage_get_blocks(struct inode *inode, sector_t lblock, | |||
257 | int rc = 0; | 257 | int rc = 0; |
258 | int xflag; | 258 | int xflag; |
259 | s64 xaddr; | 259 | s64 xaddr; |
260 | sector_t file_blocks = (inode->i_size + inode->i_blksize - 1) >> | 260 | sector_t file_blocks = (inode->i_size + inode->i_sb->s_blocksize - 1) >> |
261 | inode->i_blkbits; | 261 | inode->i_blkbits; |
262 | 262 | ||
263 | if (lblock >= file_blocks) | 263 | if (lblock >= file_blocks) |
diff --git a/fs/libfs.c b/fs/libfs.c index 2751793beeaa..8db5afb7b0a7 100644 --- a/fs/libfs.c +++ b/fs/libfs.c | |||
@@ -383,7 +383,6 @@ int simple_fill_super(struct super_block *s, int magic, struct tree_descr *files | |||
383 | return -ENOMEM; | 383 | return -ENOMEM; |
384 | inode->i_mode = S_IFDIR | 0755; | 384 | inode->i_mode = S_IFDIR | 0755; |
385 | inode->i_uid = inode->i_gid = 0; | 385 | inode->i_uid = inode->i_gid = 0; |
386 | inode->i_blksize = PAGE_CACHE_SIZE; | ||
387 | inode->i_blocks = 0; | 386 | inode->i_blocks = 0; |
388 | inode->i_atime = inode->i_mtime = inode->i_ctime = CURRENT_TIME; | 387 | inode->i_atime = inode->i_mtime = inode->i_ctime = CURRENT_TIME; |
389 | inode->i_op = &simple_dir_inode_operations; | 388 | inode->i_op = &simple_dir_inode_operations; |
@@ -405,7 +404,6 @@ int simple_fill_super(struct super_block *s, int magic, struct tree_descr *files | |||
405 | goto out; | 404 | goto out; |
406 | inode->i_mode = S_IFREG | files->mode; | 405 | inode->i_mode = S_IFREG | files->mode; |
407 | inode->i_uid = inode->i_gid = 0; | 406 | inode->i_uid = inode->i_gid = 0; |
408 | inode->i_blksize = PAGE_CACHE_SIZE; | ||
409 | inode->i_blocks = 0; | 407 | inode->i_blocks = 0; |
410 | inode->i_atime = inode->i_mtime = inode->i_ctime = CURRENT_TIME; | 408 | inode->i_atime = inode->i_mtime = inode->i_ctime = CURRENT_TIME; |
411 | inode->i_fop = files->ops; | 409 | inode->i_fop = files->ops; |
diff --git a/fs/minix/bitmap.c b/fs/minix/bitmap.c index 4a6abc49418e..df6b1075b549 100644 --- a/fs/minix/bitmap.c +++ b/fs/minix/bitmap.c | |||
@@ -254,7 +254,7 @@ struct inode * minix_new_inode(const struct inode * dir, int * error) | |||
254 | inode->i_gid = (dir->i_mode & S_ISGID) ? dir->i_gid : current->fsgid; | 254 | inode->i_gid = (dir->i_mode & S_ISGID) ? dir->i_gid : current->fsgid; |
255 | inode->i_ino = j; | 255 | inode->i_ino = j; |
256 | inode->i_mtime = inode->i_atime = inode->i_ctime = CURRENT_TIME_SEC; | 256 | inode->i_mtime = inode->i_atime = inode->i_ctime = CURRENT_TIME_SEC; |
257 | inode->i_blocks = inode->i_blksize = 0; | 257 | inode->i_blocks = 0; |
258 | memset(&minix_i(inode)->u, 0, sizeof(minix_i(inode)->u)); | 258 | memset(&minix_i(inode)->u, 0, sizeof(minix_i(inode)->u)); |
259 | insert_inode_hash(inode); | 259 | insert_inode_hash(inode); |
260 | mark_inode_dirty(inode); | 260 | mark_inode_dirty(inode); |
diff --git a/fs/minix/inode.c b/fs/minix/inode.c index 826b9d830650..c11a4b9fb863 100644 --- a/fs/minix/inode.c +++ b/fs/minix/inode.c | |||
@@ -396,7 +396,7 @@ static void V1_minix_read_inode(struct inode * inode) | |||
396 | inode->i_mtime.tv_nsec = 0; | 396 | inode->i_mtime.tv_nsec = 0; |
397 | inode->i_atime.tv_nsec = 0; | 397 | inode->i_atime.tv_nsec = 0; |
398 | inode->i_ctime.tv_nsec = 0; | 398 | inode->i_ctime.tv_nsec = 0; |
399 | inode->i_blocks = inode->i_blksize = 0; | 399 | inode->i_blocks = 0; |
400 | for (i = 0; i < 9; i++) | 400 | for (i = 0; i < 9; i++) |
401 | minix_inode->u.i1_data[i] = raw_inode->i_zone[i]; | 401 | minix_inode->u.i1_data[i] = raw_inode->i_zone[i]; |
402 | minix_set_inode(inode, old_decode_dev(raw_inode->i_zone[0])); | 402 | minix_set_inode(inode, old_decode_dev(raw_inode->i_zone[0])); |
@@ -429,7 +429,7 @@ static void V2_minix_read_inode(struct inode * inode) | |||
429 | inode->i_mtime.tv_nsec = 0; | 429 | inode->i_mtime.tv_nsec = 0; |
430 | inode->i_atime.tv_nsec = 0; | 430 | inode->i_atime.tv_nsec = 0; |
431 | inode->i_ctime.tv_nsec = 0; | 431 | inode->i_ctime.tv_nsec = 0; |
432 | inode->i_blocks = inode->i_blksize = 0; | 432 | inode->i_blocks = 0; |
433 | for (i = 0; i < 10; i++) | 433 | for (i = 0; i < 10; i++) |
434 | minix_inode->u.i2_data[i] = raw_inode->i_zone[i]; | 434 | minix_inode->u.i2_data[i] = raw_inode->i_zone[i]; |
435 | minix_set_inode(inode, old_decode_dev(raw_inode->i_zone[0])); | 435 | minix_set_inode(inode, old_decode_dev(raw_inode->i_zone[0])); |
diff --git a/fs/ncpfs/inode.c b/fs/ncpfs/inode.c index 8244710e97dd..42e3bef270c9 100644 --- a/fs/ncpfs/inode.c +++ b/fs/ncpfs/inode.c | |||
@@ -223,7 +223,6 @@ static void ncp_set_attr(struct inode *inode, struct ncp_entry_info *nwinfo) | |||
223 | inode->i_nlink = 1; | 223 | inode->i_nlink = 1; |
224 | inode->i_uid = server->m.uid; | 224 | inode->i_uid = server->m.uid; |
225 | inode->i_gid = server->m.gid; | 225 | inode->i_gid = server->m.gid; |
226 | inode->i_blksize = NCP_BLOCK_SIZE; | ||
227 | 226 | ||
228 | ncp_update_dates(inode, &nwinfo->i); | 227 | ncp_update_dates(inode, &nwinfo->i); |
229 | ncp_update_inode(inode, nwinfo); | 228 | ncp_update_inode(inode, nwinfo); |
diff --git a/fs/nfs/inode.c b/fs/nfs/inode.c index 931f52a19579..bc9376ca86cd 100644 --- a/fs/nfs/inode.c +++ b/fs/nfs/inode.c | |||
@@ -277,10 +277,8 @@ nfs_fhget(struct super_block *sb, struct nfs_fh *fh, struct nfs_fattr *fattr) | |||
277 | * report the blocks in 512byte units | 277 | * report the blocks in 512byte units |
278 | */ | 278 | */ |
279 | inode->i_blocks = nfs_calc_block_size(fattr->du.nfs3.used); | 279 | inode->i_blocks = nfs_calc_block_size(fattr->du.nfs3.used); |
280 | inode->i_blksize = inode->i_sb->s_blocksize; | ||
281 | } else { | 280 | } else { |
282 | inode->i_blocks = fattr->du.nfs2.blocks; | 281 | inode->i_blocks = fattr->du.nfs2.blocks; |
283 | inode->i_blksize = fattr->du.nfs2.blocksize; | ||
284 | } | 282 | } |
285 | nfsi->attrtimeo = NFS_MINATTRTIMEO(inode); | 283 | nfsi->attrtimeo = NFS_MINATTRTIMEO(inode); |
286 | nfsi->attrtimeo_timestamp = jiffies; | 284 | nfsi->attrtimeo_timestamp = jiffies; |
@@ -969,10 +967,8 @@ static int nfs_update_inode(struct inode *inode, struct nfs_fattr *fattr) | |||
969 | * report the blocks in 512byte units | 967 | * report the blocks in 512byte units |
970 | */ | 968 | */ |
971 | inode->i_blocks = nfs_calc_block_size(fattr->du.nfs3.used); | 969 | inode->i_blocks = nfs_calc_block_size(fattr->du.nfs3.used); |
972 | inode->i_blksize = inode->i_sb->s_blocksize; | ||
973 | } else { | 970 | } else { |
974 | inode->i_blocks = fattr->du.nfs2.blocks; | 971 | inode->i_blocks = fattr->du.nfs2.blocks; |
975 | inode->i_blksize = fattr->du.nfs2.blocksize; | ||
976 | } | 972 | } |
977 | 973 | ||
978 | if ((fattr->valid & NFS_ATTR_FATTR_V4) != 0 && | 974 | if ((fattr->valid & NFS_ATTR_FATTR_V4) != 0 && |
diff --git a/fs/ntfs/inode.c b/fs/ntfs/inode.c index 31852121b3f5..933dbd89c2a4 100644 --- a/fs/ntfs/inode.c +++ b/fs/ntfs/inode.c | |||
@@ -556,8 +556,6 @@ static int ntfs_read_locked_inode(struct inode *vi) | |||
556 | 556 | ||
557 | /* Setup the generic vfs inode parts now. */ | 557 | /* Setup the generic vfs inode parts now. */ |
558 | 558 | ||
559 | /* This is the optimal IO size (for stat), not the fs block size. */ | ||
560 | vi->i_blksize = PAGE_CACHE_SIZE; | ||
561 | /* | 559 | /* |
562 | * This is for checking whether an inode has changed w.r.t. a file so | 560 | * This is for checking whether an inode has changed w.r.t. a file so |
563 | * that the file can be updated if necessary (compare with f_version). | 561 | * that the file can be updated if necessary (compare with f_version). |
@@ -1234,7 +1232,6 @@ static int ntfs_read_locked_attr_inode(struct inode *base_vi, struct inode *vi) | |||
1234 | base_ni = NTFS_I(base_vi); | 1232 | base_ni = NTFS_I(base_vi); |
1235 | 1233 | ||
1236 | /* Just mirror the values from the base inode. */ | 1234 | /* Just mirror the values from the base inode. */ |
1237 | vi->i_blksize = base_vi->i_blksize; | ||
1238 | vi->i_version = base_vi->i_version; | 1235 | vi->i_version = base_vi->i_version; |
1239 | vi->i_uid = base_vi->i_uid; | 1236 | vi->i_uid = base_vi->i_uid; |
1240 | vi->i_gid = base_vi->i_gid; | 1237 | vi->i_gid = base_vi->i_gid; |
@@ -1504,7 +1501,6 @@ static int ntfs_read_locked_index_inode(struct inode *base_vi, struct inode *vi) | |||
1504 | ni = NTFS_I(vi); | 1501 | ni = NTFS_I(vi); |
1505 | base_ni = NTFS_I(base_vi); | 1502 | base_ni = NTFS_I(base_vi); |
1506 | /* Just mirror the values from the base inode. */ | 1503 | /* Just mirror the values from the base inode. */ |
1507 | vi->i_blksize = base_vi->i_blksize; | ||
1508 | vi->i_version = base_vi->i_version; | 1504 | vi->i_version = base_vi->i_version; |
1509 | vi->i_uid = base_vi->i_uid; | 1505 | vi->i_uid = base_vi->i_uid; |
1510 | vi->i_gid = base_vi->i_gid; | 1506 | vi->i_gid = base_vi->i_gid; |
diff --git a/fs/ntfs/mft.c b/fs/ntfs/mft.c index 578fb3d5e803..584260fd6848 100644 --- a/fs/ntfs/mft.c +++ b/fs/ntfs/mft.c | |||
@@ -2638,11 +2638,6 @@ mft_rec_already_initialized: | |||
2638 | } | 2638 | } |
2639 | vi->i_ino = bit; | 2639 | vi->i_ino = bit; |
2640 | /* | 2640 | /* |
2641 | * This is the optimal IO size (for stat), not the fs block | ||
2642 | * size. | ||
2643 | */ | ||
2644 | vi->i_blksize = PAGE_CACHE_SIZE; | ||
2645 | /* | ||
2646 | * This is for checking whether an inode has changed w.r.t. a | 2641 | * This is for checking whether an inode has changed w.r.t. a |
2647 | * file so that the file can be updated if necessary (compare | 2642 | * file so that the file can be updated if necessary (compare |
2648 | * with f_version). | 2643 | * with f_version). |
diff --git a/fs/ocfs2/dlm/dlmfs.c b/fs/ocfs2/dlm/dlmfs.c index 0ff0898a0b9c..0368c6402182 100644 --- a/fs/ocfs2/dlm/dlmfs.c +++ b/fs/ocfs2/dlm/dlmfs.c | |||
@@ -335,7 +335,6 @@ static struct inode *dlmfs_get_root_inode(struct super_block *sb) | |||
335 | inode->i_mode = mode; | 335 | inode->i_mode = mode; |
336 | inode->i_uid = current->fsuid; | 336 | inode->i_uid = current->fsuid; |
337 | inode->i_gid = current->fsgid; | 337 | inode->i_gid = current->fsgid; |
338 | inode->i_blksize = PAGE_CACHE_SIZE; | ||
339 | inode->i_blocks = 0; | 338 | inode->i_blocks = 0; |
340 | inode->i_mapping->backing_dev_info = &dlmfs_backing_dev_info; | 339 | inode->i_mapping->backing_dev_info = &dlmfs_backing_dev_info; |
341 | inode->i_atime = inode->i_mtime = inode->i_ctime = CURRENT_TIME; | 340 | inode->i_atime = inode->i_mtime = inode->i_ctime = CURRENT_TIME; |
@@ -362,7 +361,6 @@ static struct inode *dlmfs_get_inode(struct inode *parent, | |||
362 | inode->i_mode = mode; | 361 | inode->i_mode = mode; |
363 | inode->i_uid = current->fsuid; | 362 | inode->i_uid = current->fsuid; |
364 | inode->i_gid = current->fsgid; | 363 | inode->i_gid = current->fsgid; |
365 | inode->i_blksize = PAGE_CACHE_SIZE; | ||
366 | inode->i_blocks = 0; | 364 | inode->i_blocks = 0; |
367 | inode->i_mapping->backing_dev_info = &dlmfs_backing_dev_info; | 365 | inode->i_mapping->backing_dev_info = &dlmfs_backing_dev_info; |
368 | inode->i_atime = inode->i_mtime = inode->i_ctime = CURRENT_TIME; | 366 | inode->i_atime = inode->i_mtime = inode->i_ctime = CURRENT_TIME; |
diff --git a/fs/ocfs2/inode.c b/fs/ocfs2/inode.c index 69d3db569166..16e8e74dc966 100644 --- a/fs/ocfs2/inode.c +++ b/fs/ocfs2/inode.c | |||
@@ -269,7 +269,6 @@ int ocfs2_populate_inode(struct inode *inode, struct ocfs2_dinode *fe, | |||
269 | inode->i_mode = le16_to_cpu(fe->i_mode); | 269 | inode->i_mode = le16_to_cpu(fe->i_mode); |
270 | inode->i_uid = le32_to_cpu(fe->i_uid); | 270 | inode->i_uid = le32_to_cpu(fe->i_uid); |
271 | inode->i_gid = le32_to_cpu(fe->i_gid); | 271 | inode->i_gid = le32_to_cpu(fe->i_gid); |
272 | inode->i_blksize = (u32)osb->s_clustersize; | ||
273 | 272 | ||
274 | /* Fast symlinks will have i_size but no allocated clusters. */ | 273 | /* Fast symlinks will have i_size but no allocated clusters. */ |
275 | if (S_ISLNK(inode->i_mode) && !fe->i_clusters) | 274 | if (S_ISLNK(inode->i_mode) && !fe->i_clusters) |
@@ -1258,8 +1257,6 @@ leave: | |||
1258 | void ocfs2_refresh_inode(struct inode *inode, | 1257 | void ocfs2_refresh_inode(struct inode *inode, |
1259 | struct ocfs2_dinode *fe) | 1258 | struct ocfs2_dinode *fe) |
1260 | { | 1259 | { |
1261 | struct ocfs2_super *osb = OCFS2_SB(inode->i_sb); | ||
1262 | |||
1263 | spin_lock(&OCFS2_I(inode)->ip_lock); | 1260 | spin_lock(&OCFS2_I(inode)->ip_lock); |
1264 | 1261 | ||
1265 | OCFS2_I(inode)->ip_clusters = le32_to_cpu(fe->i_clusters); | 1262 | OCFS2_I(inode)->ip_clusters = le32_to_cpu(fe->i_clusters); |
@@ -1270,7 +1267,6 @@ void ocfs2_refresh_inode(struct inode *inode, | |||
1270 | inode->i_uid = le32_to_cpu(fe->i_uid); | 1267 | inode->i_uid = le32_to_cpu(fe->i_uid); |
1271 | inode->i_gid = le32_to_cpu(fe->i_gid); | 1268 | inode->i_gid = le32_to_cpu(fe->i_gid); |
1272 | inode->i_mode = le16_to_cpu(fe->i_mode); | 1269 | inode->i_mode = le16_to_cpu(fe->i_mode); |
1273 | inode->i_blksize = (u32) osb->s_clustersize; | ||
1274 | if (S_ISLNK(inode->i_mode) && le32_to_cpu(fe->i_clusters) == 0) | 1270 | if (S_ISLNK(inode->i_mode) && le32_to_cpu(fe->i_clusters) == 0) |
1275 | inode->i_blocks = 0; | 1271 | inode->i_blocks = 0; |
1276 | else | 1272 | else |
@@ -879,7 +879,6 @@ static struct inode * get_pipe_inode(void) | |||
879 | inode->i_uid = current->fsuid; | 879 | inode->i_uid = current->fsuid; |
880 | inode->i_gid = current->fsgid; | 880 | inode->i_gid = current->fsgid; |
881 | inode->i_atime = inode->i_mtime = inode->i_ctime = CURRENT_TIME; | 881 | inode->i_atime = inode->i_mtime = inode->i_ctime = CURRENT_TIME; |
882 | inode->i_blksize = PAGE_SIZE; | ||
883 | 882 | ||
884 | return inode; | 883 | return inode; |
885 | 884 | ||
diff --git a/fs/qnx4/inode.c b/fs/qnx4/inode.c index fddbd61c68d0..5a41db2a218d 100644 --- a/fs/qnx4/inode.c +++ b/fs/qnx4/inode.c | |||
@@ -496,7 +496,6 @@ static void qnx4_read_inode(struct inode *inode) | |||
496 | inode->i_ctime.tv_sec = le32_to_cpu(raw_inode->di_ctime); | 496 | inode->i_ctime.tv_sec = le32_to_cpu(raw_inode->di_ctime); |
497 | inode->i_ctime.tv_nsec = 0; | 497 | inode->i_ctime.tv_nsec = 0; |
498 | inode->i_blocks = le32_to_cpu(raw_inode->di_first_xtnt.xtnt_size); | 498 | inode->i_blocks = le32_to_cpu(raw_inode->di_first_xtnt.xtnt_size); |
499 | inode->i_blksize = QNX4_DIR_ENTRY_SIZE; | ||
500 | 499 | ||
501 | memcpy(qnx4_inode, raw_inode, QNX4_DIR_ENTRY_SIZE); | 500 | memcpy(qnx4_inode, raw_inode, QNX4_DIR_ENTRY_SIZE); |
502 | if (S_ISREG(inode->i_mode)) { | 501 | if (S_ISREG(inode->i_mode)) { |
diff --git a/fs/ramfs/inode.c b/fs/ramfs/inode.c index b9677335cc8d..bc0e51662424 100644 --- a/fs/ramfs/inode.c +++ b/fs/ramfs/inode.c | |||
@@ -58,7 +58,6 @@ struct inode *ramfs_get_inode(struct super_block *sb, int mode, dev_t dev) | |||
58 | inode->i_mode = mode; | 58 | inode->i_mode = mode; |
59 | inode->i_uid = current->fsuid; | 59 | inode->i_uid = current->fsuid; |
60 | inode->i_gid = current->fsgid; | 60 | inode->i_gid = current->fsgid; |
61 | inode->i_blksize = PAGE_CACHE_SIZE; | ||
62 | inode->i_blocks = 0; | 61 | inode->i_blocks = 0; |
63 | inode->i_mapping->a_ops = &ramfs_aops; | 62 | inode->i_mapping->a_ops = &ramfs_aops; |
64 | inode->i_mapping->backing_dev_info = &ramfs_backing_dev_info; | 63 | inode->i_mapping->backing_dev_info = &ramfs_backing_dev_info; |
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 |
diff --git a/fs/smbfs/inode.c b/fs/smbfs/inode.c index 92cf60aa6121..2c122ee83adb 100644 --- a/fs/smbfs/inode.c +++ b/fs/smbfs/inode.c | |||
@@ -166,7 +166,6 @@ smb_get_inode_attr(struct inode *inode, struct smb_fattr *fattr) | |||
166 | fattr->f_mtime = inode->i_mtime; | 166 | fattr->f_mtime = inode->i_mtime; |
167 | fattr->f_ctime = inode->i_ctime; | 167 | fattr->f_ctime = inode->i_ctime; |
168 | fattr->f_atime = inode->i_atime; | 168 | fattr->f_atime = inode->i_atime; |
169 | fattr->f_blksize= inode->i_blksize; | ||
170 | fattr->f_blocks = inode->i_blocks; | 169 | fattr->f_blocks = inode->i_blocks; |
171 | 170 | ||
172 | fattr->attr = SMB_I(inode)->attr; | 171 | fattr->attr = SMB_I(inode)->attr; |
@@ -200,7 +199,6 @@ smb_set_inode_attr(struct inode *inode, struct smb_fattr *fattr) | |||
200 | inode->i_uid = fattr->f_uid; | 199 | inode->i_uid = fattr->f_uid; |
201 | inode->i_gid = fattr->f_gid; | 200 | inode->i_gid = fattr->f_gid; |
202 | inode->i_ctime = fattr->f_ctime; | 201 | inode->i_ctime = fattr->f_ctime; |
203 | inode->i_blksize= fattr->f_blksize; | ||
204 | inode->i_blocks = fattr->f_blocks; | 202 | inode->i_blocks = fattr->f_blocks; |
205 | inode->i_size = fattr->f_size; | 203 | inode->i_size = fattr->f_size; |
206 | inode->i_mtime = fattr->f_mtime; | 204 | inode->i_mtime = fattr->f_mtime; |
diff --git a/fs/smbfs/proc.c b/fs/smbfs/proc.c index c3495059889d..40e174db9872 100644 --- a/fs/smbfs/proc.c +++ b/fs/smbfs/proc.c | |||
@@ -1826,7 +1826,6 @@ smb_init_dirent(struct smb_sb_info *server, struct smb_fattr *fattr) | |||
1826 | fattr->f_nlink = 1; | 1826 | fattr->f_nlink = 1; |
1827 | fattr->f_uid = server->mnt->uid; | 1827 | fattr->f_uid = server->mnt->uid; |
1828 | fattr->f_gid = server->mnt->gid; | 1828 | fattr->f_gid = server->mnt->gid; |
1829 | fattr->f_blksize = SMB_ST_BLKSIZE; | ||
1830 | fattr->f_unix = 0; | 1829 | fattr->f_unix = 0; |
1831 | } | 1830 | } |
1832 | 1831 | ||
@@ -14,6 +14,7 @@ | |||
14 | #include <linux/namei.h> | 14 | #include <linux/namei.h> |
15 | #include <linux/security.h> | 15 | #include <linux/security.h> |
16 | #include <linux/syscalls.h> | 16 | #include <linux/syscalls.h> |
17 | #include <linux/pagemap.h> | ||
17 | 18 | ||
18 | #include <asm/uaccess.h> | 19 | #include <asm/uaccess.h> |
19 | #include <asm/unistd.h> | 20 | #include <asm/unistd.h> |
@@ -32,7 +33,7 @@ void generic_fillattr(struct inode *inode, struct kstat *stat) | |||
32 | stat->ctime = inode->i_ctime; | 33 | stat->ctime = inode->i_ctime; |
33 | stat->size = i_size_read(inode); | 34 | stat->size = i_size_read(inode); |
34 | stat->blocks = inode->i_blocks; | 35 | stat->blocks = inode->i_blocks; |
35 | stat->blksize = inode->i_blksize; | 36 | stat->blksize = (1 << inode->i_blkbits); |
36 | } | 37 | } |
37 | 38 | ||
38 | EXPORT_SYMBOL(generic_fillattr); | 39 | EXPORT_SYMBOL(generic_fillattr); |
diff --git a/fs/sysfs/inode.c b/fs/sysfs/inode.c index fd7cd5f843d2..e79e38d52c00 100644 --- a/fs/sysfs/inode.c +++ b/fs/sysfs/inode.c | |||
@@ -125,7 +125,6 @@ struct inode * sysfs_new_inode(mode_t mode, struct sysfs_dirent * sd) | |||
125 | { | 125 | { |
126 | struct inode * inode = new_inode(sysfs_sb); | 126 | struct inode * inode = new_inode(sysfs_sb); |
127 | if (inode) { | 127 | if (inode) { |
128 | inode->i_blksize = PAGE_CACHE_SIZE; | ||
129 | inode->i_blocks = 0; | 128 | inode->i_blocks = 0; |
130 | inode->i_mapping->a_ops = &sysfs_aops; | 129 | inode->i_mapping->a_ops = &sysfs_aops; |
131 | inode->i_mapping->backing_dev_info = &sysfs_backing_dev_info; | 130 | inode->i_mapping->backing_dev_info = &sysfs_backing_dev_info; |
diff --git a/fs/sysv/ialloc.c b/fs/sysv/ialloc.c index 9b585d1081c0..115ab0d6f4bc 100644 --- a/fs/sysv/ialloc.c +++ b/fs/sysv/ialloc.c | |||
@@ -170,7 +170,7 @@ struct inode * sysv_new_inode(const struct inode * dir, mode_t mode) | |||
170 | inode->i_uid = current->fsuid; | 170 | inode->i_uid = current->fsuid; |
171 | inode->i_ino = fs16_to_cpu(sbi, ino); | 171 | inode->i_ino = fs16_to_cpu(sbi, ino); |
172 | inode->i_mtime = inode->i_atime = inode->i_ctime = CURRENT_TIME_SEC; | 172 | inode->i_mtime = inode->i_atime = inode->i_ctime = CURRENT_TIME_SEC; |
173 | inode->i_blocks = inode->i_blksize = 0; | 173 | inode->i_blocks = 0; |
174 | memset(SYSV_I(inode)->i_data, 0, sizeof(SYSV_I(inode)->i_data)); | 174 | memset(SYSV_I(inode)->i_data, 0, sizeof(SYSV_I(inode)->i_data)); |
175 | SYSV_I(inode)->i_dir_start_lookup = 0; | 175 | SYSV_I(inode)->i_dir_start_lookup = 0; |
176 | insert_inode_hash(inode); | 176 | insert_inode_hash(inode); |
diff --git a/fs/sysv/inode.c b/fs/sysv/inode.c index 58b2d22142ba..d63c5e48b050 100644 --- a/fs/sysv/inode.c +++ b/fs/sysv/inode.c | |||
@@ -201,7 +201,7 @@ static void sysv_read_inode(struct inode *inode) | |||
201 | inode->i_ctime.tv_nsec = 0; | 201 | inode->i_ctime.tv_nsec = 0; |
202 | inode->i_atime.tv_nsec = 0; | 202 | inode->i_atime.tv_nsec = 0; |
203 | inode->i_mtime.tv_nsec = 0; | 203 | inode->i_mtime.tv_nsec = 0; |
204 | inode->i_blocks = inode->i_blksize = 0; | 204 | inode->i_blocks = 0; |
205 | 205 | ||
206 | si = SYSV_I(inode); | 206 | si = SYSV_I(inode); |
207 | for (block = 0; block < 10+1+1+1; block++) | 207 | for (block = 0; block < 10+1+1+1; block++) |
diff --git a/fs/udf/ialloc.c b/fs/udf/ialloc.c index d1d38238ce65..8206983f2ebf 100644 --- a/fs/udf/ialloc.c +++ b/fs/udf/ialloc.c | |||
@@ -121,7 +121,6 @@ struct inode * udf_new_inode (struct inode *dir, int mode, int * err) | |||
121 | UDF_I_LOCATION(inode).logicalBlockNum = block; | 121 | UDF_I_LOCATION(inode).logicalBlockNum = block; |
122 | UDF_I_LOCATION(inode).partitionReferenceNum = UDF_I_LOCATION(dir).partitionReferenceNum; | 122 | UDF_I_LOCATION(inode).partitionReferenceNum = UDF_I_LOCATION(dir).partitionReferenceNum; |
123 | inode->i_ino = udf_get_lb_pblock(sb, UDF_I_LOCATION(inode), 0); | 123 | inode->i_ino = udf_get_lb_pblock(sb, UDF_I_LOCATION(inode), 0); |
124 | inode->i_blksize = PAGE_SIZE; | ||
125 | inode->i_blocks = 0; | 124 | inode->i_blocks = 0; |
126 | UDF_I_LENEATTR(inode) = 0; | 125 | UDF_I_LENEATTR(inode) = 0; |
127 | UDF_I_LENALLOC(inode) = 0; | 126 | UDF_I_LENALLOC(inode) = 0; |
diff --git a/fs/udf/inode.c b/fs/udf/inode.c index 605f5111b6d8..b223b32db991 100644 --- a/fs/udf/inode.c +++ b/fs/udf/inode.c | |||
@@ -916,8 +916,6 @@ __udf_read_inode(struct inode *inode) | |||
916 | * i_nlink = 1 | 916 | * i_nlink = 1 |
917 | * i_op = NULL; | 917 | * i_op = NULL; |
918 | */ | 918 | */ |
919 | inode->i_blksize = PAGE_SIZE; | ||
920 | |||
921 | bh = udf_read_ptagged(inode->i_sb, UDF_I_LOCATION(inode), 0, &ident); | 919 | bh = udf_read_ptagged(inode->i_sb, UDF_I_LOCATION(inode), 0, &ident); |
922 | 920 | ||
923 | if (!bh) | 921 | if (!bh) |
diff --git a/fs/ufs/ialloc.c b/fs/ufs/ialloc.c index 9501dcd3b213..2ad1259c6eca 100644 --- a/fs/ufs/ialloc.c +++ b/fs/ufs/ialloc.c | |||
@@ -255,7 +255,6 @@ cg_found: | |||
255 | inode->i_gid = current->fsgid; | 255 | inode->i_gid = current->fsgid; |
256 | 256 | ||
257 | inode->i_ino = cg * uspi->s_ipg + bit; | 257 | inode->i_ino = cg * uspi->s_ipg + bit; |
258 | inode->i_blksize = PAGE_SIZE; /* This is the optimal IO size (for stat), not the fs block size */ | ||
259 | inode->i_blocks = 0; | 258 | inode->i_blocks = 0; |
260 | inode->i_mtime = inode->i_atime = inode->i_ctime = CURRENT_TIME_SEC; | 259 | inode->i_mtime = inode->i_atime = inode->i_ctime = CURRENT_TIME_SEC; |
261 | ufsi->i_flags = UFS_I(dir)->i_flags; | 260 | ufsi->i_flags = UFS_I(dir)->i_flags; |
diff --git a/fs/ufs/inode.c b/fs/ufs/inode.c index 30c6e8a9446c..ee1eaa6f4ec2 100644 --- a/fs/ufs/inode.c +++ b/fs/ufs/inode.c | |||
@@ -741,7 +741,6 @@ void ufs_read_inode(struct inode * inode) | |||
741 | ufs1_read_inode(inode, ufs_inode + ufs_inotofsbo(inode->i_ino)); | 741 | ufs1_read_inode(inode, ufs_inode + ufs_inotofsbo(inode->i_ino)); |
742 | } | 742 | } |
743 | 743 | ||
744 | inode->i_blksize = PAGE_SIZE;/*This is the optimal IO size (for stat)*/ | ||
745 | inode->i_version++; | 744 | inode->i_version++; |
746 | ufsi->i_lastfrag = | 745 | ufsi->i_lastfrag = |
747 | (inode->i_size + uspi->s_fsize - 1) >> uspi->s_fshift; | 746 | (inode->i_size + uspi->s_fsize - 1) >> uspi->s_fshift; |
diff --git a/fs/xfs/linux-2.6/xfs_super.c b/fs/xfs/linux-2.6/xfs_super.c index 4754f342a5d3..9df9ed37d219 100644 --- a/fs/xfs/linux-2.6/xfs_super.c +++ b/fs/xfs/linux-2.6/xfs_super.c | |||
@@ -171,7 +171,6 @@ xfs_revalidate_inode( | |||
171 | break; | 171 | break; |
172 | } | 172 | } |
173 | 173 | ||
174 | inode->i_blksize = xfs_preferred_iosize(mp); | ||
175 | inode->i_generation = ip->i_d.di_gen; | 174 | inode->i_generation = ip->i_d.di_gen; |
176 | i_size_write(inode, ip->i_d.di_size); | 175 | i_size_write(inode, ip->i_d.di_size); |
177 | inode->i_blocks = | 176 | inode->i_blocks = |
diff --git a/fs/xfs/linux-2.6/xfs_vnode.c b/fs/xfs/linux-2.6/xfs_vnode.c index 6628d96b6fd6..553fa731ade5 100644 --- a/fs/xfs/linux-2.6/xfs_vnode.c +++ b/fs/xfs/linux-2.6/xfs_vnode.c | |||
@@ -122,7 +122,6 @@ vn_revalidate_core( | |||
122 | inode->i_blocks = vap->va_nblocks; | 122 | inode->i_blocks = vap->va_nblocks; |
123 | inode->i_mtime = vap->va_mtime; | 123 | inode->i_mtime = vap->va_mtime; |
124 | inode->i_ctime = vap->va_ctime; | 124 | inode->i_ctime = vap->va_ctime; |
125 | inode->i_blksize = vap->va_blocksize; | ||
126 | if (vap->va_xflags & XFS_XFLAG_IMMUTABLE) | 125 | if (vap->va_xflags & XFS_XFLAG_IMMUTABLE) |
127 | inode->i_flags |= S_IMMUTABLE; | 126 | inode->i_flags |= S_IMMUTABLE; |
128 | else | 127 | else |
diff --git a/include/linux/fs.h b/include/linux/fs.h index 192e69bb55b5..8f74dfbb2edd 100644 --- a/include/linux/fs.h +++ b/include/linux/fs.h | |||
@@ -512,7 +512,6 @@ struct inode { | |||
512 | struct timespec i_mtime; | 512 | struct timespec i_mtime; |
513 | struct timespec i_ctime; | 513 | struct timespec i_ctime; |
514 | unsigned int i_blkbits; | 514 | unsigned int i_blkbits; |
515 | unsigned long i_blksize; | ||
516 | unsigned long i_version; | 515 | unsigned long i_version; |
517 | blkcnt_t i_blocks; | 516 | blkcnt_t i_blocks; |
518 | unsigned short i_bytes; | 517 | unsigned short i_bytes; |
diff --git a/include/linux/nfsd/nfsfh.h b/include/linux/nfsd/nfsfh.h index f9edcd2ff3c8..31a3cb617ce0 100644 --- a/include/linux/nfsd/nfsfh.h +++ b/include/linux/nfsd/nfsfh.h | |||
@@ -269,14 +269,8 @@ fill_post_wcc(struct svc_fh *fhp) | |||
269 | fhp->fh_post_uid = inode->i_uid; | 269 | fhp->fh_post_uid = inode->i_uid; |
270 | fhp->fh_post_gid = inode->i_gid; | 270 | fhp->fh_post_gid = inode->i_gid; |
271 | fhp->fh_post_size = inode->i_size; | 271 | fhp->fh_post_size = inode->i_size; |
272 | if (inode->i_blksize) { | 272 | fhp->fh_post_blksize = BLOCK_SIZE; |
273 | fhp->fh_post_blksize = inode->i_blksize; | 273 | fhp->fh_post_blocks = inode->i_blocks; |
274 | fhp->fh_post_blocks = inode->i_blocks; | ||
275 | } else { | ||
276 | fhp->fh_post_blksize = BLOCK_SIZE; | ||
277 | /* how much do we care for accuracy with MinixFS? */ | ||
278 | fhp->fh_post_blocks = (inode->i_size+511) >> 9; | ||
279 | } | ||
280 | fhp->fh_post_rdev[0] = htonl((u32)imajor(inode)); | 274 | fhp->fh_post_rdev[0] = htonl((u32)imajor(inode)); |
281 | fhp->fh_post_rdev[1] = htonl((u32)iminor(inode)); | 275 | fhp->fh_post_rdev[1] = htonl((u32)iminor(inode)); |
282 | fhp->fh_post_atime = inode->i_atime; | 276 | fhp->fh_post_atime = inode->i_atime; |
diff --git a/include/linux/smb.h b/include/linux/smb.h index 6df3b1501559..f098dff93f6b 100644 --- a/include/linux/smb.h +++ b/include/linux/smb.h | |||
@@ -89,7 +89,6 @@ struct smb_fattr { | |||
89 | struct timespec f_atime; | 89 | struct timespec f_atime; |
90 | struct timespec f_mtime; | 90 | struct timespec f_mtime; |
91 | struct timespec f_ctime; | 91 | struct timespec f_ctime; |
92 | unsigned long f_blksize; | ||
93 | unsigned long f_blocks; | 92 | unsigned long f_blocks; |
94 | int f_unix; | 93 | int f_unix; |
95 | }; | 94 | }; |
diff --git a/ipc/mqueue.c b/ipc/mqueue.c index f8381f0660b2..840f8a6fb85f 100644 --- a/ipc/mqueue.c +++ b/ipc/mqueue.c | |||
@@ -115,7 +115,6 @@ static struct inode *mqueue_get_inode(struct super_block *sb, int mode, | |||
115 | inode->i_mode = mode; | 115 | inode->i_mode = mode; |
116 | inode->i_uid = current->fsuid; | 116 | inode->i_uid = current->fsuid; |
117 | inode->i_gid = current->fsgid; | 117 | inode->i_gid = current->fsgid; |
118 | inode->i_blksize = PAGE_CACHE_SIZE; | ||
119 | inode->i_blocks = 0; | 118 | inode->i_blocks = 0; |
120 | inode->i_mtime = inode->i_ctime = inode->i_atime = | 119 | inode->i_mtime = inode->i_ctime = inode->i_atime = |
121 | CURRENT_TIME; | 120 | CURRENT_TIME; |
diff --git a/kernel/cpuset.c b/kernel/cpuset.c index cff41511269f..1b32c2c04c15 100644 --- a/kernel/cpuset.c +++ b/kernel/cpuset.c | |||
@@ -289,7 +289,6 @@ static struct inode *cpuset_new_inode(mode_t mode) | |||
289 | inode->i_mode = mode; | 289 | inode->i_mode = mode; |
290 | inode->i_uid = current->fsuid; | 290 | inode->i_uid = current->fsuid; |
291 | inode->i_gid = current->fsgid; | 291 | inode->i_gid = current->fsgid; |
292 | inode->i_blksize = PAGE_CACHE_SIZE; | ||
293 | inode->i_blocks = 0; | 292 | inode->i_blocks = 0; |
294 | inode->i_atime = inode->i_mtime = inode->i_ctime = CURRENT_TIME; | 293 | inode->i_atime = inode->i_mtime = inode->i_ctime = CURRENT_TIME; |
295 | inode->i_mapping->backing_dev_info = &cpuset_backing_dev_info; | 294 | inode->i_mapping->backing_dev_info = &cpuset_backing_dev_info; |
diff --git a/mm/shmem.c b/mm/shmem.c index 0a8e29cf87e0..eda907c3a86a 100644 --- a/mm/shmem.c +++ b/mm/shmem.c | |||
@@ -1351,7 +1351,6 @@ shmem_get_inode(struct super_block *sb, int mode, dev_t dev) | |||
1351 | inode->i_mode = mode; | 1351 | inode->i_mode = mode; |
1352 | inode->i_uid = current->fsuid; | 1352 | inode->i_uid = current->fsuid; |
1353 | inode->i_gid = current->fsgid; | 1353 | inode->i_gid = current->fsgid; |
1354 | inode->i_blksize = PAGE_CACHE_SIZE; | ||
1355 | inode->i_blocks = 0; | 1354 | inode->i_blocks = 0; |
1356 | inode->i_mapping->a_ops = &shmem_aops; | 1355 | inode->i_mapping->a_ops = &shmem_aops; |
1357 | inode->i_mapping->backing_dev_info = &shmem_backing_dev_info; | 1356 | inode->i_mapping->backing_dev_info = &shmem_backing_dev_info; |
diff --git a/net/sunrpc/rpc_pipe.c b/net/sunrpc/rpc_pipe.c index f65bea74734d..700c6e061a04 100644 --- a/net/sunrpc/rpc_pipe.c +++ b/net/sunrpc/rpc_pipe.c | |||
@@ -488,7 +488,6 @@ rpc_get_inode(struct super_block *sb, int mode) | |||
488 | return NULL; | 488 | return NULL; |
489 | inode->i_mode = mode; | 489 | inode->i_mode = mode; |
490 | inode->i_uid = inode->i_gid = 0; | 490 | inode->i_uid = inode->i_gid = 0; |
491 | inode->i_blksize = PAGE_CACHE_SIZE; | ||
492 | inode->i_blocks = 0; | 491 | inode->i_blocks = 0; |
493 | inode->i_atime = inode->i_mtime = inode->i_ctime = CURRENT_TIME; | 492 | inode->i_atime = inode->i_mtime = inode->i_ctime = CURRENT_TIME; |
494 | switch(mode & S_IFMT) { | 493 | switch(mode & S_IFMT) { |
diff --git a/security/inode.c b/security/inode.c index 176aacea8ca4..49ee51529396 100644 --- a/security/inode.c +++ b/security/inode.c | |||
@@ -64,7 +64,6 @@ static struct inode *get_inode(struct super_block *sb, int mode, dev_t dev) | |||
64 | inode->i_mode = mode; | 64 | inode->i_mode = mode; |
65 | inode->i_uid = 0; | 65 | inode->i_uid = 0; |
66 | inode->i_gid = 0; | 66 | inode->i_gid = 0; |
67 | inode->i_blksize = PAGE_CACHE_SIZE; | ||
68 | inode->i_blocks = 0; | 67 | inode->i_blocks = 0; |
69 | inode->i_atime = inode->i_mtime = inode->i_ctime = CURRENT_TIME; | 68 | inode->i_atime = inode->i_mtime = inode->i_ctime = CURRENT_TIME; |
70 | switch (mode & S_IFMT) { | 69 | switch (mode & S_IFMT) { |
diff --git a/security/selinux/selinuxfs.c b/security/selinux/selinuxfs.c index 00534c302ba2..bab7b386cb8d 100644 --- a/security/selinux/selinuxfs.c +++ b/security/selinux/selinuxfs.c | |||
@@ -771,7 +771,6 @@ static struct inode *sel_make_inode(struct super_block *sb, int mode) | |||
771 | if (ret) { | 771 | if (ret) { |
772 | ret->i_mode = mode; | 772 | ret->i_mode = mode; |
773 | ret->i_uid = ret->i_gid = 0; | 773 | ret->i_uid = ret->i_gid = 0; |
774 | ret->i_blksize = PAGE_CACHE_SIZE; | ||
775 | ret->i_blocks = 0; | 774 | ret->i_blocks = 0; |
776 | ret->i_atime = ret->i_mtime = ret->i_ctime = CURRENT_TIME; | 775 | ret->i_atime = ret->i_mtime = ret->i_ctime = CURRENT_TIME; |
777 | } | 776 | } |