meta_io.h (d585a021c0b10b0477d6b608c53e1feb8cde0507) | meta_io.h (009d851837ab26cab18adda6169a813f70b0b21b) |
---|---|
1/* 2 * Copyright (C) Sistina Software, Inc. 1997-2003 All rights reserved. 3 * Copyright (C) 2004-2006 Red Hat, Inc. All rights reserved. 4 * 5 * This copyrighted material is made available to anyone wishing to use, 6 * modify, copy, or redistribute it subject to the terms and conditions 7 * of the GNU General Public License version 2. 8 */ --- 23 unchanged lines hidden (view full) --- 32{ 33 BUG_ON(from_head < to_head); 34 memcpy(to_bh->b_data + to_head, from_bh->b_data + from_head, 35 from_bh->b_size - from_head); 36 memset(to_bh->b_data + to_bh->b_size + to_head - from_head, 37 0, from_head - to_head); 38} 39 | 1/* 2 * Copyright (C) Sistina Software, Inc. 1997-2003 All rights reserved. 3 * Copyright (C) 2004-2006 Red Hat, Inc. All rights reserved. 4 * 5 * This copyrighted material is made available to anyone wishing to use, 6 * modify, copy, or redistribute it subject to the terms and conditions 7 * of the GNU General Public License version 2. 8 */ --- 23 unchanged lines hidden (view full) --- 32{ 33 BUG_ON(from_head < to_head); 34 memcpy(to_bh->b_data + to_head, from_bh->b_data + from_head, 35 from_bh->b_size - from_head); 36 memset(to_bh->b_data + to_bh->b_size + to_head - from_head, 37 0, from_head - to_head); 38} 39 |
40struct inode *gfs2_aspace_get(struct gfs2_sbd *sdp); 41void gfs2_aspace_put(struct inode *aspace); | 40extern const struct address_space_operations gfs2_meta_aops; |
42 | 41 |
42static inline struct gfs2_sbd *gfs2_mapping2sbd(struct address_space *mapping) 43{ 44 struct inode *inode = mapping->host; 45 if (mapping->a_ops == &gfs2_meta_aops) 46 return (((struct gfs2_glock *)mapping) - 1)->gl_sbd; 47 else 48 return inode->i_sb->s_fs_info; 49} 50 |
|
43void gfs2_meta_sync(struct gfs2_glock *gl); 44 45struct buffer_head *gfs2_meta_new(struct gfs2_glock *gl, u64 blkno); 46int gfs2_meta_read(struct gfs2_glock *gl, u64 blkno, 47 int flags, struct buffer_head **bhp); 48int gfs2_meta_wait(struct gfs2_sbd *sdp, struct buffer_head *bh); 49struct buffer_head *gfs2_getbuf(struct gfs2_glock *gl, u64 blkno, int create); 50 --- 26 unchanged lines hidden --- | 51void gfs2_meta_sync(struct gfs2_glock *gl); 52 53struct buffer_head *gfs2_meta_new(struct gfs2_glock *gl, u64 blkno); 54int gfs2_meta_read(struct gfs2_glock *gl, u64 blkno, 55 int flags, struct buffer_head **bhp); 56int gfs2_meta_wait(struct gfs2_sbd *sdp, struct buffer_head *bh); 57struct buffer_head *gfs2_getbuf(struct gfs2_glock *gl, u64 blkno, int create); 58 --- 26 unchanged lines hidden --- |