mirror of
https://github.com/torvalds/linux.git
synced 2024-10-30 00:32:38 +00:00
e9e1ef2b6e
This patch is just a cleanup. Function gfs2_get_block() just calls function gfs2_block_map reversing the last two parameters. By reversing the parameters, gfs2_block_map() may be called directly and function gfs2_get_block may be eliminated altogether. Since this function is done for every block operation, this streamlines the code and makes it a little bit more efficient. Signed-off-by: Bob Peterson <rpeterso@redhat.com> Signed-off-by: Steven Whitehouse <swhiteho@redhat.com>
24 lines
767 B
C
24 lines
767 B
C
/*
|
|
* Copyright (C) Sistina Software, Inc. 1997-2003 All rights reserved.
|
|
* Copyright (C) 2004-2007 Red Hat, Inc. All rights reserved.
|
|
*
|
|
* This copyrighted material is made available to anyone wishing to use,
|
|
* modify, copy, or redistribute it subject to the terms and conditions
|
|
* of the GNU General Public License version 2.
|
|
*/
|
|
|
|
#ifndef __OPS_ADDRESS_DOT_H__
|
|
#define __OPS_ADDRESS_DOT_H__
|
|
|
|
#include <linux/fs.h>
|
|
#include <linux/buffer_head.h>
|
|
#include <linux/mm.h>
|
|
|
|
extern int gfs2_releasepage(struct page *page, gfp_t gfp_mask);
|
|
extern int gfs2_internal_read(struct gfs2_inode *ip,
|
|
struct file_ra_state *ra_state,
|
|
char *buf, loff_t *pos, unsigned size);
|
|
extern void gfs2_set_aops(struct inode *inode);
|
|
|
|
#endif /* __OPS_ADDRESS_DOT_H__ */
|