projects
/
powerpc.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
libata: kill qc->nsect and cursect
[powerpc.git]
/
fs
/
gfs2
/
util.h
diff --git
a/fs/gfs2/util.h
b/fs/gfs2/util.h
index
76a5089
..
28938a4
100644
(file)
--- a/
fs/gfs2/util.h
+++ b/
fs/gfs2/util.h
@@
-83,8
+83,7
@@
static inline int gfs2_meta_check_i(struct gfs2_sbd *sdp,
char *file, unsigned int line)
{
struct gfs2_meta_header *mh = (struct gfs2_meta_header *)bh->b_data;
char *file, unsigned int line)
{
struct gfs2_meta_header *mh = (struct gfs2_meta_header *)bh->b_data;
- u32 magic = mh->mh_magic;
- magic = be32_to_cpu(magic);
+ u32 magic = be32_to_cpu(mh->mh_magic);
if (unlikely(magic != GFS2_MAGIC))
return gfs2_meta_check_ii(sdp, bh, "magic number", function,
file, line);
if (unlikely(magic != GFS2_MAGIC))
return gfs2_meta_check_ii(sdp, bh, "magic number", function,
file, line);
@@
-107,9
+106,8
@@
static inline int gfs2_metatype_check_i(struct gfs2_sbd *sdp,
char *file, unsigned int line)
{
struct gfs2_meta_header *mh = (struct gfs2_meta_header *)bh->b_data;
char *file, unsigned int line)
{
struct gfs2_meta_header *mh = (struct gfs2_meta_header *)bh->b_data;
- u32 magic =
mh->mh_magic
;
+ u32 magic =
be32_to_cpu(mh->mh_magic)
;
u16 t = be32_to_cpu(mh->mh_type);
u16 t = be32_to_cpu(mh->mh_type);
- magic = be32_to_cpu(magic);
if (unlikely(magic != GFS2_MAGIC))
return gfs2_meta_check_ii(sdp, bh, "magic number", function,
file, line);
if (unlikely(magic != GFS2_MAGIC))
return gfs2_meta_check_ii(sdp, bh, "magic number", function,
file, line);
@@
-146,9
+144,9
@@
int gfs2_io_error_bh_i(struct gfs2_sbd *sdp, struct buffer_head *bh,
gfs2_io_error_bh_i((sdp), (bh), __FUNCTION__, __FILE__, __LINE__);
gfs2_io_error_bh_i((sdp), (bh), __FUNCTION__, __FILE__, __LINE__);
-extern
kmem_cache_t
*gfs2_glock_cachep;
-extern
kmem_cache_t
*gfs2_inode_cachep;
-extern
kmem_cache_t
*gfs2_bufdata_cachep;
+extern
struct kmem_cache
*gfs2_glock_cachep;
+extern
struct kmem_cache
*gfs2_inode_cachep;
+extern
struct kmem_cache
*gfs2_bufdata_cachep;
static inline unsigned int gfs2_tune_get_i(struct gfs2_tune *gt,
unsigned int *p)
static inline unsigned int gfs2_tune_get_i(struct gfs2_tune *gt,
unsigned int *p)