Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 35491
b: refs/heads/master
c: 4d3b83f
h: refs/heads/master
i:
  35489: cb6f6f2
  35487: 3e5ed5c
v: v3
  • Loading branch information
Mark Fasheh committed Sep 24, 2006
1 parent 082a104 commit 0c75b3c
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 5 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 0027dd5bc213bc639e09dd002a4ab56bd18317c3
refs/heads/master: 4d3b83f7364269b66cdda271f680bd99e77afd96
6 changes: 3 additions & 3 deletions trunk/fs/ocfs2/dlmglue.c
Original file line number Diff line number Diff line change
Expand Up @@ -1413,7 +1413,7 @@ static void __ocfs2_stuff_meta_lvb(struct inode *inode)

lvb = (struct ocfs2_meta_lvb *) lockres->l_lksb.lvb;

lvb->lvb_version = cpu_to_be32(OCFS2_LVB_VERSION);
lvb->lvb_version = OCFS2_LVB_VERSION;
lvb->lvb_isize = cpu_to_be64(i_size_read(inode));
lvb->lvb_iclusters = cpu_to_be32(oi->ip_clusters);
lvb->lvb_iuid = cpu_to_be32(inode->i_uid);
Expand Down Expand Up @@ -1486,7 +1486,7 @@ static inline int ocfs2_meta_lvb_is_trustable(struct ocfs2_lock_res *lockres)
{
struct ocfs2_meta_lvb *lvb = (struct ocfs2_meta_lvb *) lockres->l_lksb.lvb;

if (be32_to_cpu(lvb->lvb_version) == OCFS2_LVB_VERSION)
if (lvb->lvb_version == OCFS2_LVB_VERSION)
return 1;
return 0;
}
Expand Down Expand Up @@ -3167,7 +3167,7 @@ void ocfs2_dump_meta_lvb_info(u64 level,
mlog(level, "LVB information for %s (called from %s:%u):\n",
lockres->l_name, function, line);
mlog(level, "version: %u, clusters: %u\n",
be32_to_cpu(lvb->lvb_version), be32_to_cpu(lvb->lvb_iclusters));
lvb->lvb_version, be32_to_cpu(lvb->lvb_iclusters));
mlog(level, "size: %llu, uid %u, gid %u, mode 0x%x\n",
(unsigned long long)be64_to_cpu(lvb->lvb_isize),
be32_to_cpu(lvb->lvb_iuid), be32_to_cpu(lvb->lvb_igid),
Expand Down
4 changes: 3 additions & 1 deletion trunk/fs/ocfs2/dlmglue.h
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,9 @@
#define OCFS2_LVB_VERSION 3

struct ocfs2_meta_lvb {
__be32 lvb_version;
__be16 lvb_reserved0;
__u8 lvb_reserved1;
__u8 lvb_version;
__be32 lvb_iclusters;
__be32 lvb_iuid;
__be32 lvb_igid;
Expand Down

0 comments on commit 0c75b3c

Please sign in to comment.