Remove SYNC_ATTR check
authorBrian Behlendorf <behlendorf1@llnl.gov>
Thu, 6 Jan 2011 22:15:48 +0000 (14:15 -0800)
committerBrian Behlendorf <behlendorf1@llnl.gov>
Thu, 10 Feb 2011 17:27:20 +0000 (09:27 -0800)
This flag does not need to be support under Linux.  As the comment
says it was only there to support fsflush() for old filesystem like
UFS.  This is not needed under Linux.

module/zfs/zfs_vfsops.c

index 8016766..c138b6f 100644 (file)
@@ -79,15 +79,6 @@ zfs_sync(vfs_t *vfsp, short flag, cred_t *cr)
        if (panicstr)
                return (0);
 
-       /*
-        * SYNC_ATTR is used by fsflush() to force old filesystems like UFS
-        * to sync metadata, which they would otherwise cache indefinitely.
-        * Semantically, the only requirement is that the sync be initiated.
-        * The DMU syncs out txgs frequently, so there's nothing to do.
-        */
-       if (flag & SYNC_ATTR)
-               return (0);
-
        if (vfsp != NULL) {
                /*
                 * Sync a specific filesystem.