61a30dcb58
Two internal files which are read through the gfs2_internal_read() routine were already locked when the routine was called and this do not need locking at the redapages level. This patch introduces a struct file which is used as a sentinal so that readpage will only perform locking in the case that the struct file passed to it is _not_ equal to this sentinal. Since the comments in the generic kernel code indicate that the struct file will never be used for anything other than passing straight through to readpage(), this should be ok. Signed-off-by: Steven Whitehouse <swhiteho@redhat.com>
20 lines
703 B
C
20 lines
703 B
C
/*
|
|
* Copyright (C) Sistina Software, Inc. 1997-2003 All rights reserved.
|
|
* Copyright (C) 2004-2005 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 v.2.
|
|
*/
|
|
|
|
#ifndef __OPS_FILE_DOT_H__
|
|
#define __OPS_FILE_DOT_H__
|
|
extern struct file gfs2_internal_file_sentinal;
|
|
extern int gfs2_internal_read(struct gfs2_inode *ip,
|
|
struct file_ra_state *ra_state,
|
|
char *buf, loff_t *pos, unsigned size);
|
|
|
|
extern struct file_operations gfs2_file_fops;
|
|
extern struct file_operations gfs2_dir_fops;
|
|
|
|
#endif /* __OPS_FILE_DOT_H__ */
|