]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
os/FileStore: Because do_fiemap will do fsync, so don't do fsync()
authorJianpeng Ma <jianpeng.ma@intel.com>
Thu, 9 Oct 2014 07:16:33 +0000 (15:16 +0800)
committerJianpeng Ma <jianpeng.ma@intel.com>
Thu, 9 Oct 2014 07:16:33 +0000 (15:16 +0800)
before calling do_fiemap.

Signed-off-by: Jianpeng Ma <jianpeng.ma@intel.com>
src/os/GenericFileStoreBackend.cc

index 5cf7f54d7d59daf2e3b346f2e42e2acf18232982..e152c51dc28fba4f93b0060013c40b8e3791e0fb 100644 (file)
@@ -108,7 +108,6 @@ int GenericFileStoreBackend::detect_features()
       return r;
     }
   }
-  ::fsync(fd);
 
   // fiemap an extent inside that
   struct fiemap *fiemap;