diff options
author | JP Abgrall <jpa@google.com> | 2014-06-30 21:13:49 +0000 |
---|---|---|
committer | Android Git Automerger <android-git-automerger@android.com> | 2014-06-30 21:13:49 +0000 |
commit | fc24ac8347630a14d62ffafa93a27ec3b81cc44b (patch) | |
tree | 53ca6038ce54538b8f895ed3d4ead07bc6ed2e32 | |
parent | a78c2885b591a8fbcfc572bbd0b4b614434bde1c (diff) | |
parent | ce2c9c36924b4fc3786cd0e6440031d788f641aa (diff) | |
download | f2fs-tools-lollipop-dev.tar.gz |
am ce2c9c36: libf2fs: move the finalize_device() into the io lib.android-wear-5.0.0_r1android-l-preview_r2android-cts-5.0_r9android-cts-5.0_r8android-cts-5.0_r7android-cts-5.0_r6android-cts-5.0_r5android-cts-5.0_r4android-cts-5.0_r3android-5.0.2_r3android-5.0.2_r1android-5.0.1_r1android-5.0.0_r7android-5.0.0_r6android-5.0.0_r5.1android-5.0.0_r5android-5.0.0_r4android-5.0.0_r3android-5.0.0_r2android-5.0.0_r1lollipop-wear-releaselollipop-releaselollipop-devlollipop-cts-releasel-preview
* commit 'ce2c9c36924b4fc3786cd0e6440031d788f641aa':
libf2fs: move the finalize_device() into the io lib.
-rw-r--r-- | lib/libf2fs.c | 12 |
1 files changed, 0 insertions, 12 deletions
diff --git a/lib/libf2fs.c b/lib/libf2fs.c index 8d6c670..6168c5c 100644 --- a/lib/libf2fs.c +++ b/lib/libf2fs.c @@ -493,15 +493,3 @@ int f2fs_get_device_info(struct f2fs_configuration *c) return 0; } -void f2fs_finalize_device(struct f2fs_configuration *c) -{ - /* - * We should call fsync() to flush out all the dirty pages - * in the block device page cache. - */ - if (fsync(c->fd) < 0) - MSG(0, "\tError: Could not conduct fsync!!!\n"); - - if (close(c->fd) < 0) - MSG(0, "\tError: Failed to close device file!!!\n"); -} |