summaryrefslogtreecommitdiffstats
path: root/fs/gfs2/super.c
diff options
context:
space:
mode:
authorAndreas Gruenbacher2015-11-11 22:00:35 +0100
committerBob Peterson2015-11-16 19:00:29 +0100
commitc8d577038449a718ad0027d1790b6ef4441715d4 (patch)
tree7ba2dd87040f008328b528e96ac99b88736188f7 /fs/gfs2/super.c
parentGFS2: Use rht_for_each_entry_rcu in glock_hash_walk (diff)
downloadkernel-qcow2-linux-c8d577038449a718ad0027d1790b6ef4441715d4.tar.gz
kernel-qcow2-linux-c8d577038449a718ad0027d1790b6ef4441715d4.tar.xz
kernel-qcow2-linux-c8d577038449a718ad0027d1790b6ef4441715d4.zip
gfs2: Extended attribute readahead
When gfs2 allocates an inode and its extended attribute block next to each other at inode create time, the inode's directory entry indicates that in de_rahead. In that case, we can readahead the extended attribute block when we read in the inode. Signed-off-by: Andreas Gruenbacher <agruenba@redhat.com> Signed-off-by: Bob Peterson <rpeterso@redhat.com>
Diffstat (limited to 'fs/gfs2/super.c')
-rw-r--r--fs/gfs2/super.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/fs/gfs2/super.c b/fs/gfs2/super.c
index 894fb01a91da..8f94282db2fe 100644
--- a/fs/gfs2/super.c
+++ b/fs/gfs2/super.c
@@ -1633,6 +1633,7 @@ static struct inode *gfs2_alloc_inode(struct super_block *sb)
ip->i_gl = NULL;
ip->i_rgd = NULL;
ip->i_res = NULL;
+ ip->i_rahead = 0;
}
return &ip->i_inode;
}