diff options
author | Steven Whitehouse <swhiteho@redhat.com> | 2006-02-27 12:00:42 -0500 |
---|---|---|
committer | Steven Whitehouse <swhiteho@redhat.com> | 2006-02-27 12:00:42 -0500 |
commit | 568f4c9659a2225b0d29cf86feecbcf25c9045c8 (patch) | |
tree | 8ec0fee12313f88a195e0b90924f6b7633ba29f1 /fs/gfs2/ops_vm.c | |
parent | 3a8fe9be6c9794e55ac2253eab91d42b28a9dab6 (diff) |
[GFS2] 80 Column audit of GFS2
Requested by:
Prarit Bhargava <prarit@redhat.com>
Signed-off-by: Steven Whitehouse <swhiteho@redhat.com>
Diffstat (limited to 'fs/gfs2/ops_vm.c')
-rw-r--r-- | fs/gfs2/ops_vm.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/fs/gfs2/ops_vm.c b/fs/gfs2/ops_vm.c index 808110e3ec5e..bfeb920dccee 100644 --- a/fs/gfs2/ops_vm.c +++ b/fs/gfs2/ops_vm.c | |||
@@ -68,7 +68,8 @@ static int alloc_page_backing(struct gfs2_inode *ip, struct page *page) | |||
68 | { | 68 | { |
69 | struct gfs2_sbd *sdp = ip->i_sbd; | 69 | struct gfs2_sbd *sdp = ip->i_sbd; |
70 | unsigned long index = page->index; | 70 | unsigned long index = page->index; |
71 | uint64_t lblock = index << (PAGE_CACHE_SHIFT - sdp->sd_sb.sb_bsize_shift); | 71 | uint64_t lblock = index << (PAGE_CACHE_SHIFT - |
72 | sdp->sd_sb.sb_bsize_shift); | ||
72 | unsigned int blocks = PAGE_CACHE_SIZE >> sdp->sd_sb.sb_bsize_shift; | 73 | unsigned int blocks = PAGE_CACHE_SIZE >> sdp->sd_sb.sb_bsize_shift; |
73 | struct gfs2_alloc *al; | 74 | struct gfs2_alloc *al; |
74 | unsigned int data_blocks, ind_blocks; | 75 | unsigned int data_blocks, ind_blocks; |
@@ -143,7 +144,8 @@ static struct page *gfs2_sharewrite_nopage(struct vm_area_struct *area, | |||
143 | struct gfs2_inode *ip = get_v2ip(area->vm_file->f_mapping->host); | 144 | struct gfs2_inode *ip = get_v2ip(area->vm_file->f_mapping->host); |
144 | struct gfs2_holder i_gh; | 145 | struct gfs2_holder i_gh; |
145 | struct page *result = NULL; | 146 | struct page *result = NULL; |
146 | unsigned long index = ((address - area->vm_start) >> PAGE_CACHE_SHIFT) + area->vm_pgoff; | 147 | unsigned long index = ((address - area->vm_start) >> PAGE_CACHE_SHIFT) + |
148 | area->vm_pgoff; | ||
147 | int alloc_required; | 149 | int alloc_required; |
148 | int error; | 150 | int error; |
149 | 151 | ||