aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBoaz Harrosh <Boaz Harrosh bharrosh@panasas.com>2010-10-07 14:28:18 -0400
committerBoaz Harrosh <bharrosh@panasas.com>2010-10-18 14:16:02 -0400
commit115e19c53501edc11f730191f7f047736815ae3d (patch)
treeeddb72bc6ed53acf0bba8a98ebbda438b63997ae
parent7aebf4106b4263667696485303af498aa1eea9ef (diff)
exofs: Set i_mapping->backing_dev_info anyway
Though it has been promised that inode->i_mapping->backing_dev_info is not used and the supporting code is fine. Until the pointer will default to NULL, I'd rather it points to the correct thing regardless. At least for future infrastructure coder it is a clear indication of where are the key points that inodes are initialized. I know because it took me time to find this out. Signed-off-by: Boaz Harrosh <Boaz Harrosh bharrosh@panasas.com>
-rw-r--r--fs/exofs/inode.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/fs/exofs/inode.c b/fs/exofs/inode.c
index 24ab327a20c..0ba9886da2e 100644
--- a/fs/exofs/inode.c
+++ b/fs/exofs/inode.c
@@ -1030,6 +1030,7 @@ struct inode *exofs_iget(struct super_block *sb, unsigned long ino)
1030 memcpy(oi->i_data, fcb.i_data, sizeof(fcb.i_data)); 1030 memcpy(oi->i_data, fcb.i_data, sizeof(fcb.i_data));
1031 } 1031 }
1032 1032
1033 inode->i_mapping->backing_dev_info = sb->s_bdi;
1033 if (S_ISREG(inode->i_mode)) { 1034 if (S_ISREG(inode->i_mode)) {
1034 inode->i_op = &exofs_file_inode_operations; 1035 inode->i_op = &exofs_file_inode_operations;
1035 inode->i_fop = &exofs_file_operations; 1036 inode->i_fop = &exofs_file_operations;
@@ -1129,6 +1130,7 @@ struct inode *exofs_new_inode(struct inode *dir, int mode)
1129 1130
1130 sbi = sb->s_fs_info; 1131 sbi = sb->s_fs_info;
1131 1132
1133 inode->i_mapping->backing_dev_info = sb->s_bdi;
1132 sb->s_dirt = 1; 1134 sb->s_dirt = 1;
1133 inode_init_owner(inode, dir, mode); 1135 inode_init_owner(inode, dir, mode);
1134 inode->i_ino = sbi->s_nextid++; 1136 inode->i_ino = sbi->s_nextid++;