]> git.ipfire.org Git - thirdparty/e2fsprogs.git/commitdiff
quota: Drop dead code
authorJan Kara <jack@suse.cz>
Mon, 23 Aug 2021 15:41:28 +0000 (17:41 +0200)
committerTheodore Ts'o <tytso@mit.edu>
Fri, 3 Sep 2021 18:34:59 +0000 (14:34 -0400)
Drop unused function from quota support code.

Signed-off-by: Jan Kara <jack@suse.cz>
Signed-off-by: Theodore Ts'o <tytso@mit.edu>
lib/support/mkquota.c

index f1f2e35c2985d9ee30c3474a35613e0003dc6caa..5de7c48d6dd0fe93641992657a3852be750a3b47 100644 (file)
@@ -571,26 +571,6 @@ static int scan_dquots_callback(struct dquot *dquot, void *cb_data)
        return 0;
 }
 
-/*
- * Write all memory dquots into quota file
- */
-#if 0 /* currently unused, but may be useful in the future? */
-static errcode_t quota_write_all_dquots(struct quota_handle *qh,
-                                        quota_ctx_t qctx)
-{
-       errcode_t err;
-
-       err = ext2fs_read_bitmaps(qctx->fs);
-       if (err)
-               return err;
-       write_dquots(qctx->quota_dict[qh->qh_type], qh);
-       ext2fs_mark_bb_dirty(qctx->fs);
-       qctx->fs->flags &= ~EXT2_FLAG_SUPER_ONLY;
-       ext2fs_write_bitmaps(qctx->fs);
-       return 0;
-}
-#endif
-
 /*
  * Read quotas from disk and updates the in-memory information determined by
  * 'flags' from the on-disk data.