Skip to content

Commit

Permalink
zfsctl: No need to sync ctldir inodes
Browse files Browse the repository at this point in the history
There's no metadata to write to disk for ctldir inodes. So we check if
a inode belongs to the ctldir in zpl_commit_metadata, and returns
immediately if it is.

Signed-off-by: Andrey Vesnovaty <[email protected]>
Signed-off-by: Brian Behlendorf <[email protected]>
Issue openzfs#2797
  • Loading branch information
andrey-ve authored and JKDingwall committed Jul 26, 2016
1 parent d1ac3e1 commit d63dbc4
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions module/zfs/zpl_export.c
Original file line number Diff line number Diff line change
Expand Up @@ -139,6 +139,9 @@ zpl_commit_metadata(struct inode *inode)
fstrans_cookie_t cookie;
int error;

if (zfsctl_is_node(inode))
return (0);

crhold(cr);
cookie = spl_fstrans_mark();
error = -zfs_fsync(inode, 0, cr);
Expand Down

0 comments on commit d63dbc4

Please sign in to comment.