Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 76937
b: refs/heads/master
c: f1f5406
h: refs/heads/master
i:
  76935: ccb10ed
v: v3
  • Loading branch information
Mark Fasheh committed Jan 25, 2008
1 parent 97023ab commit aad025b
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 34d024f84345807bf44163fac84e921513dde323
refs/heads/master: f1f540688eae66c274ff1c1133b5d9c687b28f58
5 changes: 5 additions & 0 deletions trunk/fs/ocfs2/dlmglue.c
Original file line number Diff line number Diff line change
Expand Up @@ -228,6 +228,7 @@ static struct ocfs2_lock_res_ops ocfs2_inode_meta_lops = {
.get_osb = ocfs2_get_inode_osb,
.check_downconvert = ocfs2_check_meta_downconvert,
.set_lvb = ocfs2_set_meta_lvb,
.downconvert_worker = ocfs2_data_convert_worker,
.flags = LOCK_TYPE_REQUIRES_REFRESH|LOCK_TYPE_USES_LVB,
};

Expand Down Expand Up @@ -2851,6 +2852,9 @@ static int ocfs2_data_convert_worker(struct ocfs2_lock_res *lockres,
inode = ocfs2_lock_res_inode(lockres);
mapping = inode->i_mapping;

if (S_ISREG(inode->i_mode))
goto out;

/*
* We need this before the filemap_fdatawrite() so that it can
* transfer the dirty bit from the PTE to the
Expand All @@ -2876,6 +2880,7 @@ static int ocfs2_data_convert_worker(struct ocfs2_lock_res *lockres,
filemap_fdatawait(mapping);
}

out:
return UNBLOCK_CONTINUE;
}

Expand Down

0 comments on commit aad025b

Please sign in to comment.